Radgrid on an insert/ Add new record

3 posts, 0 answers
  1. binny
    binny avatar
    24 posts
    Member since:
    Jan 2015

    Posted 30 Nov 2015 Link to this post

    I would like to add a functionality only on insert/ Add new record

    The functionality is to search by the active directory ID and prepopulate the first and last names-

    I have three textboxes 1) ID 2) first name 3) last name, I am planning on putting a link button adjacent to ID textbox and once the textbox is filled, show the link button and clicking on it will prepopulate the first and last names by querying the AD and getting those values and assigning them to first/last name textboxes respectively and also show an error when ID entered is wrong

    I tried this outside of a grid and its working fine and I even tried this with autocomplete box but not able to get this working when it is within the radgrid

     Please help

     

     

     


     

    I would like to add a linkbutton next to the textbox which after putting the Active directory ID

  2. binny
    binny avatar
    24 posts
    Member since:
    Jan 2015

    Posted 01 Dec 2015 in reply to binny Link to this post

    Please can someone point me in the right direction
  3. Eyup
    Admin
    Eyup avatar
    3826 posts

    Posted 03 Dec 2015 Link to this post

    Hi Binny,

    You can use the Click event handler of the Button to achieve this requirement. Since the (sender as Control).NamingContainer will give you the corresponding GridDataItem, you can use it to access the textbox controls:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows

    Hope this helps. Please give it a try and let me know if it works for you.

    Regards,
    Eyup
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top