We have a gird with the view selector, however if you click in the row it automatically selects the check-box, therefore when you click the next row the current item is not updated.
We want it so that clicking from one record to the next correctly updates the selected/current item and the row is only "selected" when the user clicks the check-box in the grid view column selector and not for when they are clicking in the grid row. Could you assist?
Thanks
Paul
6 Answers, 1 is accepted
Can you provide a bit more info about your scenario? Are you using our GridViewSelectColumn?
Regards,Vlad
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
Thanks
Paul
Setting CanUserSelect to false will fulfill this scenario.
Kind regards,Milan
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
P
You could simply subsrribe for for MouseLeftButtonDown event and move the code that was previsously executed in the event handler for SelectionChanged to an event handler of MouseLeftbuttonDown. For example:
public MainPage() { InitializeComponent(); this.playersGrid.AddHandler(FrameworkElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(playersGrid_MouseLeftButtonDown), true); } void playersGrid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { var senderElement = e.OriginalSource as FrameworkElement; var row = senderElement.ParentOfType<GridViewRow>(); // if row was clicked if (row != null) { // execute code } }Greetings,
Milan
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
P
