Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
182 views
Hello,

I have a RadPanel bar that I am working with in the Q2 2008 build.  I would like to use the Office2007 skin, but for some reason it seems the skin was changed since previous versions.  No matter what I do, the panelbar titles are always orange, like they should be when you click on them, but they are permanently orange and never blue when the page loads no matter what you do it seems.  Maybe I have built the radpanelbar incorrectly?  Here is my markup:

                  <telerik:RadPanelbar ID="NavBar" runat="server" BorderStyle="None"   
                      BorderWidth="0px" Skin="Office2007" Style="position: static" Width="100%">  
                        <CollapseAnimation Duration="100" Type="None" /> 
                        <Items> 
                            <telerik:RadPanelItem runat="server" PreventCollapse="true" Expanded="true" Text="Review">  
                                <Items> 
                                    <telerik:RadPanelItem> 
                                        <ItemTemplate> 
                                            <telerik:RadComboBox ID="rcbReview" BackColor="LightGoldenrodYellow"   
                                                Runat="server" Skin="Office2007" AccessKey="C" 
                                                Width="100%" Sort="Ascending" Font-Bold="True" ForeColor="#333333"   
                                                OnClientSelectedIndexChanged="OpenReview">  
                                                <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                            </telerik:RadComboBox> 
                                        </ItemTemplate> 
                                    </telerik:RadPanelItem> 
                                </Items> 
                            </telerik:RadPanelItem> 
                            <telerik:RadPanelItem runat="server" PreventCollapse="false" ChildGroupHeight="100%" ClickedCssClass="" 
                                FocusedCssClass="" Expanded="true" Text="Case Details" Width="100%">  
                                    <Items> 
                                        <telerik:RadPanelItem Value="rtvCaseBatch">  
                                            <ItemTemplate> 
                                                <telerik:RadTreeView ID="rtvCaseBatch" runat="server" Height="200"   
                                                    OnContextMenuItemClick="rtvCaseBatch_ContextMenuItemClick"   
                                                    OnNodeClick="rtvCaseBatch_NodeClick" Skin="Office2007" style="position: static"   
                                                    Width="100%">  
                                                    <collapseanimation duration="100" type="OutQuint" /> 
                                                    <expandanimation duration="100" /> 
                                                    <contextmenus> 
                                                        <telerik:RadTreeViewContextMenu ID="rtvCM_OpenReview" runat="server"   
                                                            ClickToOpen="true" Skin="Office2007">  
                                                            <Items> 
                                                                <telerik:RadMenuItem ImageUrl="Images/DashboardIcons/Case.ico"   
                                                                    Text="Open for Review" Value="review">  
                                                                </telerik:RadMenuItem> 
                                                            </Items> 
                                                        </telerik:RadTreeViewContextMenu> 
                                                        <telerik:RadTreeViewContextMenu ID="rtvCM_ExportCalendar" runat="server"   
                                                            ClickToOpen="true" Skin="Office2007">  
                                                            <Items> 
                                                                <telerik:RadMenuItem ImageUrl="Images/DashboardIcons/exportOutlook_small.jpg"   
                                                                    Text="Export to Outlook" Value="export">  
                                                                </telerik:RadMenuItem> 
                                                            </Items> 
                                                        </telerik:RadTreeViewContextMenu> 
                                                    </contextmenus> 
                                                </telerik:RadTreeView> 
                                            </ItemTemplate> 
                                        </telerik:RadPanelItem> 
                                    </Items> 
                            </telerik:RadPanelItem> 
                            <telerik:RadPanelItem runat="server" Expanded="true" ChildGroupHeight="25" Height="100%" Text="Settings"   
                                Value="Settings" Width="100%">  
                                <Items> 
                                    <telerik:RadPanelItem runat="server" Value="rtvSettings">  
                                        <ItemTemplate> 
                                            <telerik:RadTreeView ID="rtvSettings" Runat="server"   
                                                onnodeclick="rtvSettings_NodeClick" Skin="Office2007">  
                                                <Nodes> 
                                                    <telerik:RadTreeNode runat="server" EnableContextMenu="False"   
                                                        ImageUrl="~/Images/DashboardIcons/hotkey_icon.jpg" Text="Hotkeys"   
                                                        Value="hotkeys">  
                                                    </telerik:RadTreeNode> 
                                                </Nodes> 
                                                <CollapseAnimation Duration="100" Type="OutQuint" /> 
                                                <ExpandAnimation Duration="100" /> 
                                            </telerik:RadTreeView> 
                                        </ItemTemplate> 
                                    </telerik:RadPanelItem> 
                                </Items> 
                            </telerik:RadPanelItem> 
                            <telerik:RadPanelItem runat="server" ChildGroupHeight="100%" ClickedCssClass=""   
                                FocusedCssClass="" PreventCollapse="true" Expanded="true" Text="Administration" Value="Administration" Width="100%">  
                                    <Items> 
                                        <telerik:RadPanelItem Value="rtvAdmin">  
                                            <ItemTemplate> 
                                                <telerik:RadTreeView ID="rtvAdmin"   
                                                    runat="server"   
                                                    OnNodeClick="rtvAdmin_NodeClick"   
                                                    Skin="Office2007"   
                                                    style="position: static"   
                                                    Height="250" 
                                                    Width="100%">  
                                                    <CollapseAnimation Duration="100" Type="OutQuint" /> 
                                                    <ExpandAnimation Duration="100" /> 
                                                </telerik:RadTreeView> 
                                            </ItemTemplate> 
                                        </telerik:RadPanelItem> 
                                    </Items> 
                            </telerik:RadPanelItem> 
                        </Items> 
                        <ExpandAnimation Duration="100" Type="None" /> 
            </telerik:RadPanelbar> 


Thank you for the assistance!
Paul
Telerik team
 answered on 06 Nov 2008
1 answer
127 views
Hi,

I have used a Rad tree in my application. I used skin "Web20" for the tree control.
For all leaf nodes on mouse hover i want to changed the mouse cursor type. How can i do this?

Also how can i know default css setting applied on a rad tree view for a parrticular skin? Is this documented any where so that i can customize them as i want.

Please provide me some information on the above.

Thanks,
Nataraj
Shinu
Top achievements
Rank 2
 answered on 06 Nov 2008
1 answer
78 views
Hi,

I am using hierarchical grid.In this in commandItemTemplate i have one link button.Instead of having on grid row i want this linkbutton below each row of the parent grid.On this link btn i want to show popup form.and to this popup i wat to send the id of first row of grid.
                If we are having link button on grid row itself then it is easy to pass the grid row id to link button.But as my link btn is nt on grid  i am  not able to pass the id of first row of grid.
Shinu
Top achievements
Rank 2
 answered on 06 Nov 2008
2 answers
315 views
Hi,

I have a Rad tree view bound to a dataset. When page loads, i want to display the tree view with the first leaf node in the tree structure. for Eg:
Consider tree has the following structure:
A:-
    A1:-
        A11:-
            A111
            A112
            A113
        A12:-
            A121
            A122
        A13
    A2:-
        A21:-
            A211
            A212:-
                A2121
        A22
    A3
B:-
    B1:-
    so on...

when page loads i want to show the user node A11 selected and also parent nodes for A11 expanded.(if A11 has no child nodes then A11 has to be selected as it will be first leaf node) How can i do this server side?

I tried to do it by loops but i am not successful to traverse through the nodes at diefferent levels.

Please help me.

Thanks in advance,
Nataraj
Nataraj Vedula
Top achievements
Rank 1
 answered on 06 Nov 2008
1 answer
129 views

I have the following scnario:

  • A radNumericTextBox on a RadToolBar
  • the RadToolBar works as a command item template for a grid
  •  the Grid Is ajaxified

the problem is that when I type a value in th RadNumericTextBox and press the enter key the ajax loading panel appears without .

but it is still appearing and existing althougth the command is completely executed successfully.

how can I solve this problem??

remarks:

  • I'm using rad controls for asp.net ajax 2008 Q2.
  • .net framework version 3.5

thanks in advance

Kevin Babcock
Top achievements
Rank 1
 answered on 06 Nov 2008
1 answer
133 views
I have grid... and in this a grid is column "quantity". In comlun I have control - RadNumericTextBox witch SpinButtons. If a grid  have 25 rows... my page request size is 200 000 KB... if I replace RadNumericTextBox on Label size is 100 000KB.  What I have doing, that  RadNumericTextBox was effecient ?
Kevin Babcock
Top achievements
Rank 1
 answered on 06 Nov 2008
1 answer
119 views
I have a RadToolbar that is created using the following code:

            <telerik:RadToolBar ID="RadToolBar1" runat="server" OnButtonClick="RadToolBar1_ButtonClick" 
                CssClass="Toolbar" Skin="WebBlue" OnClientButtonClicked="ToolbarButtonClicked"
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                <Items>                     
                    <telerik:RadToolBarButton runat="server" ImageUrl="~/Images/new_note.png" Text="Notes"
                    </telerik:RadToolBarButton>                   
                </Items> 
            </telerik:RadToolBar> 

I also have a a RadDock on the same page:
<telerik:RadDockLayout ID="RadDockLayout1" runat="server" EnableAjaxSkinRendering="False" 
                EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False"
                <telerik:RadDockZone ID="DocumentDockZone" runat="server" Height="105%" Width="100%" 
                    FitDocks="False" bgcolor="#666666" BackColor="#666666" BorderStyle="None" BorderWidth="0px">                     
                    <telerik:RadDock ID="NotesDock" runat="server" Width="99%" Skin="Office2007" DefaultCommands="ExpandCollapse" 
                        DockHandle="None" Title="Notes" DockMode="Floating" ForbiddenZones="DocumentDockZone"
                        <ContentTemplate> 
                            <uc5:Notes ID="Notes1" runat="server" /> 
                        </ContentTemplate> 
                    </telerik:RadDock> 
                </telerik:RadDockZone> 
</telerik:RadDockLayout>

I have the following javascript code on the same page:

        function ToolbarButtonClicked(sender, args)  
        { 
            var button = args.get_item(); 
            var notesDocks = $find("<%= NotesDock.ClientID %>"); 
             
            if (button.get_text() == "Notes")  
            { 
                 
                alert("Notes click"); 
                args.set_cancel(true); 
                 
            } 
        }  

When the page attempts to load I get the following Exception:

System.Web.HttpException: "Error executing child request for Default.aspx."
InnerException: System.Web.HttpUnhandledException: "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)."

This error only occurs when I attempt to get the NotesDock control in the javascript line "var notesDocks = $find("<%= NotesDock.ClientID %>");" But I need a reference to this object because I want to call notesDock.set_closed(false) at some point.

Any idea what might be causing this problem?
Serrin
Top achievements
Rank 1
 answered on 05 Nov 2008
1 answer
105 views
How can we copy the HTML from the rich text editor into word
programmatically as html ?

thanks!!!!!!!!
Serrin
Top achievements
Rank 1
 answered on 05 Nov 2008
2 answers
74 views
Is there a proper way to override the 'Expand' and 'Collapse' values for the title attribute in the <input> control for the ExpandCollapse column when looking at hierarchical data in RadGrid?

I've tried the following during the OnDataBound event, but the title attribute shows up twice. Once with the radgrid value and then mine. Can I even access the opaque(?) object that has these values in it?

BTW, setting the tooltip for the parent <td> element works just fine.
protected void OutsideLawFirmGrid_OnDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            GridDataItem item = e.Item as GridDataItem;
            item["ExpandColumn"].ToolTip = "View Contacts";
            System.Web.UI.WebControls.Button btn = (System.Web.UI.WebControls.Button)item["ExpandColumn"].Controls[0];
            btn.Attributes.Add("title", "View Contacts");
            btn.ToolTip = "View Contacts";
        }
    }
Is there some later stage on the server where I can intercept things and iteratate over all the GridDataItems and replace this value? I tried to place an iterative version of this in the Page_PreRender w/the same results.
Martin
Top achievements
Rank 1
 answered on 05 Nov 2008
1 answer
89 views
Hello,

     I have two grids on a page.there is a checkbox column in the lower grid. user checks the checkbox and add records on the upper grid.

and there are three comboboxes between these grids all the combos are load on demand,
The problem is that when there are more records in the upper grid when i click on any combo in IE then its hang.
remember that all this is in the radWindow. I have given the height=200 to the combo also.

i think that when drop down don't have the place to open then it is causing.

please tell me the solution.

Thanks.

Serrin
Top achievements
Rank 1
 answered on 05 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?