Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
172 views
Hi,

We are using RadScheduler to display a rota. The data per eah date is very minimal. However the page which containc RadScheduler control takes about 12-15 seconds to load completely before on can start working on it. The query which fetches the date is fairly basic and highly optimised. So we don't see any problem there.

Earlier on load, the control was defaulted to to display data for a month. Then it used to take around 20-25 seconds before a page loaded. But ever since we configured it to display data for 7-days, the time has come down to around 12 seconds.

What we conclude is that the javascript or html that the control brings alongwith it takes fairly long time to load.

Is there a way we can reduce the amount of javascript of html that is loaded. Or elase if you think there are other problems, can you just the solution?

Thanks
Peter
Telerik team
 answered on 27 Apr 2012
2 answers
111 views
We have an MVC 3 application where we needed to use the Rad Scheduler. We basically render out the control and stick it into a view. This is working fine. 

However now we have a situation where we need to render the scheduler to a modal popup. Basically in the modal we do an ajax GET request which grabs the rendered control and sets the innerHTML of the modal to the ajax response. 

After setting the innerHTML all of the scheduler markup seems to be there including script tags and viewstate. The calendar is rendered in the modal, looks great. However it doesn't do anything. Click events aren't working, cant change months, etc.

My guess is that there are some DOM events or something that allow the calendar to work from the full page load but not from the ajax call. I haven't figured it out exactly. But my question is, is there some way to ajax load the control and then from the clients side trigger some code that causes the scheduler to run all of its javascript (or do whatever it needs to do) and start working?

I realize this was not the intended use of the control but any suggestions would be greatly appreciated!

Peter
Telerik team
 answered on 27 Apr 2012
1 answer
94 views
We are currently using the RadStyleSheetManager in our application and have moved all of our styles into one style sheet. The only stylesheet not included in our main stylesheet is the jQuery Redmond.css stylesheet.  We currently have EnableScriptCombine = True and OutputCompression = "True". This is all setup on the master page in our application. Our users are reporting that they are receiving the Max stylesheet message in IE when they are on certain pages.

One of the screens where this issue appears to be occurring frequently we have a RadTabStrip and a RadGrid. When the user clicks the tabstrip we are just re-binding the grid with a different datasource. There was no need to actually have seperate grids since it is the exact same on each tab the only exception is the filter being used on the datasource.

Users are reporting that if they switch the tabs or paging through the grids; if seems that the everytime the page is posting it appears that the same requests are repeatedly being made and this is causing the Max stylesheet error to appear ( not 100% sure that's what is happening but at least thats what I see when i open up the Developer Tool in IE and click the CSS tab I'm seeing a lot of request in the drop down for this particular page.)

Any guidance or help would be greatly appreciated in helping us resolve this issue.

If you need more information please let me know and I will be glad to supply you with anything you may need.
Peter
Telerik team
 answered on 27 Apr 2012
1 answer
103 views
Probably something very simple, but I can't seem to find it.

I have a DragDropColumn and when the row is in edit mode the image is still visible.  Any way to make the column "ReadOnly"?

Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Apr 2012
4 answers
161 views
As we know. when we click "add new record" on Grid

Then we will find and InterForm will be open. and the page is go to last page.(see Pageing and records)

but some times we need it go to first page. don't last page.
Becase we hope datasource order by id Descending.

Btw:I know how to set currentPage to fristpage after Insert
Lucania
Top achievements
Rank 1
 answered on 27 Apr 2012
1 answer
138 views
Hi

I'm placeing RadMenu in page and add made EnableEmbeddedScripts as false for this control and adding javascript files through code like this

protected void Page_Load(object sender, EventArgs e)

        {

             RadMenu1.EnableEmbeddedScripts = false;

            ScriptReference referenceCore = AddJSReference("Telerik.Web.UI.Common.Core.js", false, RadMenu1);

            Page.ClientScript.RegisterClientScriptInclude(referenceCore.Name, referenceCore.Path);

            ScriptReference referenceQuery =AddJSReference("Telerik.Web.UI.Common.jQuery.js", false, RadMenu1);

            Page.ClientScript.RegisterClientScriptInclude(referenceQuery.Name, referenceQuery.Path);

            ScriptReference referenceQueryPlugin = AddJSReference("Telerik.Web.UI.Common.jQueryPlugins.js", false, RadMenu1);

            Page.ClientScript.RegisterClientScriptInclude(referenceQueryPlugin.Name, referenceQueryPlugin.Path);

            ScriptReference referenceNavigationScripts = AddJSReference("Telerik.Web.UI.Common.Navigation.NavigationScripts.js", false, RadMenu1);

            Page.ClientScript.RegisterClientScriptInclude(referenceNavigationScripts.Name, referenceNavigationScripts.Path);

            ScriptReference referenceRadMenuScripts = AddJSReference("Telerik.Web.UI.Menu.RadMenuScripts.js", false, RadMenu1);

            Page.ClientScript.RegisterClientScriptInclude(referenceRadMenuScripts.Name, referenceRadMenuScripts.Path);

 

        }

 

        public ScriptReference AddJSReference(string scriptName, bool IsExecutingAssembly, Control objectControl)

        {

            string[] Names;

            string DLLName;

            string VersionNumber;

            string Culture;

            string PublicKeyToken;

            ScriptReference reference = new ScriptReference();

            reference.Name = scriptName;

            if (IsExecutingAssembly)

                reference.Assembly = Assembly.GetExecutingAssembly().FullName;

            else

                reference.Assembly = Assembly.GetAssembly(objectControl.GetType()).FullName;

 

            Names = reference.Assembly.Split(',');

            DLLName = Names[0].Replace("\\", "");

            VersionNumber = Names[1].Split('=')[1].Replace("\\", "");

            Culture = Names[2].Split('=')[1].Replace("\\", "");

            PublicKeyToken = Names[3].Split('=')[1].Replace("\\", "");

            reference.Path = "~/MyScriptHandler.ashx?Assembly=" + DLLName +

                "&VersionNumber=" + VersionNumber +

                "&Culture=" + Culture +

                "&PublicKeyToken=" + PublicKeyToken +

                "&ResourceName=" + reference.Name;

 

            return reference;

 

        }



After running this page MenuItems are not appearing on click of main menu. Please suggest some sample code or work around to get rid of this issue.

 

Peter
Telerik team
 answered on 27 Apr 2012
1 answer
126 views
I have a page that opens a radWindow (called "radUserManager") and load the UserManager.aspx page:

<telerik:RadWindow ID="radUserManager" runat="server" 
    NavigateUrl="UserManager.aspx" Height="500" Width="950" Modal=true 
    Style="z-index: 7001" Behaviors="Close, Reload" Top="-500px"></telerik:RadWindow>

On UserManager.aspx, I have a radButton like this:
<telerik:RadButton ID="cmdCancel" runat="server" Skin="Windows7" Text="Cancel" Width="75px" OnClientClick="CloseWindow(); return false;" >
</telerik:RadButton>

The CloseWindow code looks like this:
function GetCommentRadWindow() {
  var oWnd = GetRadWindowManager().getWindowByName("radUserManager");
    return oWnd;
}
function CloseWindow() {
    GetCommentRadWindow().close();
}

Problem is, the window does not close. Nothing seems to happen.
 
Shinu
Top achievements
Rank 2
 answered on 27 Apr 2012
1 answer
65 views
I have some custom text that I am displaying in a radcombobox based on the following template:

<ItemTemplate>
  US
  <%# DataBinder.Eval(Container.DataItem, "AmountUSD", "{0:$####}")%>
  =
  <%# DataBinder.Eval(Container.DataItem, "Code") %>
  <%# DataBinder.Eval(Container.DataItem, "AmountLocal", "{0:$####}") %>
</ItemTemplate>

However, when an item is highlighted with the up/down arrows, the DataTextField (AmountUSD) value shows. For example, the combobox item will show "US $20 = EC $54" in the list, but when highlighted, the combobox text will show "20.0000".

I would like to either have the combobox text show as the template text or not show at all.

This custom text is already stored in an attribute called "DisplayText". Is there a way to use that?
chris_cf
Top achievements
Rank 2
 answered on 27 Apr 2012
1 answer
103 views

Hello everyone.

 

I'm new to Telerik controls but really appreciate them and have surprised myself by my progress so far. Nevertheless I have a problem which is driving me up the wall although it's probably fairly simple to solve.

 

I'm using RadAjaxManager with 3 panels in a hierarchy (not nested but dependent upon one another for data):

 

Panel1 Contains a category selector

Panel2 Contains the list that results from changing the category in Panel 1.

Panel3 Contains the details when a list item from panel 2 is clicked.

 

So in the RadAjaxManager: Panel 1 is set to update Panel 2 and Panel 2 is set to update Panel 3.

 

So far so good. Everything works fine except that Panel 3 contains a google map which, if the user clicks a new category in Panel 1, disappears. I am assuming that this is because Panel 1 updates Panel 2 and since Panel 2 is changed it is 'forced' to update Panel 3. I don't want this to happen because I'm pretty sure it's responsible for the map's disappearance.

 

In any case there is no need for Panel 1 to update Panel 3. But how do I stop this 'cascade' happening?

 

I have tried using ajaxRequestWithTarget from a control in Panel 2 to try to avoid any updates from panel 2 updating panel 3 but so far without success. Plus I only have a vague understanding of how this works and in addition I need to run a client script after the request completes (to redraw the map after the ajax has passed the coordinates back to the page) but I don't see any way to do this since OnResponseEnd doesn't get called in this scenario.

 

I'm sure this is a fairly common situation. I really hate to post in forums until I've spent hours looking for solutions to similar problems in forums. Believe me that I have now spent hours!

 

Any pointers at all appreciated.

 

Steve

 

Steven
Top achievements
Rank 1
 answered on 26 Apr 2012
1 answer
87 views
Hello everyone,
I am using a RadGrid on my mainPage.aspx; one of the columns is a GridHyperLinkColumn. When the user clicks on each hyperlink, it opens a newPage.aspx to display some data. On click of the link, it doesn't cause postback on the mainPage.aspx as per the GridHyperLinkColumn design.

I have to maintain the count of read items (hyperlink clicks) on the mainPage.aspx; so when the user clicks on the link (which opens up newPage.aspx; and sets the read flag in a db table); After the db table is updated, i have to come go back to the mainPage.aspx and set the read count.

Please give any ideas on how this can be achieved.
Richard
Top achievements
Rank 1
 answered on 26 Apr 2012
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
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
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?