Looking for Sample: ColorPicker & Grid

3 posts, 0 answers
  1. antonio
    antonio avatar
    28 posts
    Member since:
    May 2008

    Posted 07 Jul 2008 Link to this post

    Hello,

    I wonder if anybody has implemented the RadColorPicker inside a grid.  I have started implementing it inside the default ASP.NET datagrid, and it works OK except when I need to update the datasource after a new color has been picked.

    I have used both client and server events for when a color is selected, but I can't seem to get the index of the current row where the colorpicker was launched.

    Any help would be appreciated.

    Thanks,

    Antonio.
  2. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 08 Jul 2008 Link to this post

    Hello Antonio,

    The grid's update command handler accepts as a second parameter DataGridCommandEventArgs e. You can use them to find which is the index of the current row which is updated - e.Item.ItemIndex. In case this suggestion cannot help you achieve the desired scenario, please, provide more details about what you want to achieve so that we can get a better idea of the problem you encounter.

    Best wishes,
    Sophy
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. antonio
    antonio avatar
    28 posts
    Member since:
    May 2008

    Posted 08 Jul 2008 Link to this post

    Hello,

    Thanks for your response.  Clicking on the color picker does not raise the DataGrid_ItemCommand event.  The way I solved this problem (using the OnColorChanged event), is not very efficient since I have to traverse all the rows in the grid and then make the necessary updates to the datasource.

    Thanks ayway.

    Antonio.
Back to Top