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

Capture RadTextBox's isDirty flag

3 Answers 136 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
systems
Top achievements
Rank 1
systems asked on 04 Jan 2016, 02:13 PM

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

3 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 06 Jan 2016, 01:55 PM
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
0
systems
Top achievements
Rank 1
answered on 07 Jan 2016, 03:24 AM

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

0
Viktor Tachev
Telerik team
answered on 08 Jan 2016, 02:15 PM
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
Tags
NumericTextBox
Asked by
systems
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
systems
Top achievements
Rank 1
Share this question
or