Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
97 views
Hi,

Is there any way to globally assign a node image dependent on if it's a parent or not?

I have code the sets the image based on the node.count for each node, but after re-binding the datasource, the RadControls blow-up.  It's almost as if the prior datasource is still being enumerated.

Anyway, if there's a better way for me to do this, rather than walking through the entire tree, I'd appreciate the knowledge.

Thanks,
Cori
Top achievements
Rank 2
 answered on 17 Dec 2010
3 answers
267 views
Is there a way to cancel the click on a menu item in the OnClientItemClicked event?

The documentation says you can by returning a false from the handler but I can seem to get it to work.

Here is a routine i wrote to cancel the postback if the user hits the cancel button on the confirm window 

function RADItemClicked(sender, eventArgs)
{
    var item = eventArgs.get_item();
    if(item.get_text()=="Save Changes") {
        if (!confirm("Save Changes?")) { return false }
    }
   
}

Not sure what im doing wrong. Any advise would be appreciated.

TIA
Helen
Telerik team
 answered on 17 Dec 2010
1 answer
721 views
Hi,

I have a radgrid where the columns are programmatically created which are having textboxes in detail grid. Upon clicking, a specific text box, popup window with another text box will appear and the user have to enter values in the text box. Upon closing the popup window, the value entered in the text box from the popup window needs to be populated in the text box which was clicked initially. I'm having trouble getting the value. Is there any way that I could achieve that. (Note: I cannot change the data entry concept because it is the user requirement). Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 17 Dec 2010
0 answers
65 views
Hi ,

I have a requirement like this.

I have booked one  slot ( room ) for perticular member  on 12/12/2010  3:00 PM     to 12/12/2010 5:00 PM. I will select these rooms  and members from perticular dropdown list and i  will insert appointment on the scheduler.

when i select  12/12/2010  3:30 PM     to 12/12/2010 5:00 PM same Room number and memberit should  give "Room already booked" message will come when i insert new appointment .

Can u help me this.

Thanks & Regards
Shashi....
shashidhar ch
Top achievements
Rank 1
 asked on 17 Dec 2010
1 answer
111 views
Hi All,
I have a RadGrid with KeyboardNavigationSettings to use up and down arrows. When I click on a row, a ServerSide event is launched (with C# codebehind), but when I select a row with arrows the event is not fired. I suppose it could be a normal behaviour, but how could I launch that specific event?
Maybe a clientside event with OnRowSelected, but something like this 
if (eventArgs.get_keyCode() == 38) {
                var grid = $find("<%#RadGrid1%>");
                grid.SelectedIndexChanged();
            }
if (eventArgs.get_keyCode() == 38) {
     var grid = $find("<%#RadGrid1%>");
     grid.SelectedIndexChanged(null,null);
 }
if (eventArgs.get_keyCode() == 38) {
                var grid = $find("<%#RadGrid1%>");
                grid.SelectedIndexChanged();
            }
if (eventArgs.get_keyCode() == 38) {
                var grid = $find("<%#RadGrid1%>");
                grid.SelectedIndexChanged();
            }
if (eventArgs.get_keyCode() == 38) {
                var grid = $find("<%#RadGrid1%>");
                grid.SelectedIndexChanged();
            }
if (eventArgs.get_keyCode() == 38) {
                var grid = $find("<%#RadGrid1%>");
                grid.SelectedIndexChanged();
            }

doesn't work.

Thanks
Shinu
Top achievements
Rank 2
 answered on 17 Dec 2010
5 answers
248 views
Hello Telerik team,

I have a requirement where I need to Edit/Update/Delete the items on a radgrid which are populated from a sharepoint list meaning my datasource is sharepoint datatable.I am using Pop up edit form on edit like shown in this http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/popupeditform/defaultcs.aspx and when i click on "edit" I am able to show my present list item values on pop up edit form for that particular item.How do i write the events on "Update" and "Cancel" buttons inside the pop up edit form and how do i grab that particular item and update that item only.

I have one more issue.As shown in the blog mentioned above, I have a add new record.But when i click on that I am not able to show up the new edit pop up form and what kind of event can be written on that edit form to insert the record into the sharepoint list.

I have one more, I have used a rad window on delete which comes by using "Confirmtype"="Radwindow" on the column.How to write the events on that dialog box to delete or cancel the selected item.

Please provide me a sample with the sharepoint list because I saw many samples for sql datasource and none for a sharepoint list.
I greatly appreciate your response.

Thanks
Smith
Tsvetoslav
Telerik team
 answered on 17 Dec 2010
2 answers
167 views
Hi,

I would like to know if is possible to remove the appointment delete icon that is shown when the mouse is moved over an appointment. I've tried using an AppointmentTemplate but no result.

Regards,
john
Top achievements
Rank 1
 answered on 17 Dec 2010
1 answer
56 views
How to set the image in export pdf.
Daniel
Telerik team
 answered on 17 Dec 2010
4 answers
166 views
Is it possible to save the Track Changes result without opening the dialog?  Or even just a way to open the dialog in the background and close it out once the content is rendered an I have grabed the fieldset for the Track Change Content? 

My objective is to present the track changes content outside of the Editor to other users, so they can see what has changed.  I currently save both the initial and final versions to my database right now.  And I can force the content to automatically set and switch out with the following script.  I would just prefer not to have the dialog interfere with the UI when my sole purpose for it's use is just get the content rendered in the track change format, not to inform the users that wrote the content.
function EditorCommand(editor, args) {
                                  
switch (args.get_commandName()) {
 case "TrackChangesDialog":
   var loc = "Pub.aspx";
   var methodName = "GetLastRevContent" + location.search;
   var jsondata = new Object();
   jsondata.contentId = _$currentEdit.attr("id");
   var jsoon = $.toJSON(jsondata);
   $.ajax({
           async: false,
           type: "POST",
           url: loc + "/" + methodName,
           data: jsoon,
           contentType: "application/json; charset=utf-8",
           dataType: "json",
           timeout: _sysEditPubVars.timeoutRate,
           success: function (response) {
               var editor = $find('<%= RadEditor1.ClientID %>');
               var fromServer = jQuery.parseJSON(response.d);
               var currentcontent = editor.get_html(true);
               editor.set_html(fromServer.oldContent);
               editor.set_initialContent();
               editor.set_html(currentcontent);
               },
             });
      break;
  default:
      break;
   }
}
Sean Patterson
Top achievements
Rank 1
 answered on 17 Dec 2010
2 answers
91 views
I am exporting hierarchical rad grid to excel.
After exporting I can not apply normal excel sort on those result as it is giving attached warning.

 
Daniel
Telerik team
 answered on 17 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?