[CLOSED] sorting

  1. #1

    [CLOSED] sorting

    hi,

    how can i find out column name and type of sort(Asc or Desc), when i click the gridpanel column header for sorting. please snd sample code in c#
    Last edited by Daniil; Aug 02, 2011 at 2:05 PM. Reason: [CLOSED]
  2. #2

    RE: sorting

    Hi,

    Can you post some code which demonstrates what you want to reach?
    What type of sorting need: remote or local? At what moment do you need column name and type of sort: before sort and after?

    Without your code very hard to get solution for you because many cases are possible.


  3. #3

    RE: sorting

    Hi speedstep,

    We're working on a simple sample for you to demonstrate server-side sorting/paging. We should have ready soon.*


    Geoffrey McGill
    Founder
  4. #4

    RE: sorting

    hi,

    gridpanel sorting is working fine. just i want to get sort column name and sorting type(Asc or DESC) when i click the gridpanel column.
  5. #5

    RE: sorting

    The Sort and Dir are available from the StoreRefreshDataEventArgs.

    Example

    protected void Store1_RefreshData(object sender, StoreRefreshDataEventArgs e)
    {
        string sort = e.Sort;
        Coolite.Ext.Web.SortDirection dir = e.Dir;
        
        this.Store1.DataSource = this.TestData;
        this.Store1.DataBind(); 
    }
    Hope this helps.

    Geoffrey McGill
    Founder
  6. #6

    Grid sorting inside Update Panel

    Will try to reuse the topic.

    My grid placed inside update panel (UP1), page contain another one update panel (UP2) with button 'Reload'.
    In case when grid sorted at client side by colum header click and after that UP1 reloaded (reload initiated at server from button click handler) I got correct headers and rows count but rows is empty (no data in cells)

    If I click button to reload UP1 with non sorted grid the grid data rendering well.

    Seems some grid sorting data exist on page after async postback and this break new grid rendering .... any ideas ?
  7. #7
    Hi @sedgar,

    Please start a new forum thread.

    If you feel that the threads are related. please feel free to cross link between two.

Similar Threads

  1. [CLOSED] GroupingView and Sorting
    By dheeraj_us in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 21, 2011, 3:12 PM
  2. [CLOSED] Remote Sorting issue
    By vali1993 in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Feb 18, 2011, 5:56 PM
  3. [CLOSED] Disabled Sorting in GridPanel
    By csharpdev in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 22, 2010, 1:22 PM
  4. [CLOSED] Sorting Disabled in GridPanel
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 07, 2010, 11:37 AM
  5. [CLOSED] Sorting dates in a grid
    By SFritsche in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 06, 2010, 1:25 PM

Posting Permissions