Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
96 views
Hi
I'm using Telerik.Web.UI, v4.0.30319, 2011.2.915.40.
I am trying to style some pages across a number of browsers, and have a problem!This code
<div style="width: 550px;">
<div style="margin-top: 5px;">
  
<label for="cmbMake">
  
<span class="redtext">*</span> Vessel Make</label>
  
<div class="info"> </div>
<telerik:RadComboBox ID="cmbMake" Width="249px" runat="server" Filter="Contains" Skin="WebBlue" Font-Names="Arial" AutoPostBack="True"OnSelectedIndexChanged="cmbMake_SelectedIndexChanged" OnItemDataBound="cmbMake_ItemDataBound" OnItemsRequested="cmbMake_ItemsRequested">
 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
 
</telerik:RadComboBox>
 
</div>
<div style="clear: both;"></div>
 
<div style="margin-top: 5px;">
 
<label for="cmbModel">
 
<span class="redtext">*</span> Vessel Model</label>
 
<div class="info"> </div>
 
<telerik:RadComboBox ID="cmbModel" Width="249px" AllowCustomText="true" runat="server" Filter="Contains" Font-Names="Arial" Skin="WebBlue" AutoPostBack="True" OnSelectedIndexChanged="cmbModel_SelectedIndexChanged" OnItemDataBound="cmbModel_ItemDataBound" OnItemsRequested="cmbModel_ItemsRequested">
 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
 
</telerik:RadComboBox>
 
</div>
  
</div>
It renders correctly in IE7,8,9, Opera 11.5, Chrome 10.5, Safari 5,
BUT
Any current version of Firefox ends up with the two RadComboBoxes over twice as wide as they should be!
(See attached pics)
Any thoughts?

Cheers

Dave
Dave
Top achievements
Rank 1
 answered on 24 Oct 2011
1 answer
196 views

Hi,

I have a RadTreeList. It has two Parent item.First Item have three child Item.My requirement is to add a row after these  three childitem on the click (+ button) of the corresponding parentitem.When I use DetailTemplate ,new row is added each parent and each child.So I cannot use this method.How can I add a new row after the three childitem on the click of the corresponding parent Iem?

Thanks In advance
Tsvetina
Telerik team
 answered on 24 Oct 2011
3 answers
55 views
Hi,

       I am a licensed user for Telerik Asp Ajax Radcontrols. I have used Telerik Office 2007 theme in my application. Initially in the page load i have a button in disabled state. After the user enters some data in the page from server side i am enabling the button. Things were completely fine in IE and firefox browsers. (ie, u can clearly visualize and differentiate a disabled and enabled button by looking at it). But in Safari 5.0, the themes dont get changed as soon as you enable that button. (I mean, i could click the button and the functionality works, but i am not able to see any visual changes compared to the disabled mode). I have attached the disabled mode appearance and enabled mode appearance (file enabled.png). You can observe the theme of both. And also once reload the entire page the enabled mode styles are getting applied. (file enabled1.png)

I could not post any code or detailed snaps. But i think the data i provided should be fine. Kindly help, as it is a critical requirement in end user's perspective.

Regards,
Saravanan K

 
Slav
Telerik team
 answered on 24 Oct 2011
1 answer
80 views
Is it possible to assign an ObjectDataSource to a TreeView control, from Javascript? This is because I´m returning said ObjectDataSource from a JSON call. The data takes a while to load, so I wanted to load it asynchronously.

What can I call on the TreeView (or anywhere else) to load the returned ObjectDataSource into the TreeView?
Plamen
Telerik team
 answered on 24 Oct 2011
3 answers
149 views
Hello. I'm a first timer, so please be gentle.

I'm having a peculiar behaviour when I show a previously omitted checkbox for a given node: Basically It places automatically the checkbox after the image for the node. I load the nodes on demand.

<telerik:RadTreeView ID="TreeViewTest" runat="server" CheckBoxes="true" LoadingMessage="Loading..."
    LoadingStatusPosition="BelowNodeText" MultipleSelect="false" AllowNodeEditing="false"
    OnClientNodePopulated="ClientNodePopulated" OnClientNodeChecked="ClientNodeChecked">
    <WebServiceSettings Path="TreeViewTest.aspx" Method="LoadTreeViewNodes" />
</telerik:RadTreeView>

Only thing I do on JavaScript: place node.set_checkable(false) when I want to hide the checkbox, and node.set_checkable(true) when I don't.

Is there a way for me to place the checkbox always before or after the image, so there is a continuity in the user experience (i.e. either in client-side or server-side)?

I attached 2 screenshots to demonstrate. Sorry for the blur.




Kate
Telerik team
 answered on 24 Oct 2011
1 answer
48 views

Hello,

Moving an ASP.Net project from RadControls for ASP.NET Q1 2009\NET2 to Telerik.Web.UI, Version=2011.1.413.40 I discovered that some properties do not exist for the RadTreeView.

1. BeforeClientToggle: I used this property in the old version to expand all children when the node was expanded:

<rad:RadTreeView 
    ID="treeTest" 
    runat="server" 
    title="Test" 
    BeforeClientToggle="ClickHandler" 
    Width="100%" 
    OnNodeCreated="treeTest_NodeCreated">
  
[...]
  
<script language="javascript"
    function ClickHandler(objStartNode) 
    
        var objChildren = objStartNode.Nodes; 
        var intChildCnt = objChildren.length; 
        if(intChildCnt == 0) 
            return; 
        for (var intNodeIdx = 0; intNodeIdx < intChildCnt; intNodeIdx++) 
        
            var objChildNode = objChildren[intNodeIdx]; 
            objChildNode.Expand(); 
            if(intChildCnt != 0) 
                ClickHandler(objChildNode); 
        
    
</script> 

How should this behaviour be implemented in the new version of the control?

2. SkinsPath: When first working with RadTreeView, I downloaded the additional skins and used RoundBlue for rendering the grid:

protected void Page_Load(object sender, EventArgs e)
{
    //...
    treeTest.SkinsPath = "~/App_Themes/Skins";
    treeTest.Skin = "RoundBlue";
    //...
}

This property is not available for this version of the control and the code does not compile.
What should I use to replace this property?

Thank you.

Plamen
Telerik team
 answered on 24 Oct 2011
1 answer
234 views
I'm working with the RadTreeView, and the RadTreeView is being loaded from a folder structure on an FTP Server;

My question is how best can I change the order programmatically with C# - move a node value from last item to the seventh item;

The code snippet below displays how the RadTreeView is being loaded with C#, and I am able locate the node value - which needs to be moved in the RadTreeView hiarchy;

Thanks in advance for any insight;  Best regards - Rob  
private void BindTreeToDirectory(string virtualPath, RadTreeNode parentNode)
   {    
       string physicalPath = Server.MapPath(virtualPath);
       string[] directories = Directory.GetDirectories(physicalPath);
       foreach (string directory in directories)
       {
           RadTreeNode node = new RadTreeNode(Path.GetFileName(directory));
           node.Value = virtualPath + "/" + Path.GetFileName(directory);
           node.ImageUrl = "~/TreeView/Img/Vista/folder.png";
           node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack;
           //if (node.Value == "/Customers/Maines Paper & Foodservice/Side Letters")
           if (node.Value == "/Customers/Maines Paper & Foodservice/Maintenance Provider AIM")
           {
               //var index = parentNode.
               //     directories[8];
               //var index = directories[7];
           }
           else
           {
               parentNode.Nodes.Add(node);
           }
           //RadTreeNode nodeSideLetters = new RadTreeNode("/Customers/Maines Paper & Foodservice/Side Letters");
           //parentNode.Nodes.Add(nodeSideLetters);
                         
       }
Plamen
Telerik team
 answered on 24 Oct 2011
1 answer
111 views
Dear Support

I have an Radwindow as an popup on one of the aspx page. When the user scroll down the page the popup should also stuck to the bottom of the screen and the user can scroll down the page.
While scrolling down the popup should be in front and user will scroll the page up & down. and pop-up will remain on the bottom of the screen

Please find the attached screen shot. If I am able to understand issue.
Marin Bratanov
Telerik team
 answered on 24 Oct 2011
10 answers
526 views
My grid displays fine with all the valid data but once I click on one of the columns to sort, it crashes with the following call stack
I have double checked SortExpression and DataField and they are same (pl. see below).  I do have bunch of nulls for data, but it seems to handle them in displaying. Any help would be greatly appreciated. Thanks

[IndexOutOfRangeException: Cannot find column FILE_NAME.]
   System.Data.DataTable.ParseSortString(String sortString) +4826462
   System.Data.DataView.CheckSort(String sort) +32
   System.Data.DataView.set_Sort(String value) +128
   Telerik.Web.UI.GridEnumerableFromDataView.PerformTransformation() +4873
   Telerik.Web.UI.GridEnumerableFromDataView.TransformEnumerable() +41
   Telerik.Web.UI.GridTableView.GetEnumerator(Boolean useDataSource, GridEnumerableBase resolvedDataSource, ArrayList dataKeysArray) +171
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +356
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +713
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +28
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +368
   Telerik.Web.UI.GridSortCommandEventArgs.ExecuteCommand(Object source) +326
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +191
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +61
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +165
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


My aspx portion is here
<telerik:RadGrid ID="ExcelGrid"  AutoGenerateColumns="false" EnableViewState="true"
                Skin="Office2007"
             AllowSorting="True"
               AllowMultiRowSelection="false" runat="server" GridLines="None"
               OnItemDataBound="ExcelGrid_ItemDataBound"
               onneeddatasource="ExcelGrid_NeedDataSource">
             <MasterTableView Width="100%" BorderWidth="0" TableLayout="Auto" DataKeyNames="FILE_NAME">
             
                 <RowIndicatorColumn>
                     <HeaderStyle Width="20px" />
                 </RowIndicatorColumn>
                 <ExpandCollapseColumn>
                     <HeaderStyle Width="20px" />
                 </ExpandCollapseColumn>
                 <Columns>
                <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Row#">
                    <ItemStyle HorizontalAlign="left"/>
                   <ItemTemplate>
                    <asp:Label ID="numberLabel" runat="server"/>
                   </ItemTemplate>    
                   </telerik:GridTemplateColumn>             
                     <telerik:GridTemplateColumn DataField="FILE_NAME" HeaderText="File Name"
                         SortExpression="FILE_NAME" UniqueName="FILE_NAME">
                         <ItemStyle HorizontalAlign="left" Width="35" />
                         <ItemTemplate>                            
                             <a href='download.aspx?docID=<%# DataBinder.Eval(Container.DataItem, "FILE_NAME").ToString() %>'>
                             <%# DataBinder.Eval(Container.DataItem, "FILE_NAME").ToString()%></a>
                         </ItemTemplate>
                     </telerik:GridTemplateColumn>
                     <telerik:GridBoundColumn DataField="Agreemt_Date" HeaderText="Agreement Date" DataFormatString="{0:dd/MM/yyyy}"
                         SortExpression="Agreemt_Date" UniqueName="Agreemt_Date">
                         <ItemStyle HorizontalAlign="left" Width="25" />
                     </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="Orig_Agmt_Type" HeaderText="Original Agreement Type"
                         SortExpression="Orig_Agmt_Type" UniqueName="Orig_Agmt_Type">
                         <ItemStyle HorizontalAlign="left" Width="35" />
                     </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="Mod_Agreemt_Type" HeaderText="Model Agreement Type"
                         SortExpression="Mod_Agreemt_Type" UniqueName="Mod_Agreemt_Type">
                         <ItemStyle HorizontalAlign="left" Width="35" />
                     </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="Parties" HeaderText="Parties"
                         SortExpression="Parties" UniqueName="Parties">
                         <ItemStyle HorizontalAlign="left" Width="50" />
                     </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="Basin" HeaderText="Basin"
                         SortExpression="Basin" UniqueName="Basin">
                         <ItemStyle HorizontalAlign="left" Width="30" />
                     </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="Municipality" HeaderText="Municipality"
                         SortExpression="Municipality" UniqueName="Municipality">
                         <ItemStyle HorizontalAlign="left" Width="75" />
                     </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="Sewershed_Area" HeaderText="Sewershed / Area"
                         SortExpression="Sewershed_Area" UniqueName="Sewershed_Area">
                         <ItemStyle HorizontalAlign="left" Width="30" />
                     </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="Source" HeaderText="Source"
                         SortExpression="Source" UniqueName="Source">
                         <ItemStyle HorizontalAlign="left" Width="122" />
                     </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="Status" HeaderText="Status"
                         SortExpression="Status" UniqueName="Status">
                         <ItemStyle HorizontalAlign="left" Width="30" />
                     </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="Notes" HeaderText="Notes"
                         SortExpression="Notes" UniqueName="Notes">
                         <ItemStyle HorizontalAlign="left" Width="50" />
                     </telerik:GridBoundColumn>
                 </Columns>             
             </MasterTableView>
             <ClientSettings>
                 <Scrolling AllowScroll="True" UseStaticHeaders="True" />
             </ClientSettings>               
            </telerik:RadGrid>

Mira
Telerik team
 answered on 24 Oct 2011
2 answers
60 views

I have a radgrid with two group-by-expressions defined, and aggregate sums defined on the bound columns.  I want to hide the outer GridGroupFooterItem.  My problem is similar to the one described in this other forum post.
http://www.telerik.com/community/forums/aspnet-ajax/grid/groupfooter-on-subgroup-only.aspx

I have a runtime reference to the GridGroupFooterItem in my ItemDataBound event handler.  And I also know, from GroupIndex, whether a footer is the inner or outer one.

My problem is that I have not found a way to hide the GridGroupFooterItem, as was suggested by the response to that original post.

Can anyone assist?

Mark
Top achievements
Rank 1
 answered on 24 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?