Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
180 views
Hi, when I set the width of a Rad Menu to 100%, it renders fine in IE8, Firefox, Chrome, Safari, and Opera. In IE7 however it does not render at all and an IE8 browser rendering in IE7 compatibility mode does not render it either.

For now I can unset the width of the menu however I like the overall look of it being stretched.

Thanks,
Cary

I should note that as a temporary fix, in case anyone needs it, is to check the browser version and set the width in the code behind.
            if (Request.Browser.Browser == "IE" && Request.Browser.Version == "7.0"
            { 
                return
            } 
            else 
            { 
                rmNavigation.Width = Unit.Percentage(100.00); 
            } 

Cary
Top achievements
Rank 2
 answered on 24 Apr 2009
2 answers
151 views
I have a RadGrid with 2 custom filter columns. After export to excel the filter columns stop working.

The server side events still work (can still filter the grid by typing into the combobox of the filter column) but the client side events don't work (combobox doesn't drop down).

Thanks

MW
Top achievements
Rank 1
 answered on 24 Apr 2009
1 answer
107 views
I have a RadCombobox that I am allowing lookup based on three fields: Combobox Text Field (Last, First), Value Field (NTID) or First Name.  So for Doug Ross they could enter "d o u" or "r o s" or "d r o" (NTID is dross).  This works real well with an exception.  I found a situation where the MarkFirstMatch marks the second match.

oliver, paul (NTID is poliver)
pool, andrew (NTID is apool)
pople david (NTID is dpople)

When typing "p o" The three options above are populated and the second value is selected.  The first does not show but I know it's there.  This makes sense because the MarkFirstMatch can only match on the text of the dropdown, not a problem.  The problem is every time I click the up arrow to see "oliver, paul" the _ItemsRequesed fires and the dropdown scrolls again to hide "oliver, paul" so the first option shown is "pool, andrew".

Right now I'm just dealing with it because as soon as the user types the l in "p o l" they can get to "oliver, paul" because it is exclusive in the list.  I can turn off MarkFirstMatch and it works correctly.  I just don't understand why the _ItemsRequesed fires.  I'm sure its because pressing the up arrow takes focus away from the label and the _ItemsRequested fires on the full name "pool, andrew" yet the list does not get dropped to the single entry.

Just wondering if anyone has seen something like this.

Thanks,
Doug
Yana
Telerik team
 answered on 24 Apr 2009
3 answers
126 views
Hi, we have just purchased the RadControls for ASP.NET AJAX and having trouble with our first attempt to making a working layout.
We are using Q1 2009 to develope the restyle of an old application, with an huge number of customers and needs to make a classic 3 pane layout: top header, left menu and a big content (the main one) pane.
We are planning to use a dock layout on the 'main' pane to make docked 'windows' with input controls inside. Our customers use IE6 and IE7 platform.

This is our first try:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs"%> 
 
<%@ 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"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" style="height:100%">  
<head id="Head1" runat="server">  
    <title></title>  
    <telerik:RadStyleSheetManager runat="server" ID="RadStyleSheet1" /> 
</head> 
<body scroll="no" style="margin:0px;height:100%;overflow:hidden;" > 
    <form id="form1" runat="server" style="height:100%;margin:0px" > 
        <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">  
        </telerik:RadScriptManager> 
        <telerik:RadSplitter runat="Server" ID="MasterContainer" Width="100%" Height="100%" Orientation="Horizontal" 
        VisibleDuringInit="false" FullScreenMode="True" LiveResize="True">      
            <telerik:RadPane ID="topPane" runat="server" Height="89px" Scrolling="None">  
                <div class="header" style="height:69px;width:100%;">  
                    <div class="logo" style="height:89px;width:100%;">  
                        Logo Zone (CSS)  
                    </div> 
                </div> 
            </telerik:RadPane> 
              
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server"  EnableResize="False" /> 
              
            <telerik:RadPane ID="ContainerPane" runat="server" Scrolling="None">  
                <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Vertical">  
 
                    <telerik:RadPane runat="Server" ID="leftPane" Width="240px" MinWidth="120" MaxWidth="360">  
                        Menu Zone (collapse)  
                    </telerik:RadPane> 
 
                    <telerik:RadSplitBar runat="server" ID="MenuSplitBar" CollapseMode="Forward"/>  
                                          
                    <telerik:RadPane ID="RightPane" runat="server" BackColor="Yellow">  
                        <telerik:RadDockLayout ID="RadDockLayout1" runat="server" > 
                              
                            <telerik:RadDockZone ID="RadDockZone1" runat="server" FitDocks="true" Orientation="Vertical" height="98%" BackColor="White">  
                                  
                                <telerik:RadDock ID="RadDock1" runat="server" EnableDrag="False" Height="580px" DefaultCommands="ExpandCollapse" BackColor="AntiqueWhite" DockMode="Docked" Width="650px">  
                                <TitlebarTemplate>DOCK TITLE 1</TitlebarTemplate> 
                                    <ContentTemplate> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                        Dock Pane Data 1<br/> 
                                                                                  
                                    </ContentTemplate> 
                                </telerik:RadDock>                              
 
                            </telerik:RadDockZone>                          
 
                        </telerik:RadDockLayout> 
                    </telerik:RadPane> 
               </telerik:RadSplitter> 
            </telerik:RadPane> 
                 
        </telerik:RadSplitter>      
    </form> 
</body> 
</html> 
 

- at row num 40 we set height="98%" to make a dockzone that cover the main pane entirely, (100% was not usable because an extra vertical scrollbar appears). With the 98% height this code seems to work, but reducing the browser height (resizing the browser window) to a value < of radDock height (in this example 580px) the dockZone vertical scrollbar should appear.. but this does not happens in IE6, in IE7 an horizontal extra scrollbar appears (seems that the vertical scroller is builded outside the dockzone, without resizing the zone itself), in FF3, magically all works fine!!!! (but our application MUST works into IE6 and IE7)

Some ideas ?
Martin
Telerik team
 answered on 24 Apr 2009
3 answers
287 views
I have a RadGrid that uses a Pop for an editform.  The Popup host a usercontrol with a OK, Close and Cancel button.  When a user selects Edit (or Insert).  They want the OK button button save the form (this works), but the form needs to stay open until the click the Close button on the form.  The automatically generated 'X' close button works so I don't want to break that.  I just need my close button (asp:LinkButton) to do the same thing.

Thanks,

Ed
Shinu
Top achievements
Rank 2
 answered on 24 Apr 2009
8 answers
169 views
Back from one week holiday and I get the following error... Not nice, is it?


Error Creating Control - RadAjaxManagerProxy1
'AjaxSettings' could not be initialized. Details: [A]Telerik.Web.UI.RadAjaxManagerProxy cannot be cast to [B]Telerik.Web.UI.RadAjaxManagerProxy.

Type A originates from 'Telerik.Web.UI, Version=2009.1.311.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Documents and Settings\eric.mamet\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\tft-xrhv01\telerik.web.ui.dll'.

Type B originates from 'Telerik.Web.UI, Version=2009.1.311.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Documents and Settings\eric.mamet\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\mjybnklh01\Telerik.Web.UI.dll'.

How come it can cast one to the other if the DLL is exactly the same version, even if a different file.

Any idea how I can fix this, please?


Eric

PS: not sure if that helps but the master page also shows an error in design mode, as below:
 Error Creating Control - RadSplitterMaster '95' could not be set on property 'HeightOffset'.
Eric
Top achievements
Rank 1
 answered on 24 Apr 2009
1 answer
372 views
I have two rad grids on a page that both use a codebehind  NeedDataSource event.  on page load and grid refresh the NeedDataSource event fires twice making two calls to the database.  Is this normal behavior or is there something set up in the grid wrong?

Both grids also have the following eventsDetail TableBind, ItemDataBound, and ItemCommand

thanks
Nikolay Rusev
Telerik team
 answered on 24 Apr 2009
4 answers
413 views
I have a page that contains a Panel with a few controls and one that is inherited(btnDownload) from the Master page.
When the btnDownload is clicked, the code is going off and building a Dataset. This Dataset is built on a view which contains 200+ columns with only a few rows of data. I'm converting this data to Excel and saving it on a network location...I'm not displaying any data due to it's size.

The report gets created w/o any problems but the Panel_parameters object is never updated and the LoadingPanel1 is not being turned off.

Is there a way for me to force the object to update after report is downloaded to the network to force it to become updated?

AjaxMgr.AjaxSettings.AddAjaxSetting(btnDownload, btnDownload, null);              
AjaxMgr.AjaxSettings.AddAjaxSetting(btnDownload, Panel_Parameters, LoadingPanel1);  
 
          


When I modify my view to only have 10 columns, everything works fine.....

 

Iana Tsolova
Telerik team
 answered on 24 Apr 2009
1 answer
111 views
HI All,

I am appyling Drag-Drop on Hierarchical grid.
I am having two problems here.

1. After dropping a row of Hierarchical grid, I want to access these row items on " onrowDropping" javascript event.

<

 

clientevents onrowdropping="rowDropping" /> // This is how I am defining rowDropping.

function

 

rowDropping(sender, eventArgs) {

 

 

var grd = $find('<%=rGridUnscheduledSegments.ClientID %>');

 

 

var MasterTable = grd.get_masterTableView();

 

selectedRows = MasterTable.get_selectedItems();

 

var

 

row = selectedRows[0];

 

 

 

var

 

 UId = MasterTable.getCellByColumnUniqueName(row, "UserID")

 

 

...
...

}
In the above function, method "get_masterTableView();" is used for accessing Mastertable of the parent grid. This is npot applicable for Details table in Hierachical grid. 

2. While applying drag-drop for the hierarchical grid I want to lock Parent table drag-drop. i.e User should be able to drag a row from Hierarchical grid but not be able to drag a row  from the parent grid.


Can anyone please help me in this?


Best Regards,
Hrushikesh.
Sebastian
Telerik team
 answered on 24 Apr 2009
3 answers
200 views
Hi, I have a configuration generated form that can contain controls of types RadTextBox, RadNumericTextBox, RadComboBox and RadDateInput. This form, generated at runtime, can contain 0 to X number of each control. I have a function (below) that I use to get all the controls of those types that match a certain ID naming scheme.

            function GetAllControls(filter)  
            { 
                var allLookupControls = [];  
                var allRadControls = $telerik.radControls;                 
                  
                for (var i = 0; i < allRadControls.length; i++)  
                {  
                    var element = allRadControls[i];  
                    if (element instanceof Telerik.Web.UI.RadNumericTextBox || element instanceof Telerik.Web.UI.RadTextBox || 
                        element instanceof Telerik.Web.UI.RadDateInput || element instanceof Telerik.Web.UI.RadComboBox)  
                    {  
                        if(element.get_id().match(filter))  
                        { 
                            Array.add(allLookupControls, element);  
                        } 
                    }  
                }  
                return allLookupControls;  
            } 

The function executes fine and returns the expected results as long as at least ONE control of each type exists on the page. If, for example, there are no RadDateInputs defined on the page however, I get a "Function Expected" javascript error. Using a javascript debugger I've been able to determine that the error occurs when trying to exeucte the "instanceof" function on the the DateInput type. Unfortunately, instanceof is the check I use to see if there are instance of the RadDateInput control so I can think of no way around this error.

Is there any help you can offer with this issue?

Thanks.
Sebastian
Telerik team
 answered on 24 Apr 2009
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?