Data Grid Control +JSP+Sorting

Hi,
Can any one help me regarding In JSP by using Data Grid Control to sort columns in table and displayed in same JSP.

Yes! We can help! Do you have any other questions?
Edited by: SoulTech2012 on Sep 20, 2008 11:51 AM

Similar Messages

  • Want Access Data Grid control in SharePoint 2013?

    Hello everyone!
    Recently we noticed something funny in SharePoint 2013. While quite many people were hoping to have the datasheet view like those in SP2007 and 2010, Microsoft has chosen a different interface to display datasheet view.
    Now, if you try to create a sub site under a publishing site, and use the
    Publishing Site template then try to create a datasheet view in the sub site, SharePoint will try to use the Access data grid control to display the view. In some situations the view will display and other situations it will not, and will show this
    error:
    The list is displayed in Standard view. It cannot be displayed in Datasheet view for one or more of the following reasons: A datasheet component compatible with Microsoft SharePoint Foundation is not installed, your browser does not support ActiveX controls,
    a component is not properly configured for 32-bit or 64-bit support, or support for ActiveX controls is disabled.
    If you create a sub site using Publishing Site with Workflow instead, then the datasheet view will be created properly using SP2013 interface.
    Using PowerShell, we can see that both Publishing Portal and
    Publishing Site With Workflow are using the BLANKINTERNET 53 template. The
    Publishing Site on the other hand is using the CMSPUBLISHING 39 template.
    Want to try it out and let me know if that happens to your SharePoint too?

    Hi Conway,
    I tested the issue in my environment per your description and it returned the results as below:
    I created a subsite using Publishing site under a team site in SharePoint server 2013, the datasheet view in a list displayed as pic1
    I reproduced the issue in SharePoint server 2010, the datasheet view in a list displayed as pic2
    It turns out by design the datasheet view in the subsite based on Publishing site template displays as your situation. Here is an article which explains this:
    http://www.sharepointblues.com/2010/03/31/data-sheet-view-not-working/
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • [b]Data Grid in jsp using Struts [/b]

    I need to develop a data grid in JSP using struts .
    I am using Tomcat web server , Intellij IDEA IDE.
    If any one has code, please sent it.
    Thanks in Advance.

    hi,
    Use Struts-Layout datagrid framework to full fill your needs
    Related Topic link
    here is the clear documentation for your topic
    http://struts.application-servers.com/datagrid/index.html
    here is the download link
    (Struts-Layout datagrid framework)
    http://deltha.uh.cu/java/docs/struts-layout-1.0-docs/download.html
    related discuss
    http://forum.java.sun.com/thread.jspa?threadID=5202989&messageID=9811082

  • Flex mobile app - which data grid control to use?

    Hi,
    Trying to build my first Flex mobile app in FlashBuilder 4.6 and I need a grid control to display a 2 dimmensional array of 6 columns x 50 rows.
    The user doesn't don't need to have any interraction with the grid except for scrolling the rows.
    I was looking at using dataGrid component but adobe doesn't recommend it for mobile apps.
    Is there a grid component that is recommended for mobile apps?
    Thanks

    Here it is.
    // Show empty grid to start
    private function initGrid():void
        const dataArray:Array = new Array(1);
        var values:Array = new Array(1);
        values[0] = "";
        dataArray[0] = values;
        grid.dataProvider = new ArrayCollection(dataArray);
    // Build array and feed it to the grid - 50 rows x 9 columns dataGrid (grid)
    protected function FillGrid():void
    var rows:int = 50;
    var columns:int = 9;
    // rows array
    const dataArray:Array = new Array(rows);
    // Get rows
    for(var row:int=0; row<rows; row++)
      const arrLine:Array = [columns+1];
      arrLine[0] = row+1;
      for(var col:int=1; col<columns+1; col++)
       // columns array
       arrLine[col] = Math.floor(Math.random()*10);
      dataArray[row] = arrLine;
    // At this point the multi dimensional array is assembled, now we connect it to the dataGrid
    grid.dataProvider = new ArrayCollection(dataArray);
    <!-- The DataGrid's dataProvider and typicalItem are set at initialize time by the initializeDataProvider method. -->
    <s:Panel id="tablePanel" x="519" top="91" width="470" height="400" color="#827259" fontSize="18" title=".">
    <s:DataGrid id="grid" left="5" right="5" top="5" bottom="5" selectionMode="singleRow" initialize="initGrid()" fontSize="17" >
      <!-- The default item renderer is used by the first 6 columns to display
      the dataProvider item's array element value at col. -->
      <s:itemRenderer>
       <fx:Component>
        <s:DefaultGridItemRenderer>
         <fx:Script>
          <![CDATA[
           override public function prepare(hasBeenRecycled:Boolean):void
            label = data[columnIndex];
          ]]>
         </fx:Script>
        </s:DefaultGridItemRenderer>
       </fx:Component>
      </s:itemRenderer>
      <s:columns>
       <s:ArrayList>
        <!-- Columns inherit the DataGrid's itemRenderer. -->
        <s:GridColumn id="zero"    headerText="N0" width="65" resizable="false"/>
        <s:GridColumn id="one"     headerText="N1" width="45" resizable="false"/>
        <s:GridColumn id="two"     headerText="N2" width="45" resizable="false"/>   
        <s:GridColumn id="three"   headerText="N3" width="45" resizable="false"/>   
        <s:GridColumn id="four"    headerText="N4" width="45" resizable="false"/>
        <s:GridColumn id="five"    headerText="N5" width="45" resizable="false"/>
        <s:GridColumn id="six"     headerText="N6" width="45" resizable="false"/>
        <s:GridColumn id="seven"   headerText="N7" width="45" resizable="false"/>
        <s:GridColumn id="eight"   headerText="N8" width="65" resizable="false"/>
       </s:ArrayList>
      </s:columns>
    </s:DataGrid>
    </s:Panel>       
    Tomexxus

  • Data grid for jsp applications

    Someone knows where i can get a good data grid (free or cost ) for JSP applications

    I just stumbled across this thread as we are developing a stateless BSP application and plan to use model binding in it.
    For our application the part of the models state that changes is displayed in the view in form fields, so our idea is to reload the model from the db in the doInitattributes-Method and let the model binding do the rest of the work filling in the values that changed in the view. It seems to work so far - so i guess persisting the state of the object to the db is only necessary when something changed that is not part of the view, right?
    My second question is on Brians recommendation to use MVC only at exactly one level. Is using Sub-Controllers a problem when they have got their own model? I guess the extra work Brian mentions is all about telling the subcontrollers which model to load, right?
    It would be good to know if there are any serious pitfalls when using a hierarchy of controllers instead of a controller with a collection of views.
    Martin

  • Data Grid on JSP Application...

    Someone knows where i can get a good data grid (free) for JSP applications.
    tanks
    Daniel S.

    yes there is, almost anything is possible in a web application so probably a data grid too.
    Might be nice idea to first give information about what you udnerstand under a datagrid before asking information on it.

  • Data Grid in JSP

    Hi guys
    I need to create a Data Grid on a JSP. It has to display data retrieved from database. I should be able to select a row and delete it from database.. I think I can manage the database stuff... But how dow I create the grid?
    Any suggestion? Links?
    Do help!
    Thanx a ton!

    Let your backend return a list of data.
    Put the list on the request (request.setAttribute...).
    Use jstl tag like
    <c:forEach items="${myList}" var="myRow">
    <c:out value="${myRow.firstname}"/>
    <c:out value="${myRow.lastname}"/>
    </c:forEach>

  • Problem rendering a combo box in the data grid

    Hi,
    I am rendering a combo box in the data grid control using an
    item renderer. When I click on it to select a value from the drop
    down, the combo box immediately closes giving no time to even click
    on the dropdown. This doesn’t happen every time the combo is
    clicked, although it happens frequently. What I think is that the
    problem arises because the data grid tries to refresh the renderers
    and during this process, the existing combo is removed, thereby
    getting closed automatically. Please let me know of a work around.
    Thanks,
    Cheree

    hi hiwa,
    i have to add combo box in datagrid dynamically.
    it should append as and when i add the data in the above text boxes.
    thanks in advance.

  • Data Grid Mania!

    I need help with my data grid control. It doesn't display any
    data when it gets data. It is getting data in this format:
    <images>
    <image><image_name></image_name><image_url><image_url><keywords></keywords></image>
    </images>
    and the component is this:
    <mx:DataGrid x="10" y="10" width="640" height="140"
    dataProvider="{imageReturn.lastResult.images}"
    id="communityImages">
    <mx:columns>
    <mx:DataGridColumn headerText="Image"
    dataField="{image.image_url}">
    </mx:DataGridColumn>
    <mx:DataGridColumn headerText="Name"
    dataField="{image.image_name}"/>
    <mx:DataGridColumn headerText="Keywords"
    dataField="{image.keywords}" visible="false" />
    </mx:columns>
    </mx:DataGrid>
    What's Wrong? Help Please!

    yea while i was working with VB , i was using data grids that lists the records those came from the access database.
    i'm using an access database again ,but with java codes i wanna do listing. im not making an applet, but a self GUI application, and dont know how to list the records. because in applets there's paint() method.in such an example of mine there's not.
    what can i do? if there is no data grid or something alike in java for self GUI applications, how can i list them as a whole in a frame?
    thanks

  • Data Grid Help!

    I need help with my data grid control. It doesn't display any
    data when it gets data. It is getting data in this format:
    <images>
    <image><image_name></image_name><image_url><image_url><keywords></keywords></image>
    </images>
    and the component is this:
    <mx:DataGrid x="10" y="10" width="640" height="140"
    dataProvider="{imageReturn.lastResult.images}"
    id="communityImages">
    <mx:columns>
    <mx:DataGridColumn headerText="Image"
    dataField="{image.image_url}">
    </mx:DataGridColumn>
    <mx:DataGridColumn headerText="Name"
    dataField="{image.image_name}"/>
    <mx:DataGridColumn headerText="Keywords"
    dataField="{image.keywords}" visible="false" />
    </mx:columns>
    </mx:DataGrid>
    What's Wrong? Help Please

    "arthurlockman" <[email protected]> wrote in
    message
    news:g7lajv$ora$[email protected]..
    >I need help with my data grid control. It doesn't display
    any data when it
    >gets
    > data. It is getting data in this format:
    >
    > <images>
    >
    >
    <image><image_name></image_name><image_url><image_url><keywords></keywords></ima
    > ge>
    > </images>
    >
    > and the component is this:
    > <mx:DataGrid x="10" y="10" width="640" height="140"
    > dataProvider="{imageReturn.lastResult.images}"
    id="communityImages">
    > <mx:columns>
    > <mx:DataGridColumn headerText="Image"
    dataField="{image.image_url}">
    > </mx:DataGridColumn>
    > <mx:DataGridColumn headerText="Name"
    dataField="{image.image_name}"/>
    > <mx:DataGridColumn headerText="Keywords"
    dataField="{image.keywords}"
    > visible="false" />
    > </mx:columns>
    > </mx:DataGrid>
    try dataProvider="{imageReturn.lastResult.children()}"

  • Sort functionality in Data Grid

    Hi Gurus,
    I am new to this DataGrid control.I want to establish the sort functionality when clicking on the headercolumns as in matrices.
    (ie.When double clicking the header column , sort the data in ascending or descending order of that column) like in system form matrices.
    How ever this is not possible when I tried with grid control.
    The problem I am facing is that I cannot get the column headers of the grid programmatically.(in duble click event or itempressed event)
    Anybody did this one previously? Also how
    we can change the column order of the grid using screen painter?
    The columns that actually come visible in the grid  are actually columns of the linked datatable object.
    In the designer ,there is no "swap" button for column re-ordering.
    Only one way I know is changing the query associated with datatable.
    This is a crucial thing ,since client may ask for re-ordering of columns frequently.
    Can anybody help?
    Regards,
    Deepesh

    Hi Deepesh,
    1. This functionality is not available with the SDK. Thus it's not possible to change it on the fly. Your only option is to change the query associated with datatable (as you mentioned). You may set up a user preference table, that the user can configure with its preference. That's the best you can do.
    2. To swap the columns in screen painter you must use SBO 2005 (it's not available on previous release). What you must do is, click on the one column you want to swap and the other you want to swap and click on the swap button (on the left bottom of the page in the columns tab)

  • Displaying Date types in the grid control

    I have a grid control and one of the column is displaying
    'Date' type data. I am able to see the Date values in the grid, if
    I define the return type of the getter function as String format.
    But the problem with this is, when I click on the Date column
    header, the grid is sorting the rows while treating the Date values
    as String values. And when I change the return type of the getter
    method as Date type (java.util.Date), I don't see any Date values
    in the grid. Do I need to do any additional coding to display the
    date values as Date types to display the data and then to be able
    to sort the grid on Date types.
    Please help.

    You should return Date values to the Flex application and
    store them in the dataProvider associated with that DataGrid. For
    Date-values you have a couple of choices:
    1. Actually store the time (a long Number - milliseconds
    since Jan 1970) and use a labelFunction on the column to format
    that values as a Date. This way sorting will treat the value as a
    number, but it will appear as a Date.
    2. Write your own Sort compare method for that column. Check
    the docs on Sort and SortField.

  • Data Grid Sort Within Portlet

    I have a portal with a portlet that contains a search form and a data grid. I have set the sortable attribute on the column to true. The sort action gets the filter service and passes it to the DB control.
    I cannot seem to get the sorting to work. The output from getSortFilterService().getDatabaseFilter(getGridName()).getOrderByClause() is always empty no matter which column I click.
    Is there something special I have to do because of the portal/portlet?
    Can someone give me a tip (or two). I realize this is a novice question but I am learning as I go and would appreciate any help.
    Edited by markml at 09/20/2007 9:41 PM

    I figured it was locking up the browser. I submitted a bug ticket several months ago concerning the same issue. If you have "enableviewstate" set to true on a datagrid and you are using the PT web controls, then the browser will lock up. It all depends on the number of rows and columns you have in the datagrid; unfortunately, I don't know the fatal number.
    However, what causes it is how Plumtree manages the viewstate itself for a datagrid. In a nutshell, they have to remember the viewstate for each single item in the grid. And the algorithm they use is extremely slow. The browser's scripting engine basically locks up because of the length of time it takes.
    Unless you absolutely need it, I would just turn off the viewstate. It disables some fancy features of the datagrid, but you can still build workarounds.
    Hope this helps/clarifies things for you!
    --JasonFTN Financial

  • ALV Grid Control -  Modifiy data in total and subtotal lines

    Hello all,
    I´am creating a report using ALV Grid Control. This report calculates (using delivered and returned materials) for each vendor/material-combination the return quote.
    Using the totals and subtotals function for different characteristics I want to calculate the return quote for the selected characteristic. Example:
    Material delivered returned quote
    ..4711 . . . 500 . . . 5 . . . . 1 (=returned*100/delivered)
    ..4711 . . . 400 . . . 10 . . . . 2,5
    . SUM . . . 900 . . . 15 . . . . 3,5 <-- 3,5 is the sum but I want display the calculated value 1,667
    Is there a possibility to modify data in the total and subtotal lines.
    Thank you for your answer
    Best regards
    Thomas

    you said instead of 3.5 you want to show 1,667 ..
    how is it possible...
    3,5 become 1,667
    i thought you are doing any conversions...
    vijay

  • Oracle 9i Database -- Performance window in Grid Control not data available

    Hi
    I have Grid Control 10.2.0.4 on Red Hat and i monitoring some Oracle 9i Instances. When i go to any of these instances to the Performance section, at begininig , ever, not data available in all the graphics.
    When i select manual refresh the graphic begin to build information. But if i close the explorer and reopen , all graphics not have any information.
    Is the situation normal for all Oracle 9i databases?
    The explanation is that Oracle 9i not have AWR ?
    Thanks

    You have too few RAM on your machine, even you could successfully create an instance, it's going to slow as hell.
    When you run DBCA to create database, instead of actually creating the database you could choose to dump the SQL scripts and files used for database creation to a directory. This way will give you a chance to modify pfile and reduce the SGA parameter. I believe the default SGA of instance created by DBCA is already beyond your RAM limit.

Maybe you are looking for