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

Radgrid on an insert/ Add new record

2 Answers 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
binny
Top achievements
Rank 1
binny asked on 30 Nov 2015, 09:13 PM

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 Answers, 1 is accepted

Sort by
0
binny
Top achievements
Rank 1
answered on 01 Dec 2015, 08:59 PM
Please can someone point me in the right direction
0
Eyup
Telerik team
answered on 03 Dec 2015, 01:48 PM
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
Tags
Grid
Asked by
binny
Top achievements
Rank 1
Answers by
binny
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or