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

We upgraded to the new telerik version - 2009.2.701.35 and are seeing issues with CSS in the controls. So far, we are using RadMenu and RadGrid. The problem we identified with RadGrid is that the custom skin does not get applied. We compared the generated source for the RadGrid and found grid html css is rendered differently.

For eg. in the older version, if the skin specified was "llGrid", the generated html source for the RadGrid looks something like this -
Before
--------
<div id="gridSearchResults" class="RadGrid RadGrid_llGrid" tabindex="0">
<div id="gridSearchResults_GridHeader" class="GridHeaderDiv_llGrid" style="overflow: hidden; margin-right: 16px; width: 100%;">
<table id="gridSearchResults_ctl00_Header" class="MasterTable_llGrid" cellspacing="0" border="0" style="overflow: hidden; width: 100%; border-collapse: collapse; table-layout: fixed; empty-cells: show;">
<thead>
<tr>
<thead><th class="GridHeader_llGrid expandCol" scope="col"> </th>.......

After
------
<div id="gridSearchResults" class="RadGrid RadGrid_llgrid" tabindex="0">
<div id="gridSearchResults_GridHeader" class="rgHeaderDiv" style="overflow: hidden; margin-right: 16px; width: 100%;">
<table id="gridSearchResults_ctl00_Header" class="rgMasterTable rgClipCells" cellspacing="0" border="0" style="overflow: hidden; width: 100%; table-layout: fixed; empty-cells: show;">
<tr>
<th class="rgHeader rgExpandCol" scope="col"> </th>

We have written all the CSS based on the generated classes from the previous version and it does not get used now.

Also, We went through the release notes and did not find anything about this. At this point, we cannot upgrade. Please advise.

Thanks.
Dimo
Telerik team
 answered on 15 Jul 2009
1 answer
203 views
hi
I am using radgrid and i have added a gridtemplate column in which i have link button.
on the link button i have added model popup extender which opens a popup in which i have a textbox and radgrid.
now on click of the link button there is no server trip.
so Can i get the specific row  column data to the popup window.
in the model popup window i have seach button which searches accorinding to to fields one is entered by user and other on is based on the row data in the grid.

please help me in this regard
Shinu
Top achievements
Rank 2
 answered on 15 Jul 2009
4 answers
124 views
Hello,
We have a width problem with rad spliiter. please see this screenshot, that demonstrate the problem.
If you look at the right edge of the page, you can see the letter T aligned to the right. as you can see, the letter is cut by 2 pixels or so. (zoom into the picture to see it clearly).

We have found out the following factors:
  • the problem occures only when using nested radSplitters.
  • the problem occures only for the inner radSplitter content.
  • the problem occures only in SharePoint! this very weird. I have created the page in a regular web project in Visual Studio, and everything worked FINE. Then, I took that page, and put it inside SharePoint (no masterpage no additions, the exact same code). When run from within SharePoint the problem occures.

Here is the code I'm using:

<%@ Page language="C#"%>   
<%@ Register Assembly="Telerik.Web.UI, Version=2009.1.311.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
<title></title>     
<style type="text/css">  
    html,body,form{  
    height:100%;  
}  
</style> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <telerik:RadSplitter runat="server" ID="mainSplitter" Width="100%" Height="100%" Orientation="Horizontal" BorderSize="0">  
        <telerik:RadPane runat="server" ID="header" Height="120px" Width="100%">  
            header  
        <div style="text-align:right">  
            T  
        </div> 
        </telerik:RadPane> 
        <telerik:RadPane runat="server" ID="content" Scrolling="None" BorderWidth="1">  
            <telerik:RadSplitter Orientation="Vertical" runat="server" ID="InternalSplitter" Height="100%" Skin="Default" EnableEmbeddedSkins="true" LiveResize="true" VisibleDuringInit="false" ResizeWithBrowserWindow="true" ResizeWithParentPane="true" > 
                <telerik:RadPane ID="ContentPane" runat="server" BorderWidth="1px" BorderColor="blue" BorderStyle="Solid">  
                    content  
                      
                </telerik:RadPane> 
                <telerik:RadSplitBar runat="server" ID="r" CollapseMode="Backward" /> 
                <telerik:RadPane ID="SidePane" runat="server" Width="200px">  
                <div style="text-align:right">  
                    T  
                </div> 
                    side  
 
                </telerik:RadPane> 
            </telerik:RadSplitter> 
        </telerik:RadPane> 
        </telerik:RadSplitter> 
    </form> 
</body> 
</html> 
 
 

In order to reproduce the problem, please do one of the following:

Create an empty ASPX page in SharePoint Designer 2007, replace the auto generated code with my code, and run the page.
or

Save my code into an ASPX document, and the Upload that docment to a Document library in SharePoint. then, view the document.

Thanks,
Elad.

Svetlina Anati
Telerik team
 answered on 15 Jul 2009
1 answer
188 views
MVC
Hi,

Do you have any sample how to use the control in a ASP.NET MVC site?
Or is it impossible because it's an "ASP.NET server-based control" ?

Thanks
Eric
Pero
Telerik team
 answered on 15 Jul 2009
6 answers
152 views
After doing the latest upgrade (q1 2009) I now have none of dialogs working. When I try to open a dialog,For example the image manager I get the following javascript errors:
Line: 39 Char 34 Error: ASP.NET Ajax client-side framework failed to load.
Line: 72 Char: 1 Error: 'Sys' is undefined.
Line: 123 Char: 1 Error: 'Type' is undefined.
Line: 320 Char: 1 Error: 'Type' is undefined.
Line: 690 Char: 1 Error: 'Sys' is undefined.
Line: 1500 Char: 1 Error: 'Object expected'.
Line: 1505 Char: 1 Error: 'Object expected'.
Line: 1519 Char: 1 Error: 'Telerik' is undefined.

Obviously all the errors flow on from the first one with the Ajax failing to load.
I have Ajax running throughout the site including on the page that has the editor on it and it runs fine. So I'm a bit confused to why I would have a problem with the Ajax failing to load.

I have created a dummy site which runs on the same machine and that can load it fine.
The only difference I can see between the projects is the the dummy one uses the Telerik.Web.UI.dll in the GAC, where as the normal project has it as a reference (if I remove the reference then it will not compile as it doesnt seem to look at the GAC for the .dll)

I have cleared all my cache (IE, .net temp folder etc but it seems to make no difference).

Is there a way to manually update the dialog files as I think that may be the issue? Otherwise, does anyone else have any ideas?

Thanks,
Matt
Duy
Top achievements
Rank 1
 answered on 15 Jul 2009
3 answers
370 views
Hi

I've had a look through the forum posts but haven't managed to find the solution. I want to populate my grid(s) inside the panelbar from the vb page (rather than using the DataSourceID) - I have used the following code in the Page_Load fuction to access the grid but I'm not sure how to bind the data to it:

Dim

 

StagesGrid As RadGrid = DirectCast(RadPanelBar1.FindItemByValue("PanelItem1").FindControl("RadGrid1"), RadGrid)

 

Dim

 

InvoicesGrid As RadGrid = DirectCast(RadPanelBar1.FindItemByValue("PanelItem2").FindControl("RadGrid2"), RadGrid)

Can you help? I usually populate data using the NeedDataSource function but it's not available in a nested control.

Many thanks in advance.

Steve :o)

DK
Top achievements
Rank 2
 answered on 15 Jul 2009
3 answers
414 views
Hi,

I need some help in customizing the RADEditor toolbar I have on a masterpage. Below are the steps I did to get the control to appear on the page
1) Registered the assembly in the masterpage
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2008.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"%>

2)Added the control to the page:
<asp:ScriptManager ID="ScriptManager1" runat="server" />                    
<telerik:RadEditor ID="RadEditor1" runat="server" Width="500" Height="500" ></telerik:radeditor>

The RADEditor now appears on the page. However it has all the toolbar icons appearing. I followed the steps in here and created a new toolfile with only the icons I need to appear. However when I refresh the page containing the control I get the following error:
[DirectoryNotFoundException: Could not find a part of the path 'c:\windows\system32\inetsrv\~\ToolsFile_custom.xml'.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +193
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1162
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +64
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +77
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +54
System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +74
System.Threading.CompressedStack.runTryCode(Object userData) +70
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +108
System.Xml.XmlTextReaderImpl.OpenUrl() +186
System.Xml.XmlTextReaderImpl.Read() +208
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +112
System.Xml.XmlDocument.Load(XmlReader reader) +108
System.Xml.XmlDocument.Load(String filename) +87
Telerik.Web.UI.RadEditor.get_ToolsFileContent() +183
Telerik.Web.UI.ToolsFileLoader.LoadColors(EditorColorCollection colors) +55
Telerik.Web.UI.RadEditor.LoadToolsFile(Boolean loadOnlyEmptyCollections) +154
Telerik.Web.UI.RadEditor.set_ToolsFile(String value) +55
T_RadEditor_ToolsFile_61.SetProperty(Object , Object ) +86
System.Web.Util.FastPropertyAccessor.SetProperty(Object target, String propName, Object val) +55
System.Web.UI.PropertyMapper.SetMappedPropertyValue(Object obj, String mappedName, Object value) +36
System.Web.UI.ControlBuilder.SetSimpleProperty(SimplePropertyEntry entry, Object obj) +94

[HttpException (0x80004005): '~/ToolsFile_custom.xml' could not be set on property 'ToolsFile'.]
System.Web.UI.ControlBuilder.SetSimpleProperty(SimplePropertyEntry entry, Object obj) +210
System.Web.UI.ControlBuilder.InitSimpleProperties(Object obj) +157
System.Web.UI.ControlBuilder.InitObject(Object obj) +162
System.Web.UI.ControlBuilder.BuildObjectInternal() +238
System.Web.UI.ControlBuilder.BuildObject() +4
System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +403
System.Web.UI.ControlBuilder.InitObject(Object obj) +342
System.Web.UI.ControlBuilder.BuildObjectInternal() +238
System.Web.UI.ControlBuilder.BuildObject() +4
System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +403
System.Web.UI.TemplateBuilder.InstantiateIn(Control container) +302
Microsoft.SharePoint.WebControls.TemplateBasedControl.CreateChildControls() +279
CKS.EBE.WebControls.BaseForm.CreateChildControls() +15
System.Web.UI.Control.EnsureChildControls() +87
Microsoft.SharePoint.WebControls.TemplateBasedControl.OnLoad(EventArgs e) +65
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

My custom file is located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.3.2.0__1f131a624888eeed\Resources
Which happens to be the location where the default RAD files are located.

Can anyone help with this?
Stanimir
Telerik team
 answered on 15 Jul 2009
2 answers
180 views
I have a combobox with AutoCompleteSeparator=";" and use ItemsRequested for load data ,after select multi items the Text property is correct but SelectedValue property has only last selectedItem value .How can i get SelectedItems or selectedValues in combobox?
Sepideh Ghanbari
Top achievements
Rank 1
 answered on 15 Jul 2009
3 answers
493 views
I have a field in my RadAjaxGrid where it will display a Link styled button with the text "Enable" or "Disable". I need to set this value on a per row basis based on the value of a DataBound field called "Active". How can I do this most efficiently?
Princy
Top achievements
Rank 2
 answered on 15 Jul 2009
4 answers
250 views
<Columns> 
                  
                    <telerik:GridBoundColumn UniqueName="EmployeeNo" DataField="EmployeeNo" HeaderText="EmployeeNo" 
                        HeaderStyle-Width="200px">  
                        <FilterTemplate> 
                            <telerik:RadComboBox ID="RadComboBox1" DataTextField="EmployeeNo" DataValueField="EmployeeNo" 
                                DataSource="<%# DataBindEmployeeNo() %>" 
                                runat="server" >  
                                <Items> 
                                    <telerik:RadComboBoxItem Text="All" /> 
                                </Items> 
                            </telerik:RadComboBox> 
                            <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">  
                                <script type="text/javascript">  
                                    function EmployeeNoIndexChanged(sender,args) {  
                                        var tableView=$find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");  
                                        tableView.filter("EmployeeNo",args.get_item().get_value(),"EqualTo");  
                                    }  
                                    function RemoveItem()  
                                    {  
                                        var combo = $find("<%= RadComboBox1.ClientID %>");  
                                        var combocomboItem = combo.get_selectedItem();  
                                        if(comboItem)  
                                        {  
                                           combo.trackChanges();  
                                           combo.get_items().remove(comboItem);  
                                           combo.commitChanges();  
                                         }  
                                    }   
                                </script> 
                            </telerik:RadScriptBlock> 
                        </FilterTemplate> 
                    </telerik:GridBoundColumn> 

</
Column> 

<FilterTemplate>
                            <telerik:RadComboBox ID="RadComboBox1" >
</FilterTemplate>

I have a telerik:RadComboBox in FilterTemplate. I want to remove some items from it by client side.
I follow the demo http://www.telerik.com/help/aspnet-ajax/combo_itemsclientside.html but I can't get the combo in this way :

var combo = $find("<%= RadComboBox1.ClientID %>");  

Compiler Error Message: CS0103: The name 'RadComboBox1' does not exist in the current context

Will it be some different in FilterTemplate?

Thank you!
Airad
Top achievements
Rank 1
 answered on 15 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?