Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
130 views
Hi,

I am having a problem with HeaderStyle cssclass after the grid has been resized using "best fit" feature. To show the problem, please have a look on the colour of the header in Error.PNG. Ideally I want to have it look like it was before applying "best fit" shown as in "original.png".

Following is javascript is responsible for resizing the grid during page load event.

function pageLoad() {
            var grid = $find("<%= grid.ClientID %>");
            var columns = grid.get_masterTableView().get_columns();
            for (var i = 0; i < columns.length; i++) {
                columns[i].resizeToFit();
            }
        }

Many thanks.
MG
Galin
Telerik team
 answered on 10 Jun 2011
1 answer
191 views
I have implemented Filtering in my RadGrid, however, the filtering is done at the database, not by the Grid Control. Therefore I handle the Grid ItemCommand event, check for the Filter Command, build a filter string based on the filterPair, cancel the filter command and rebind the grid with the filterstring. Everything works fine except I have noticed a couple issues:

1) After the grid is rebound, if I click on the filtermenu icon, the "NoFilter" item is selected, even though the grid was filtered with some other selection (such as "StartsWith"). I assume this is because I set e.cancelled = true in the ItemCommand event. Is there a way to set the proper selected filter menu item after the grid is rebound? In the ItemCommand Event, I store the various column filter selections in viewstate, so I believe, If I am able to access the filter menu somehow, I should be able to set the right value (hopefully without firing another filter event)

2) When simple filtering is used and the user selects the "NoFilter" option to remove the filter, the text value they specified is cleared. This doesn't occur in my scenarion, and again I assume it is because I set e.cancelled = true in the ItemCommand event.. I tried adding the following to the ItemCommand Event handler:

Dim txtBox As TextBox = CType((CType(e.Item, GridFilteringItem))(filterPair.Second).Controls(0), TextBox)
                               If filterPair.First.ToString = "NoFilter" Then
                                   txtBox.Text = String.Empty
                               End If

What happens is, the filter value disappears for a moment, but then returns when the grid is finsihed rebinding. Is there a way to clear this text if the "NoFilter" option is selected?
Vasil
Telerik team
 answered on 10 Jun 2011
7 answers
151 views
Hi all,

I want to move the filter box to the header section, is it possible? Is yes please provide solution as soon as possible.


Thanks.
Iana Tsolova
Telerik team
 answered on 10 Jun 2011
4 answers
136 views
Hi all,

I have several grids which are automatically refreshing their data every 10 seconds via various methods (some radajax, some client binding via a web service call). The problem I'm running into is that if the user is in the middle of a column resize event (mouse is down and he's dragging a column), when the data refreshes, its creates an error state. In this case, the column resize image freezes along with the tool-tip and stays on the screen indefinitely until the page is reloaded.

So my question is this: is it possible to abort the current resize in progress type event prior to updating the grid data? ... or, alternatively, is it possible to capture the start of the resize so that I can stop my refresh timer? (OnResizing only fires on the client on mouseup of the resize).

Thanks in advance!
-Brian
Brian Azzi
Top achievements
Rank 2
 answered on 10 Jun 2011
1 answer
150 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
193 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
170 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
141 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
143 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
79 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?