<
ClientEvents
OnRowSelected
=
"OnRowSelected"
/>
The javascript event handler is:
function OnRowSelected(sender, eventArgs) {
var MasterTable;
var aryAllRows;
var rowOneRow;
var txtItemUPC;
MasterTable = sender.get_masterTableView();
aryAllRows = MasterTable.get_dataItems();
rowOneRow = aryAllRows[eventArgs.get_itemIndexHierarchical()];
txtItemUPC = rowOneRow.findControl('txtItemUPC');
txtItemUPC.get_styles().EnabledStyle[0] += "background-color: Red";
}
I can check txtItemUPC.get_value() to see that txtItemUPC is correctly set to the RadMaskedTextBox.
The value of txtItemUPC.get_styles().EnabledStyle[0] is changed by the above code. However, the RadMaskedTextBox doesn't display any differently.
As a test, I set txtItemUPC.get_styles().EnabledStyle[0] to a garbage value and not receive any error messages.
Can you point out what I am doing wrong? Note that there is no set_styles option, I believe.
Greetings,
I have an web app in VB.net 2005 with the ASP.NET AJAX Q2 2010.
I am using RadAjaxManager to configure the call for the page – there are no Update Panels etc…
The partial postback thing working fine on (Localhost) However when I publish it out
to the test server I lose all AJAXfication and I get a full post back.
When the user clicks the ASP:Button I add a set of GUI elements programmatically to the page:
Dim rmtb As RadMaskedTextBox = New RadMaskedTextBox()
With rmtb
.Mask = "###.###.###.###"
.PromptChar = ""
.Width = "120"
.SelectionOnFocus = SelectionOnFocus.CaretToBeginning
.ID = "rtbIPAddress_2"
End With
daPlaceHolder.Controls.Add(rmtb)
And we get a partial post back – localhost
On the server we get a full postback – resetting other input fields in GUI.
Is there an issue with inserting the controls into PlaceHolder and not a ASP Panel (or Div).
Is ASP: PlaceHolder a bad thing here.. – I read something about to this effect at Telerik.com
Has anyone else experinced this issue and how did they debugg and or solve it?
Thanks!
David Gilden MCSD / Web Developer