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

My Client wants to print the rad scheduler as shown in the Browser. I'm not sure whether we have any option for printing it. Can anyone help me on this? Is there provision to accomplish it?
Veronica
Telerik team
 answered on 10 Jun 2011
0 answers
169 views
Hello All,

I am binding only 10 records from DataTable which is stored in Session Variable.

When I trying to sort Record it gives me following Error Message.

Sys.WebForms.PageRequestManagerServerException. An unhandled exception occurred while processing the request:The status code returns from server was 413

can any one help me how to resolve such errors?

Such errors do not come regularly but sometimes suddenly appears.

After some searching I set <telerik:RadScriptManager ID="RadScriptManager1" runat="server" AsyncPostBackTimeout="600" /> and also increase maxRequestLength property inside web.config file.

Then also error occurs.

Regards,

Dharmesh

Dharmesh
Top achievements
Rank 1
 asked on 10 Jun 2011
6 answers
151 views

Hi,

Requirement:
As per requirement, I have written a Asp.Net Web Service that would process a user control (written using base class as System.Web.UI.UserControl) and return pure HTML as string. This user control contains Telerik RadMenu that has several menu items. Here is the code from web service for processing user control and returning the HTML.

[WebMethod]
        public string RenderView()
        {
            try
            {
                Page page = new Page();
                WebUserControl1 ctl = (WebUserControl1)(page.LoadControl("/WebUserControl1.ascx"));
                page.EnableEventValidation = false;
                HtmlForm _form = new HtmlForm();

                page.Controls.Add(_form);
                _form.Controls.Add(ctl);
               
                StringWriter writer = new StringWriter();
                HttpContext.Current.Server.Execute(page, writer, false);
                String output = writer.ToString();
                writer.Close();

                return output.ToString();

            }
            catch (Exception e)
            {
                string error = e.ToString();
                return error;
            }
        }

 

Then I am consuming this web service from some other Asp .Net web application. In that web application, I have one aspx page with usual data on it. Also it has a literal control inside <div> tag at some place. I am rendering the returned HTML in literal control and expecting the Telerik Radmenu to work.

Problem:
Telerik Radmenu refers several css and js files which are served as webresource from Telerik assembly. In above implementation, the rendered HTML output does contain webresource reference. However since the web application (that is consuming the web service) is different and user control/web service together are residing in different web application, the Telerik Radmenu is not working as expected i.e. it does not expand/collapse.

Questions:
Rather than referencing css and js files through webresource, Is it possible to give reference to both css and js files through simple <link> tag? So that those files could be referenced (via <Link> tag with source as URL) in other web application (that is consuming the web service)?

Thanks,
Shailesh

Kalina
Telerik team
 answered on 10 Jun 2011
1 answer
123 views
Hi,
We are using Q3 2009 controls. I'm having an issue with RadGrid. In Prerender, I'm hiding certain rows based on some logic. Those rows are also included in paging and the page size is off by the hideen row count.
How can I fix this. Your help is greatly appreciated.
Thanks,
BC
Radoslav
Telerik team
 answered on 10 Jun 2011
1 answer
126 views
Hello,

I'm trying to sort out a way to avoid having the cursor at position 0 in the editor after using the editor.set_html("I added some text"); function from javascript.  It seems in  when set_html is used your cursor automatically moves to position 0. You can see from your example on your site by clicking set_html http://mono.telerik.com/Editor/Examples/ClientsideAPI/DefaultCS.aspx 

Is there any workaround for this?  In short what I'm trying to accomplish is to Filter the contents of the editor and replace that content, via JavaScript.

thanks,

Rumen
Telerik team
 answered on 10 Jun 2011
1 answer
65 views
Hi
i have 4 dropdown in one form. when enter key press in move to one dropdown to anoter dropdown

hi
Thanks
Advance.
Kate
Telerik team
 answered on 10 Jun 2011
1 answer
152 views
I have a RadGrid control which is created programmatically when Page_Init event. It contains 3 columns.

I have a drop downlist on the top of the page containing 1, 2 and 3 (I also have few other controls which will affect the layout of the RadGrid such as RadDatePicker, RadSlider and asp:CheckBoxList).

When 1 is selected from the drop down list, the RadGrid control should be created with 1 column; when 2 is selected from the drop down list, the grid should have only 2 columns.

How is it possible?

The problem I'm facing is that at Page_Init event, I don't know which item was selected from the drop downlist as the control view state is not yet initialized.

If I move the RadGrid creation to the Page_Load event, then I've read that (haven't tried it myself) it won't work as I'm using Template Columns.

How to change the RadGrid Structure at Runtime for the scenario mentioned?

Many thanks,
Radoslav
Telerik team
 answered on 10 Jun 2011
3 answers
127 views
Hi,

I had an old version of Telerik.WebControls.RadEditor that I just upgraded to Telerik.Web.UI.RadEditor. In the older version, one of the lines in the code behind .cs file is as follows:

this.RadEditor1.SubmitClicked += new EventHandler(RadEditor1_SubmitClicked);

After the upgraded to the new version, however, I get an error as follows:

'Telerik.Web.UI.RadEditor' does not contain a definition for 'SubmitClicked' and no extension method 'SubmitClicked' accepting a first argument of type 'Telerik.Web.UI.RadEditor' could be found (are you missing a using directive or an assembly reference?)

I do have a using Telerik.Web.UI; tag on top of my .cs file.

Can anyone please let me know what the corresponding code to use instead of the line above is in the new version of the Telerik controls?

Regards,
Paras Wadehra

 

Rumen
Telerik team
 answered on 10 Jun 2011
3 answers
104 views
Hi,
I have created a user control in my website to create Raddocks dynamicaly. This user control is used in one of the child page (testpage.aspx) which is opened through 'window.top.radopen' javascript command to perform drag and drop. 

The problem is, when the page (testpage.aspx) is loaded first, the docks are created fine. But while performing drag and drop neither the page init (user-control's) nor the DockLayout's events (in user-control screen) are not getting fired.

I have to save the order at which the docks (dynamically created) are sorted. I worked out the code to save the dock's sorted order after drag and drop. The code works fine in child page. but not working in usercontrol....I think the events are not triggering due to some postback problem. My website is not AJAX enabled.

I have googled a lot..but couldn't find a solution.

any idea ... ?
Pero
Telerik team
 answered on 10 Jun 2011
3 answers
202 views
I have a radgrid control bind to an object datasource. In the business layer, I have some validation check to make sure input data is valid and if it not the business layer wil throw an exception.

In the ItemUpdated event of the radgrid, I have write some logic to catch the exception from the business layer:

            If e.Exception IsNot Nothing Then 
                e.ExceptionHandled = True 
                e.KeepInEditMode = True 
 
                Response.Write(e.Exception.Message) 
            End If 

Everything works fine except that the edit form of radgrid control does not retain the new value when server-side validation failed.

I was trying to apply that logic to a form view / detail view and everything works as expected, when server-side validation failed, the new values are remain and the user can modify the invalid one and perform update action again.

Am I missing some thing with the radgrid control ?
Any help would be appreciated.
RvdGrint
Top achievements
Rank 1
 answered on 10 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?