Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
354 views
Hi,

I'm wondering if there is a way to disable all RadComboBox expand and collapse animation without having to go to each one and setting it manually the ExpandAnimation-Type and CollapseAnimation-Type. I'm trying to optimize my client side rendering and it seems a lot of my rending time is because of these built in Telerik javascripts like updatePosition and _initializeAnimation. I would like to turn them all of the easiest way.

Thanks,
Gilbert
Ivana
Telerik team
 answered on 28 Dec 2011
3 answers
167 views
I have a splitter with several panes. One of the panes contains a tabstrip/multipage with usercontrols being loaded on each pageview. Each usercontrol contains a grid. I would like to ajaxify these usercontrols individually, since there may be complex ajax interactions in each. Normally, i would just add an AjaxManagerProxy Control to the usercontrols to accomplish this. However, here's the problem I am running into.

On the page which contains all of this, I run some javascript code in the Splitter OnClientLoad and OnClientResize events in order to properly size the grids (my splitter panes contain borders and padding and i have found that they do not automatically size correctly in a number of browsers (particularly ie7). Here is my resizing code:

function OnSpliterClientLoaded(sender, args) { 
                SizeGridToFit() 
            
    
            function OnSplitterClientResized(sender, Args) { 
                SizeGridToFit();  
            
    
            function SizeGridToFit() { 
                
                var tabStrip = $find("<%= MyTabStrip.ClientID %>"); 
    
                switch (tabStrip.get_selectedTab().get_value()) { 
                    case "Travel"
                        grid = $find("<%= MyUserControl1.MyGrid.ClientID %>"); 
                        break
                    case "Other"
                        grid = $find("<%= MyUserControl2.MyGrid.ClientID %>"); 
                        break;
                
    
                if (grid) { 
                    var mpPane = $find("<%= MultiPagePane1.ClientId %>"
                        
                    grid.get_element().style.height = mpPane.get_height() - 12 + 'px'
                        
                    var ieVersion = getInternetExplorerVersion() 
                    if (ieVersion >= 0 && ieVersion < 8.0) { 
                        //necessary to get horizontal scrollbars to work in IE 7. 
                        grid.get_element().style.width = mpPane.get_width() - 12 + 'px'
                    
                        
                    grid.repaint(); 
                
                    
            
    
function getInternetExplorerVersion() 
// Returns the version of Internet Explorer or a -1 
// (indicating the use of another browser). 
    var rv = -1; // Return value assumes failure. 
    if (navigator.appName == 'Microsoft Internet Explorer') { 
        var ua = navigator.userAgent; 
        var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); 
        if (re.exec(ua) != null
            rv = parseFloat(RegExp.$1); 
    
    return rv; 
}

if i do normal postbacks, then everything works as expected. However, if I ajaxify the usercontrols using AjaxManagerProxy controls, then after an ajaxupdate, the padding below the grid disappears. What is happening is, the grid is rebound through an ajaxupdate, however the code I have for perfoming the reisizing never gets run. Attached are before and after screen captures of the page. The before shot shows what the page looks like when it is loaded or if the browser is resized. As you can see, the grid is sized properly to show the appropriate padding at the bottom. if I ajaxify the grid and then do something, like sort a column, then the padding below the grid disappears (see the after shot). Again, i have an idea why this is happening.. the grid sizing code never gets run because that code is outside the user controls and occurs as a response to events in the splitter. My question is, is there a way for me to get this to work and still ajaxify the usercontrols (grids) individually.

Tsvetina
Telerik team
 answered on 28 Dec 2011
3 answers
74 views
Hi ,

We are using telerik controls in our application the problem that we are facing is that the right context menu is not displayed on right click on the RadMenu Item in IE8 . I am not able to figure out  why this is happening . Please help us in this .


Thanks,
Rahul
Kate
Telerik team
 answered on 28 Dec 2011
1 answer
67 views
Hi There,

Pls tell me how can i change my "Background image of Ribbon Bar".
Shinu
Top achievements
Rank 2
 answered on 28 Dec 2011
1 answer
92 views
Hi sir
i want to acess the controls from client side in edit form when i click  add new button or clicking  edit...for example i want to acess machinery or material  combobox shown in...attached image file...


Thanks and regards
Rajesh

Princy
Top achievements
Rank 2
 answered on 28 Dec 2011
3 answers
244 views
Hi,
I'm trying to add button in the header of the dynamically created  column.
Can you give me an idea how to do that.
Shyam
Top achievements
Rank 1
 answered on 28 Dec 2011
1 answer
77 views
Radgrid gets misaligned with the page when we use the following settings for the RadGrid. Otherwise, it works fine when we dont use the settings.

<

 

Scrolling AllowScroll="True" UseStaticHeaders="true" FrozenColumnsCount="3" SaveScrollPosition="true" />

note: the RadGrid moves 200px to right when we use the above settings for thr RadGrid otherwise it start with 0px.

 

Shinu
Top achievements
Rank 2
 answered on 28 Dec 2011
1 answer
78 views
Do you to security i have to rum the application in Medium trust.

I am getting the following warning

Microsoft JScript runtime error: ASP.NET Ajax client-side framework failed to load.
Microsoft JScript runtime error: 'Sys' is undefined
Microsoft JScript runtime error: 'Telerik' is undefined


Inner Exceptions:

Cannot perform CAS Asserts in Security Transparent methods

in radgrid edit click.

Need help ASAP

Shinu
Top achievements
Rank 2
 answered on 28 Dec 2011
3 answers
148 views
Hello. I have a problem with malformed RadDatePicker controls in my application. This problem started to occur as soon as I upgraded from Q2 2011 to Q3 2011.

The problem is that when RadFormDecorator is used on the form, the RadDatePicker/RadTimePicker ignores any Width attribute and produces a very wide textbox.  If you have another control to the right of the RadDatePicker/RadTimePicker, it will superimpose over the RadDatePicker.  Please see the code sample below and the two attached files.

This problem occurs in the current versions of Safari and Chrome on Windows and OS X. IE and Firefox render the controls correctly. If I modify the RadFormDecorator control's ControlsToSkip attribute to exclude textboxes, the controls render correctly in all browsers, but of course it mangles all my textboxes.  My application is quite large, and as RadControls were originally applied to a legacy application, we have made extensive use of the RadFormDecorator control to pretty things up.  Removing it from the application and manually applying styles to all my pages, and retesting everything is a very large task.

Other than rolling back to Q2 2011, which gives me nightmares, does anyone else have any ideas?

Here's the sample code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test2.aspx.cs" Inherits="Test2" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadFormDecorator ID="RadFormDecorator1" DecoratedControls="All" runat="server"
        Skin="Default" ControlsToSkip="Label" />
    <div>
        <telerik:RadDatePicker ID="RadDatePicker1" runat="server" DateInput-DateFormat="dd MMM yyyy"
            Width="110px" />
        <telerik:RadDatePicker ID="RadDatePicker2" runat="server" DateInput-DateFormat="dd MMM yyyy"
            Width="110px" />
    </div>
    </form>
</body>
</html>
Milena
Telerik team
 answered on 28 Dec 2011
2 answers
257 views
Hello,

I've seen this question asked before and I saw no appropriate resolution.

I have a RadGrid that is just a single level, no detail tables, no nesting.  The ObjectDataSource is set on the grid in code behind in response to a search button.
PayrollByCandidateRadGrid.DataSource = PayrollByCandidateObjectDataSource
PayrollByCandidateRadGrid.DataBind()
PayrollByCandidateRadGrid.Visible = True

The DataBind() method calls the ObjectDataSource.Select method 3 times before the third line of code above runs.
If I put a break point at the End Function of the ObjectDataSource code, I see the following in the Immediate Window:
F11 after first call
 
Step into: Stepping over non-user code 'System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod'
Step into: Stepping over non-user code 'System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect'
Step into: Stepping over non-user code 'System.Web.UI.DataSourceView.Select'
Step into: Stepping over non-user code 'Telerik.Web.UI.RadGrid.DataBind'
 
F11 after second call
 
Step into: Stepping over non-user code 'System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod'
Step into: Stepping over non-user code 'System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect'
Step into: Stepping over non-user code 'System.Web.UI.DataSourceView.Select'
 
F11 after third call
 
Step into: Stepping over non-user code 'System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod'
Step into: Stepping over non-user code 'System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect'
Step into: Stepping over non-user code 'Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource'
Step into: Stepping over non-user code 'Telerik.Web.UI.GridTableView.ResolvedDataSource.get'
Step into: Stepping over non-user code 'Telerik.Web.UI.GridTableView.CreateChildControls'
Step into: Stepping over non-user code 'System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding'
Step into: Stepping over non-user code 'System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback'
Step into: Stepping over non-user code 'Telerik.Web.UI.GridTableView.PerformSelect'
Step into: Stepping over non-user code 'Telerik.Web.UI.GridTableView.DataBind'

I also have other RadGrids on the page in various tab/multipage areas and they all have detailtables or nesting of some kind.  They all call their ObjectDataSource.Select methods 3 times as well, so I thought I'd just do the testing with the single level Grid.

Your assistance with this matter will make the sale of the product and save me from the wrath of my DBA.

Regards,
Joan.
Joan
Top achievements
Rank 1
 answered on 28 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?