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

sorting of times of radtimepicker in radgridview

3 Answers 36 Views
GridView
This is a migrated thread and some comments may be shown as answers.
sampath kumar
Top achievements
Rank 1
sampath kumar asked on 03 May 2011, 04:28 PM
In a radgridview i have two columns(starttime,endtime) which are timepickers.when the user modifies the time, the rows need to sort automatically .

This is how i coded the gridview in the XAML.

<telerik:GridViewDataColumn Header="Start Time">
                            <telerik:GridViewDataColumn.CellTemplate >
                                <DataTemplate>
                                        <telerik:RadTimePicker Name="rtpStartTime" IsEnabled="{Binding misRadioDisable,Mode=TwoWay}"  TimeInterval="00:15:00" SelectedTime="{Binding mStartTime,Mode=TwoWay}"/>
                                </DataTemplate>
                            </telerik:GridViewDataColumn.CellTemplate>
                        </telerik:GridViewDataColumn>

Please reply urgent.

3 Answers, 1 is accepted

Sort by
0
sampath kumar
Top achievements
Rank 1
answered on 16 May 2011, 07:00 AM
Please reply to the posed question. I need it urgent.
0
Maya
Telerik team
answered on 16 May 2011, 07:11 AM
Hi sampath kumar,

Firstly, you need to set the DataMemberBinding of the GridViewDataColumn to the corresponding property. In the example you provided, it should be bound to "mStartTime".  Afterwards, you may define a sort descriptor for that particular column or sot it by the UI. Then once the value is changed, the item will be resorted and put into the correct sorting place.
 

Kind regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
sampath kumar
Top achievements
Rank 1
answered on 16 May 2011, 08:41 AM
The solution provided is not working at the first step itself.When i am trying to bind the data to the DataMemberBinding property, it is not binding. i think actaully i have customized the cell to have timepickers, so i dont tthink so the solution u gave will work.

Can u suggest me how to solve this problem in other ways using  telerik controls.

I have start and Endtime timepickers in the grid. When i try to chnge the values at runtime after setting the values previuously it need to sort.

Please provide the solution as soon possible.Waiting for the reply.
Tags
GridView
Asked by
sampath kumar
Top achievements
Rank 1
Answers by
sampath kumar
Top achievements
Rank 1
Maya
Telerik team
Share this question
or