GridPanel paging and sorting using dataset or datatable

  1. #1

    GridPanel paging and sorting using dataset or datatable

    Guys does any one can help me out in my scenario I am using in my project simple query and fetching records and populating a dataset and then I want to use it for gridpanel but with paging sorting functionallity, i also check out the paging and sorting example given but it uses LINQ and list with NortwindDataContext way to achieve this functions. I want to achieve it by dataset as it is already implemented in my project and i think it will give us new way of implementation of paging and sorting using coolite gridpanel, your quick response is awaited
  2. #2

    RE: GridPanel paging and sorting using dataset or datatable

    Hi KHafeez,

    Can you post a simplified .aspx code sample demonstrating how you currently have things configured? That will help start us off.


    Geoffrey McGill
    Founder
  3. #3

    RE: GridPanel paging and sorting using dataset or datatable

    Hi geoffrey
    I would like populate a GridPanel with DataTable is possible?
    This my code, more does not work.
     <head runat="server">
        <title></title>
        <script runat="server">
            
            protected void carregaGrid()
            {
                DataTable dtMedicos = DataExtractor.GetDataTable("MyProcedure");
                Store1.DataSource = dtMedicos;
                Store1.DataBind();
                
            }
            
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
        
            <ext:ScriptManager ID="ScriptManager1" runat="server" />
            
            <ext:Store ID="Store1" runat="server">
                <Reader>
                    <ext:JsonReader ReaderID="camposID">
                        <Fields>
                            <ext:RecordField Name="Nome"></ext:RecordField> 
                            <ext:RecordField Name="Idade"></ext:RecordField>
                            <ext:RecordField Name="Endereco"></ext:RecordField>
                        </Fields>
                    </ext:JsonReader>
                </Reader>
            </ext:Store> 
            
            <ext:TableGrid ID="TableGrid1" runat="server">
                <Columns>
                    <ext:Column DataIndex="Nome" Header="Nome"></ext:Column>
                    <ext:Column DataIndex="Idade" Header="Idade"></ext:Column>
                    <ext:Column DataIndex="Endereco" Header="Endereco"></ext:Column>
                </Columns>
            </ext:TableGrid>
           
        
    
        </form>

Similar Threads

  1. Replies: 6
    Last Post: Nov 03, 2012, 10:48 PM
  2. Replies: 0
    Last Post: Aug 16, 2010, 10:28 PM
  3. Replies: 5
    Last Post: Jul 23, 2010, 8:52 AM
  4. GridPanel Auto Paging and Sorting
    By Dominik in forum 1.x Help
    Replies: 2
    Last Post: May 17, 2010, 9:24 AM
  5. Replies: 1
    Last Post: Jan 29, 2009, 9:35 AM

Posting Permissions