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

Grid and combox

1 Answer 150 Views
Grid
This is a migrated thread and some comments may be shown as answers.
arkan
Top achievements
Rank 2
Iron
arkan asked on 04 Feb 2016, 02:29 AM

hello all

i have tow question ?

i work on invoice web app 

i add a gridview with sqldatasource 

firstly 

in this grid view i have a textbox to inter Qty and other column with in stock value  i have to prevent user add qty value larger than in stock value so i want to add compare validation  inside gridview (Qty most be less or equal instock value)

Secondly

i add a combox inside gridview with other sqldatasource , this combo box have three column i want textbox in other column to get one of this column vale when combobox selected chanched

im looking forward to here from you 

regard 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 08 Feb 2016, 02:07 PM
Hi Arkan,

In order to achieve the Custom Validation scenario you can use Template Columns and add Custom Validator using the Item_Created event of the RadGrid control like shown in the forum thread below:
http://www.telerik.com/forums/rad-grid-templatecolums-compare-validator

Again in the same event you can access the edit items and modify their values based ion the required cafeterias.

Regards,
Maria Ilieva
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
arkan
Top achievements
Rank 2
Iron
Answers by
Maria Ilieva
Telerik team
Share this question
or