This is a migrated thread and some comments may be shown as answers.

Dsiplaying Arrow image - initial loading

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lakshmi Narayana
Top achievements
Rank 1
Lakshmi Narayana asked on 26 Sep 2008, 11:40 PM
Hi,
I have one requirement, Data is coming already sorted on last name and i am binding to the grid. I should display Arrow image for asc sorting.
Next time onwards, if i click on some other column, it should have image for that particular and sorting should happen for the required column.

Any idea?

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 29 Sep 2008, 10:00 AM
Hi Lakshmi,

You can apply default ascending sort expression for the ‘Last name’ column in the grid either declaratively or programmatically (based on the result returned from your stored procedure). Review the following topic from the product documentation for more details:

http://www.telerik.com/help/aspnet-ajax/grdsortingexpressions.html

Thus the ‘Last name’ column will be sorted in ascending order initially and you can still sort other columns (‘First name’ for example) afterwards. Note that you also have the option allow multi-column sorting as illustrates in the demo you pointed.

Best regards,
James,
the Telerik team


Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Lakshmi Narayana
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or