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

AutoPostBack not working in GridColumnEditor

0 Answers 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 24 Feb 2017, 06:43 PM

I have a class derived from GridTextColumnEditor. It overrides the function AddControlsToContainer. I want the added controls (textboxes) to do a postback. When I have a textbox on my page and set AutoPostBack to true, the resulting html looks like this:

<input name="ctl00$_mCPH$AssetClassSettings1$p1c4r6" id="ctl00__mCPH_AssetClassSettings1_p1c4r6" style="width: 30px; text-align: right;" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" onfocus="FormatNumberAsDecimal(this)" onblur="FormatDecimalAsNumber(this)" onchange="javascript:setTimeout('__doPostBack(\'ctl00$_mCPH$AssetClassSettings1$p1c4r6\',\'\')', 0)" type="text" value="0" precision="0" originalamount="0" nomatch="0" group="1" maxamount="100" minamount="0" negativecolor="Red">

But when added via the GridTextColumn Editor, the html is:

<input name="ctl00$_mCPH$BG1$BudgetGrid$ctl01$ctl08$ctl01" style="width:60px;text-align:Right;" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" onfocus="FormatNumberAsDecimal(this)" onblur="FormatDecimalAsNumber(this)" onchange="javascript:setTimeout('RadGridNamespace.AsyncRequest(\'ctl00$_mCPH$BG1$BudgetGrid$ctl01$ctl08$ctl01\',\'\', 'ctl00__mCPH_BG1_BudgetGrid', event)', 0)" type="text" value="0" precision="2" originalamount="0" nomatch="0" group="1" maxamount="99999" minamount="-100000000" negativecolor="Red">

 

This "RadGridNamespace.AsyncRequest" is not a post back and I don't know what it is or why it would be added rather than the doPostBack. How do I make this work?

 

 

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Share this question
or