Grid and combox

2 posts, 0 answers
  1. arkan
    arkan avatar
    9 posts
    Member since:
    May 2015

    Posted 03 Feb 2016 Link to this post

    hello all

    i have tow question ?

    i work on invoice web app 

    i add a gridview with sqldatasource 


    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)


    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 



  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 08 Feb 2016 Link to this post

    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:

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

    Maria Ilieva
    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