Grid and combox

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

    Posted 03 Feb Link to this post

    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 

     

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 08 Feb 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:
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top