ID on a 'Selectable' column

3 posts, 0 answers
  1. Matt
    Matt avatar
    13 posts
    Member since:
    May 2018

    Posted 24 Jun 2020 Link to this post

    Is there a way to assign an ID to a selectable column? Using Test Studio, it is a real challenge without writing code, to identify which columns was clicked as when you have multiple rows, they all have no ID (or any other way to identify them). Having an ID would fix that and if these columns would actually allow a template - which it seems they do not - we could do other nice things, icluding IDs

     

    Matt

  2. Tsvetomir
    Admin
    Tsvetomir avatar
    796 posts

    Posted 26 Jun 2020 Link to this post

    Hi Matt,

    In general, the selectable column is not a bound column and it is not supported to handle and store data of any kind. Also, in the context of its functionality having the ID attribute set is not needed. However, an ID can be assigned after the initialization of the grid - in the DataBound event handler. Here is an example:

    https://dojo.telerik.com/oVOzEPUJ

    An alternative is to handle the Change event of the grid. It is triggered after the selection of the row. Or, you can create a template column that will programmatically select/deselect the rows.

    I am not completely sure what are the limitations you are facing with the code. Can you elaborate more on the same so that I can think of a suggestion accordingly?

     

    Kind regards,
    Tsvetomir
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  3. Matt
    Matt avatar
    13 posts
    Member since:
    May 2018

    Posted 30 Jun 2020 in reply to Tsvetomir Link to this post

    Perfect, thanks, that worked for me :-)

     

    Matt

Back to Top