I am trying to use the numeric editor control on a web form. It enters and shows data properly; however, during postback the control value is ALWAYS null or empty! The text is empty, and the values (such as Value, ValueInt, etc) are all NULL.
Again the value displays on the control fine, but I can't seem to get the value back from the server side. What is going on or what am I doing wrong?
/Tom
Hi Tom,
I do not remember anybody reported a similar problem.
Please test codes below and verify that it works correctly. If it works, but your application fails, then I can suggest to check in your application following potential reasons:1. If editor (or its container) is created dynamically at run time, then it should be repeated in every single session/postback and ID of editor/containers should be the same.2. If editor value/text/etc. is initialized/modified dynamically on load or other server events.3. If ValueChanged event is processed and value is modified.
aspx:
<ig:WebNumericEditor ID="WebNumericEditor1" runat="server"></ig:WebNumericEditor><asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><asp:Button ID="Button1" runat="server" Text="Button" />
aspx.cs:
protected void Page_Load(object sender, EventArgs e){ this.Label1.Text = "Value:" + this.WebNumericEditor1.Value + ", int:" + this.WebNumericEditor1.ValueInt;}
Good morning. I have the same issue with WebNumbericEditor controls. No value properties show the keyed value. Text, Value, ValueInt are all blank. My first thought was "OK maybe controls are disabled and that's squashing the values."
But no, they're enabled when I step through them. Only the IG WebNumericEditor controls are missing values. My standard ASP.NET TextBox controls have the expected values. what gives?
After digging around on the forums a little I found this topic:
http://ko.infragistics.com/community/forums/t/9879.aspx
It appears that the WebNumericEditor was changed at some point between version 10.x and the version we are using (13.1.20131.2242), to set READONLY property on the associated input controls. This makes reading the .Text or .Value difficult when trying to retrieve in code behind page.
Do you have any suggestions on how best to read the control values in .VB file? This is a showstopper for our application as we are unable to process form data. Values come back as previously saved data and updates based on keyed data are impossible.
Please help! Thank you
Was any solution found for this because I am also facing the same issue. I am using 15.2 version of WebDataGrid.
Please someone help... Need it very urgently