Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views

Problem: I have a RadGrid that upon updating, deleting, and inserting needs to update a RadChart on the page.  I have tried the RadAjaxManager codeblock below (fig. 1) but they seem to update all at the same time and the new changes do not appear until the next ajax action.  The chart is in a control which is on a RadAjaxPanel (RadAjaxPanel1).

 

I have also tried to create a trigger in the codebehind (fig. 2) but I get errors.  I’m not sure if this is even possible being that I am using the built in buttons in the radgrid that do not have IDs.

 

Finally, I tried setting ClientEvents-OnResponseEnd="updatechart" to try to update the chart after insert insert which seemed to be the most promising being that I could see the alert get fired at the end of the radgrid update which I put in to test it but I kept getting null errors.  That java script code is below also (fig. 3).

 

I have spent hours on the telerik website trying to find a solution that works on this problem.  Any help would be greatly appreciated.

 

------------------------------------------------------

(Fig. 1)

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"

        UpdatePanelsRenderMode="Inline">

        <AjaxSettings>

            <telerik:AjaxSetting AjaxControlID="RadGrid1">

                <UpdatedControls>

                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />

                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />

                </UpdatedControls>

            </telerik:AjaxSetting>

        </AjaxSettings>

    </telerik:RadAjaxManager>

 

------------------------------------------------------

 (Fig. 2)

protected void RadAjaxPanel1_AjaxSettingCreating(object sender, AjaxSettingCreatingEventArgs e)

    {

        AsyncPostBackTrigger trigger = new AsyncPostBackTrigger();

        trigger.ControlID = Button1.ID; //<--not sure what this is suppose to be

        e.UpdatePanel.Triggers.Add(trigger);

    }

 

------------------------------------------------------

(Fig. 3)

                function updatechart() {

 

                    //shot alert after steps updated!

                    //alert("alert");

                    $find("<%=RadAjaxManager1.ClientID%>").ajaxRequest('Node_Clicked');

                   

                    //var ajaxMgr = $find("<%=RadAjaxManager.GetCurrent(Page).ClientID %>");

                    //ajaxMgr.ajaxRequest("ToDoRefreshAjax");

                    }

Iana Tsolova
Telerik team
 answered on 04 Jan 2010
1 answer
70 views
Hi,

In our application we are using default .Net themes and skins. We are having a default skin for each control, and if something different is needed then we are creating a custom skin for that control.

Now i want to use a formdecorator to rounded corners of textbox. But there is already a default skin for textboxes , that overrides the properties set by formdecorator. So is there any way to keep formdecorator in .Net skin file.

Thanks

Parimal Modi
Georgi Tunev
Telerik team
 answered on 04 Jan 2010
3 answers
112 views
Not sure if this is a bug, but it was not easy to trace the issue:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" /> 
    <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%"
        <telerik:RadPane runat="server" ID="RadPane1" Width="300px" Scrolling="None"
            left sidebar 
        </telerik:RadPane> 
        <telerik:RadSplitBar runat="server" ID="RadSplitbar1" CollapseMode="Both" /> 
        <telerik:RadPane runat="server" ID="Radpane2"
            top zone 
            <div id="centerContent"
                <div style="float: left; max-width: 50%; height: 100%;"
                    left zone 
                </div> 
                <div style="float: right; max-width: 50%; height: 100%;"
                    Right zone 
                </div> 
            </div> 
            <div style="width: 100%; min-height: 10px; clear: both;"
                bottom zone 
            </div> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
    </form> 
</body> 
</html> 

With the test page as above the page displays correctly until your collapse the splitbar either way, then when you open it back the content that was hidden stays hidden.

To fix all I had to do was remove the Height="100%" from the RadSplitter element, but this does not seem right.
Svetlina Anati
Telerik team
 answered on 04 Jan 2010
3 answers
56 views
As one of the early proponents of RadControls support for Mono, I'm finally at a point where I have a license for the Telerik Premium Collection, and maybe some time to do some testing.

Is there any documentation for getting started with Telerik ASP.NET AJAX and Mono? Downloads? Tutorial?  I know there were demos online but http://mono.telerik.com is down at the moment.

I am currently running with .NET 3.5 but can understand if Mono is only supported for v2.0.  Would I find info about Mono in a v2.0 download?

I don't suppose there is a VMware or similar appliance anywhere with all components pre-installed for a test drive over Linux?

Really, I'm "just" looking for a complete introduction to this offering with installation info, getting started info, code samples if there are differences from Microsoft .NET and ASP.NET.  Notes about caveats, bugs, gotchas, and anything that's not yet implemented would help so that I don't bang my head against a virtual wall on something that is known to not work.  :)  I'll be happy to take scrap notes, I don't need pretty web pages...

Thanks!
Daniel
Telerik team
 answered on 04 Jan 2010
7 answers
316 views
Hi, I would like to allow users to export all data from radgrid even if only 1 page is showing. So for example the grid may show 10 of 100 items. I would like users to be able to export all rows, not just the first 10 on a button click. This is a problem as I'm using custom paging so radgrid's ignorepaging does not help.

Does anybody know how I should go about doing this? I assume one way would be to increase the pagesize to the total number of rows available just before the export then set it back afterwards, but I'm not sure how to do this. 

Thanks!
Adam Hubble
Top achievements
Rank 1
 answered on 04 Jan 2010
5 answers
178 views
2009.1.527.35 Build
If I have any of these in the aspx page it will not render in FF 3.0.10, FF 3.5b4, Chrome.  It renders in IE 7 fine.

                        OnClientFileSelected="checkExtension"    
                        OnClientDeleting="OnClientDeletingHandler"
                        OnClientDeletingSelected="OnClientDeletingSelectedHandler"

(System Generated Code) Working in FF: 
 
Sys.Application.add_init(function() { 
    $create(Telerik.Web.UI.RadUpload, {"_skin":"Default","allowedFileExtensions":"[\".mht\",\".txt\",\".pdf\",\".htm\",\".html\",\".doc\",\".xls\",\".ppt\",\".gif\",\".jpg\",\".tif\"]","clientStateFieldID":"myUpload_ClientState","controlObjectsVisibility":"2","enabled":true,"inputSize":80,"localization":{"Select":"Select","Remove":"Remove","Add":"Add","Clear":"Clear","Delete":"Delete"},"readOnlyFileInputs":false}, nullnull, $get("myUpload")); 
}); 
 
 
Not Working in FF when additional client script events are defined: 
 
Sys.Application.add_init(function() { 
    $create(Telerik.Web.UI.RadUpload, {"_skin":"Default","allowedFileExtensions":"[\".mht\",\".txt\",\".pdf\",\".htm\",\".html\",\".doc\",\".xls\",\".ppt\",\".gif\",\".jpg\",\".tif\"]","clientStateFieldID":"myUpload_ClientState","controlObjectsVisibility":"2","enabled":true,"inputSize":80,"localization":{"Select":"Select","Remove":"Remove","Add":"Add","Clear":"Clear","Delete":"Delete"},"readOnlyFileInputs":false}, {"deleting":OnClientDeletingHandler,"deletingSelected":OnClientDeletingSelectedHandler,"fileSelected":checkExtension}, null, $get("myUpload")); 
}); 


      function OnClientDeletingHandler(sender, eventArgs) { 
          var numberOfInputs = sender.getFileInputs().length; 
          if (numberOfInputs == 1) { 
              sender.clearFileInputAt(0); 
              eventArgs.set_cancel(true); 
          } 
      } 
 
      function OnClientDeletingSelectedHandler(sender, eventArgs) { 
          var numberOfInputsToDelete = eventArgs.get_fileInputFields().length; 
          var totalNumberOfInputs = sender.getFileInputs().length; 
 
          if (totalNumberOfInputs == numberOfInputsToDelete) { 
              eventArgs.set_cancel(true); 
          } 
      } 
 
      function checkExtension(radUpload, eventArgs) {           
          var input = eventArgs.get_fileInputField(); 
          if (!radUpload.isExtensionValid(input.value)) { 
              var inputs = radUpload.getFileInputs(); 
              for (i = 0; i < inputs.length; i++) { 
                  if (inputs[i] == input) { 
                      alert(input.value + " does not have a valid extension."); 
                      radUpload.clearFileInputAt(i); 
                      break
                  } 
              } 
          } else { 
              radUpload.addFileInput(); 
          } 
      } 
            <div id="divNewAttachments" runat="server" style="float:none; height:auto; border-style: none; padding:5px 5px 5px 5px;"
                    <span id="lblAttachments" style="float:left" class="labelA">Add Document:&nbsp;</span> 
                    <telerik:RadUpload ID="myUpload" runat="server" InputSize="80" Width="700px" TabIndex="20"  
                        ControlObjectsVisibility="RemoveButtons"  
                        EnableFileInputSkinning ="true" 
                        AllowedFileExtensions=".mht,.txt,.pdf,.htm,.html,.doc,.xls,.ppt,.gif,.jpg,.tif" 
                        OnClientFileSelected="checkExtension"     
                        OnClientDeleting="OnClientDeletingHandler" 
                        OnClientDeletingSelected="OnClientDeletingSelectedHandler"
                    </telerik:RadUpload> 
            </div>    
T. Tsonev
Telerik team
 answered on 04 Jan 2010
1 answer
148 views
When i click the button radwindow is opened...when i close the window how can i rebind radscheduler in that page.....
Shinu
Top achievements
Rank 2
 answered on 04 Jan 2010
3 answers
203 views
I am having an issue with the Image Manager in the RadEditor.

I insert an image into the editor area using the Image Manager. I then select the image in the editor area and click the Image Manager button again. When the image dialog window opens it is not focused on the image and I cannot see what the properties are. I would expect that I would see my image selected and I should be able to examine and change the properties from the properties tab

The demo at

http://demos.telerik.com/aspnet-ajax/editor/examples/filemanagers/defaultcs.aspx

has the same problem.

I also have a custom FileBrowserContentProvider for my Image Manager and I can see that when my provider is constructed the first time that the selectedUrl and selectedItemTag parameters are set with the selected image src value but I cannot see what to do with these values. I do pass them to the base constructor in FileBrowserContentProvider.
Rumen
Telerik team
 answered on 04 Jan 2010
3 answers
124 views
Hi,

is it possible to show only the edit mode icons, e.g. without the text preview or html. Before we changed to Telerik ASP.NET AJAX Controls we had at the classic controls a property to define that only the icons will be shown.

Thanks for any hints.

Frank
Martin
Telerik team
 answered on 04 Jan 2010
10 answers
334 views
I am using the editor in a radwindow that opens a page that has a Theme applied to it. When the editor loads, it loads the styles in the css files of the theme as well as the css styles in the webresource used to in the radEditor skin. This is not desired.

How can I make it so that it ONLY loads styles of style sheets that I specify? I have already tried putting the style sheets I want in the toolsfile, doing it programmatically, and putting it in the aspx file. All of those methods successfully add the styles fromt he stylesheets that I specify, but they do not override the other styles that the editor is adding.

Note: I noticed that the same issue exists on your demo page when you go to First Look > Default settings and switch tools file from "Default" to "Full set of Tools". You can see that it adds the styles from the page into the dropdown list.

Edit: I have discovered that since I am using the editor in a multipage and one of those pages has rad calendars on it, the editor is picking up THOSE styles and not the styles in the WebResources (which I noticed that the javascript weeds out). So, How do I make the rad calendar not render its styles on the page? The editor still picks up the styles in the theme though, so I still need to know how to prevent that.
Rumen
Telerik team
 answered on 04 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?