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

Radnumeric Textbox inside grid

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rizwan Ansari
Top achievements
Rank 1
Rizwan Ansari asked on 07 Sep 2011, 01:54 PM
Dear all,

i need your help,i have a dropdownlist in master page.this dropdownlist having values like 1,2,3. in content page i have grid and inside grid i have radnumerictextbox now i want to limit the user according to the dropdownlist selected value,means suppose if user has selected value 2 and the grid having suppose 4rows now the total value of radnumeric textbox should not be more than 2 ,i hopw my question is understandable.
please help me to solve this issue.

Thanks
 

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 12 Sep 2011, 02:05 PM
Hello Rizwan,

You could wire the ItemCreated event of RadGrid to access the RadNumericTextBox. Inside this event get a reference to the control on the master page and set the MaxValue property of the textbox to the selected value. Some links that could help you:
Accessing Cells and Rows
How to: Reference ASP.NET Master Page Content

Regards,
Tsvetina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Rizwan Ansari
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or