Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
393 views
I am having a tough time setting the dates that are selected in a RadCalendar.  I have been researching this, and from what I see the only way is to fill the SelectedDates properrty.  The RadCalendar is contained in  a UserControl that is embedded in a RadPanelBar->RadPane object.

This is an MVC app with no code behind and is using a MasterPage. 

I am filliing a  ViewData[] member with an array of RadDates prior to showing the View.  So everything has to be done using JavaScript.

I am unable to get the instance of RadCalendar as a "RadCalendar".  Meaning in the OnLoad I get an object by it's ID but when I address the SelectedDates property I get the "SelectedDates" is not a known property", or "Undefined" message.

I can get the data using a JavaScript enabled, Ajax Enabled web service, or I can use a JSON result from the controller.  But again, when I try to assign the array of RadDates to the Calendar object it fails.

function getEventDatesFromController()
    {       
  
        var returnData = $.ajax(
        {
            type: "POST",
            url: "/Events/GetRadEventDatesByDateRange",
            data: "startDate=" + "1/1/2000" + "&endDate=" + "1/1/2100",
            success: function (result) {
                var xml;
                debugger
                if (typeof data == "string") {
                    xml = new ActiveXObject("Microsoft.XMLDOM");
                    xml.async = false;
                    xml.loadXML(data);
                } else {
                    xml = result;
                    returnData = result;
                     
                    var ctrlEventCalendar = <%= ctrlEventCalendar.ClientID %>;
                    ctrlEventCalendar.selectDates(returnData, true); <-- Fails!!!, so does the following for loop
                    for (var i = 0; i < returnData.length; i++) {
                        ctrlEventCalendar.SelectDate(returnData[i], true);        
                      }       
  
                }
                 if(result.success) {
                 alert("Controller Called Successfully"); 
            },
            error: function (req, status, error) {
                alert("Sorry! Problem calling Event Controller
            }
        });
        return returnData;       
    }

<div class="box-leftEventCalendar">
        <telerik:RadCalendar runat="server" ID="ctrlEventCalendar" Style="margin: 6px auto 0" EnableMultiSelect="false">
        </telerik:RadCalendar>
    </div>


So my questions are:

How do you get the instance of the Calendar object as  RadCalendar?
How do you set the selected dates?

Any help or examples would be great.

Thanks,
Reid


Reid
Top achievements
Rank 2
 answered on 27 May 2011
2 answers
204 views
Hi there,
    How can I use an embedded skin for a rad grid ? I used the coding below

<telerik:RadGrid runat="server" ID="rdGd1"  EnableEmbeddedSkins="true"

 

 

 

skin="MySkin" GridLines="None">

 


which gives me an error like :

Telerik.Web.UI.RadGrid with ID='rdGd1' was unable to find embedded skin with name 'MySkin'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.



Could you please give me a solution for this ?
Thanks
Shafi


 

 

Pavlina
Telerik team
 answered on 27 May 2011
1 answer
63 views
Can someone please give me an example of how I can bind a RPB to a hierarchical dataset? 

Thanks.
Shinu
Top achievements
Rank 2
 answered on 27 May 2011
1 answer
61 views
Please let me know about the following

1) Instead of searching only at beginning of the Name field, can it show all entries that consist of what you have typed in?  For example, typing in ‘Smith’ would show the dropdown of the following: See Attached image 1.png

2)  Odd behavior when entering search value:

As soon as I open this page, I highlight the 0000 entry shown above and type in 0032

Expecting it to find ‘0032 – Chubb Foundation’

 Instead it displays ‘003200 – Bryman College’, but notice that Bryman College in the dropdown (up) is 3200.

 

 

If I hit the enter key to ‘accept’ this entry, the display changes to

I think it is not taking care of initial zeros in the search. Please let us know as it is a very important issue for you

Thanks very much and Regards,

Princy
Top achievements
Rank 2
 answered on 27 May 2011
3 answers
112 views
We're having troubles with performance on our implementation of the RadScheduler.  We have a rather fully-featured RadScheduler on the page, and a RadAjaxManager that handles postbacks.  Our clients have reported anywhere from 4second to 20second round-trip load times when browsing through the scheduler.

We've sped up processing time on the server to about 1.5s (there are 5 sets of resources that are loaded, which vary depending on the user).  We've implemented static content compression, dynamic content compression (IIS 7), and RadCompression which has sped up response delivery time to about an average 1s.  What we've noticed is that the big variance in performance is because of the request size.  When we make a request, like paging the radscheduler back 1 week, it loads in async, and the request header shows:

Content-Type: application/x-www-form-urlencoded; charset=utf-8
Content-Length: 248485

The request's content length is usually between 230KB and 270KB, even when there are zero appointments loaded on the scheduler for the week being viewed.  On a faster client connection, it is only taking about 2s to send the request to the server.  But on some client connections, that same request is taking about 10-15 seconds just to POST, before taking 2.5s to process and provide a response.

Is this normal?  Is there anything that we can do?  Is this the resource data being included in every request?  In our 5 resource types, we have a total of about 1200 resources, they include things like a user list, a location list, etc.

Because of a bug in the OnClientAppointmentMoveEnd(), we're not able to implement a client-side web services solution yet.
Peter
Telerik team
 answered on 27 May 2011
1 answer
127 views


Telerik Version used : 2010.3.1215.35

Actual case:

1. I am using the Tab strip along with the Two page view namely withdrawal and Letter.

2.  One scenario I have to navigate the tab page from Withdrawal  to Letter by means of coding Like (pgvLetter.selectedindex =0) 

3. Now I can use the Letter page view after that if I select he Withdrawal tab page one confirmation window is raising (This is done for functionality purpose) after that yes or no confirmation try to move to withdrawal tab page I got the script error as below

4. " htmlfile: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. " (This is popup script error message showing ) and 

5. document.getElementById("User-NewDataSet").focus(); (this error message is highlighted in web page  )

Expecting Case:

1. The Tab Strip  along with tow page view

2. If I have  to select the Letter tab page view by means of coding as  mention above 

3. Then manually select the withdrawal tab page  after doing the confirmation  (yes or no)

4. The withdrawal tab page has to be viewed

Cori
Top achievements
Rank 2
 answered on 27 May 2011
6 answers
317 views
I have a RadTabStrip with 5 tabs and 5 corresponding RadPageViews  that each contain a RadGrid.
I have set the property on my RadMultiPage to

RenderSelectedPageOnly

 

 

="true"

 

and set the RadTabStrip property

AutoPostBack

 

 

="true"

 

but each pageview is loading each grid nevertheless. 
Does this property just not render the HTML (but would still load all the data in each grid).
I am trying to decrease the initial load time, so I only want the respective grid to load when the appropriate tab is selected.

Thanks in advance.
Richard Boarman
Cori
Top achievements
Rank 2
 answered on 27 May 2011
1 answer
83 views
I need to create a FTPS(FTP SSL) website for someone to just upload files securely. Would it be somewhat similar if I just create a website using ssl for someone to login and use radupload on it since I read somewhere on this site that radupload would automatically use the ssl connections? That would probably mean that the files are being uploaded securely then.
Cori
Top achievements
Rank 2
 answered on 27 May 2011
3 answers
129 views
Hi

I am using a RadGrid in my aspx page. The Radgrid is generating columns dynamically at run time.
When there are around 3 or 4 columns generated, the paging UI looks fine.
But when multiple columns are generated, say around 1000, the paging UI gets distorted completely.
Please provide any resolution or solution to this asap.
Pavlina
Telerik team
 answered on 27 May 2011
7 answers
128 views
Hello,

I am using a radrotator to build a document viewer interface which works (for the most part) on the client.

the viewer works great and is lightning fast on browsers like chrome and firefox.  on IE it is a bit slower, but not terrible...

that is, until you get more than ~50 items or so in the radrotator.  At this point, IE freezes and gives the error

"Stop running this script?
 
A script on this page is causing your browser to run slowly. if it continues to run your computer might become unresponsive"

before one is able to do anything.

from what i can tell, the radrotator uses a lot of behind-the scenes jquery to move and slide all of the items around on the page, and IE reaches a point where it decides it doesn't want to do that, once you get around 50 items in the slider.

has this issue been noted before?  is there anything i can do to lighten the load on Internet explorer?

i am happy to put up any code where necessary, however i thought putting up a live link might be better... since the javascript I am using is probably the only relevent code...

if you go to the following link:

http://www.plsx.com/finder/viewer2.aspx?doc=3549&slide=72280&q=marcellus&f=(1.1)&

then you should receive an error as described above. similarly, if you instead go to the link:

http://www.plsx.com/finder/viewer.aspx?doc=3549&slide=72280&q=marcellus&f=(1.1)&

the records are truncated at 50 items, and you can see it works.

any help is much appreciated!



Niko
Telerik team
 answered on 27 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?