Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
128 views
I have a template column in a RadGrid that has a RadMaskedTextBox in it.

When the user selects a row, the entire row is changed color except for these RadMaskedTextBoxes.

I want to change their background color to red when the user selects the row.

I trigger an event to do this with the following in the ClientSettings section of the RadGrid HTML.

 

<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.

John
Top achievements
Rank 1
 answered on 13 Jun 2011
3 answers
127 views
Hi,
Im new to asp.net and I am struggling on how to access the Advanced Form save event to send an email after every new appointment.  Any examples on how to accomplish this would be great.  I would also like to grab the values from the advanced form and include them in the email.

Thank you,
Gus
Gus
Top achievements
Rank 1
 answered on 13 Jun 2011
4 answers
217 views
I am partially populating a large tree and enabling load on demand and tri-state checkboxes.  At the time of partial population of the tree, I know which load-on-demand nodes have checked children, but I can find no way to communicate this to the tree object.  Node.CheckedState is read-only.  If I can't do this, checkboxes are potentially inaccurate until the entire tree has been expanded, which eliminates the value of load-on-demand.

Am I missing something?  Is there a work-around for this?  If not, please consider adding this capability in a future release.
Nikolay Tsenkov
Telerik team
 answered on 13 Jun 2011
3 answers
94 views
I have a user control inside a grid for editing. Everything works as expected except one thing.

I have an "Update" event on a toolbar in the control. The event checks the database for duplicate data. iIf another record exists it cancels the update. I'd like to leave the control open but the "Update" event goes up to the grid and it closes.

In classic RadControls you could do
e.cancel(true);
on the toolbar event.... is there a simple way to accomplish the same effect?
Peter
Telerik team
 answered on 13 Jun 2011
2 answers
81 views
I have a two docks in a horizontal zone.

When Dock_1 undocks I force Dock_0 to resize to 100% of the width of the zone.  
This restricts the floating dock from resizing larger.  Is this by design? 

One workaround is to size Dock_0 narrower and than the floating Dock_1 can be resized larger. 

Is there a proper technique to allow my floating dock to resize at will while Dock_0 occupies 100% of the zone?


Joel
Top achievements
Rank 1
 answered on 13 Jun 2011
1 answer
237 views
Hi ,
I am Facing One issue in My Rad grid, In that First  i ll will click the add button it show the fields in add mode and Edit button i shows the edit fiedls in edit mode but add form fields is not beging hided , Vice versa also.
If click add i want to show only add form field else if click edit button edit fields only i have to show.
Can any one tel how to hide and show the add / edit Mode..
Jayesh Goyani
Top achievements
Rank 2
 answered on 13 Jun 2011
12 answers
243 views
Hi
How do you display multiple appointments, in the same timeslot, side by side in the timeline view.  I want to display the appointments following each other in the time slot with the widths set appropriatley based on start/end time within the time slot (not set at 100% of the timeslot or at a default width)
Thanks

Peter
Telerik team
 answered on 13 Jun 2011
3 answers
380 views
Hi guy,

I have a good question for you. I have a main window (win0) that call a window (wind1) that call another window (win2). In the win2, I have a grid and I call another window (win0_1), but this window was declared in the radWindowManager of the win0. My problem is that when I close my win0_1, I want to make a Rebind on the grid on the win2, but I don't know how to do this. In fact, I'm using dataSet for the grid and when I closed the win0_1, data are add to the dataSet of the grid, so I just have to refresh my grid and the data will appears. I think about calling a javaScript function that is in the win2, but how to access to the radWindow of a child of a child of a window ?. 
Thank you,

David Lefaivre-Boucher
David
Top achievements
Rank 1
 answered on 13 Jun 2011
3 answers
65 views
Hi Everyone,

I followed the following example and did a module at my work.I was able to do everything very well.I have no clue it suddenly gave me an error saying that There is an error in the innertext of the HTML.

http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx?product=grid
I checked every tag ....
Nothing is working
When I click on add new employee link button in the above eg it is not showing the divexternalform.
Any one have any idea y the INNER TEXT Error comes up.

Please help me.

I tried to change the div tag to asp:Panel tag still it is doing nothin but refereshing the page.



Thanks,
Sravanthi



sravanthi
Top achievements
Rank 1
 answered on 13 Jun 2011
0 answers
50 views

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

 

David
Top achievements
Rank 1
 asked on 13 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?