Capture RadTextBox's isDirty flag

4 posts, 0 answers
  1. systems
    systems avatar
    70 posts
    Member since:
    Dec 2013

    Posted 04 Jan Link to this post

    Hello,

    I have multiple RadTextBox & RadNumericTexBox on our form. The scenario is I need to find out if specific RadTextBox's value being tampered or not during editing form.

    Based on if the textbox is dirty(value got tampered than original) I need to call different eventsat client side. 

    I do not see any specific attribute for the same for RadTextBox or any specific event that will allow me identify isDirty flag. 

    Could you please advise on the same.

    Thanks,

    Imran

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 06 Jan Link to this post

    Hi Imran,

    The RadInput controls do not have a dirty flag out of the box. If you would like to detect where the user has changed the values you would need to implement custom logic.

    An approach you can use is to keep information for the changed input controls in a HiddenField. Before executing the custom methods you can check the HiddenField and run the corresponding logic.


    Regards,
    Viktor Tachev
    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
  4. systems
    systems avatar
    70 posts
    Member since:
    Dec 2013

    Posted 06 Jan in reply to Viktor Tachev Link to this post

    Thank you Viktor for your reply, 

    We are currently using a similar approach with use of OnValueChanged of RadTextBox, In which we are comparing old value v/s new value and set the dirty flag accordingly.

    However, on a side note it would be nice to have (may be in a newer version consideration of telerik) a isDirty or isModified flag for RadControls like textBox/Calender/TimePicker etc to know if the values is changed during the edit. 

    Thanks,

    Imran

  5. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 08 Jan Link to this post

    Hello,

    Thank you for the suggestion. Please submit it in our Ideas& Feedback Portal as a feature request. Thus, other users can see it and vote for it.

    Moreover, the developers team will be able to review it and possibly include it in the planning for a future release.



    Regards,
    Viktor Tachev
    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
Back to Top