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

I am sure it's possible to have treeview with innernode containting "asp:CheckboxList" as a node template. I can do it in design time.
I am wondering how it can be achieved dynamically. So far I am able to add nodes but not able to add "node template" to inner node so that it contains "asp:checkboxlist".

I followed this article but not much of help http://www.telerik.com/help/aspnet-ajax/tree_templatesruntime.html

Any help would be highly appreciated.

Many thanks.

M G

PS: Sorry for my previous post  
Veronica
Telerik team
 answered on 15 Jul 2010
6 answers
340 views
Hi,
I was wondering if anyone could help me out. I'm trying to add a simple userControl to only one cell of a radGrid. I don't need to repeat it in every cell of that column (since the rest of the column is supposed to be text) and the radGrid has more than one row (4 by 4 to be exact and my uc must be in the bottom one on the right).
Any help would be greatly appreciated.

Thanks a lot
Sam
Sammy78
Top achievements
Rank 2
 answered on 15 Jul 2010
1 answer
137 views
Hi,

I am sure it's possible to have a RadTreeView with checkbox list as inner node. Design time code looks as below


<telerik:RadTreeView ID="lstTree" runat="server" CheckBoxes="false">
                       <Nodes>
                           <telerik:RadTreeNode Text="Node1">
                               <Nodes>
                               <telerik:RadTreeNode Text="InnerNode">
                                   <NodeTemplate>
                                       <asp:CheckBoxList ID="cbList" runat="server" RepeatColumns="2" RepeatDirection="Horizontal"></asp:CheckBoxList>
                                   </NodeTemplate>
                               </telerik:RadTreeNode>
                               </Nodes>
                           </telerik:RadTreeNode>
                           <telerik:RadTreeNode Text="Node2"></telerik:RadTreeNode>
                           <telerik:RadTreeNode Text="Node3"></telerik:RadTreeNode>
                           <telerik:RadTreeNode Text="Node4"></telerik:RadTreeNode>
                       </Nodes>
                   </telerik:RadTreeView



Could you please kindly help me how can I achieve this during runtime (dynamically through code) ?  For example, all nodes are populated from database and so does the checkboxlist.  I have looked into the following documentation but not much of help.

http://www.telerik.com/help/aspnet-ajax/tree_templatesruntime.html

So far I am able to add nodes dynamically but not able to add NodeTemplate to inner node. 

Any help would be highly appreciated.

Thanks a lot.

M G

Veronica
Telerik team
 answered on 15 Jul 2010
2 answers
243 views
Hi there,

I'm running in a strange behaviour.

I have a RadioButtonList with on two options. When I change it fires a server side event the will hide one panel and show another panel.
The strange thing is that the event only fires once, ie, after the first SelectedIndexChanged event called the radio button doesn't fire anymore the event...

Here is an excerpt of the code:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="myRadioBList">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="panel1" />
                <telerik:AjaxUpdatedControl ControlID="panel2" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
<asp:RadioButtonList ID="myRadioBList" runat="server" RepeatDirection="Horizontal"
                AutoPostBack="True"
                OnSelectedIndexChanged="myRadioBList_SelectedIndexChanged" RepeatLayout="Flow">
                <asp:ListItem Value="M">M</asp:ListItem>
                <asp:ListItem Value="C">C</asp:ListItem>
            </asp:RadioButtonList>
 
<asp:Panel runat="server" ID="panel1"> .... </asp:Panel>
<asp:Panel runat="server" ID="panel2"> .... </asp:Panel>


On my code-behind I only have this:

protected void myRadioBList_SelectedIndexChanged(object sender, EventArgs e)
       {
           if (myRadioBList.SelectedValue == "C")
           {
               panel1.Visible = true;
               panel2.Visible = false;
           }
           else
           {
               panel1.Visible = false;
               panel2.Visible = true;
           }
       }

Regula
Top achievements
Rank 1
 answered on 15 Jul 2010
6 answers
99 views
Hello

I have a button column with the button set to link button. Now without a confirmation dialog set the button executes my itemcommand event perfectly.If however i put the confirmation dialog on then it pops up the dialog but doesnt executed the itemcommand event. How can i cure this. Thanks in advance.                         



Jed Fletcher
Top achievements
Rank 1
 answered on 15 Jul 2010
5 answers
130 views
What are the known issues between IE6 and RadDock?

Our site homepage uses 2 RadDock panels that are populated by user controls.  Some users with IE6 can't see the panels.

Is it possible that the latest version of the AJAX controls will address this problem?
Patrick Heller
Top achievements
Rank 1
 answered on 15 Jul 2010
3 answers
146 views
Hi all,

I have a splitbar that I override the icon url with css. This works great, however when the splitbars are collapsed/expanded the icon flashes and shows the original telerik icon then back to my custom icon.

This may seem trivial as it does not affect the usage of the bars but aesthetically it does not look very good. Does anyone please know if there is a way to stop this behaviour?

Regards,
Ian W


Svetlina Anati
Telerik team
 answered on 15 Jul 2010
1 answer
95 views
Hi, I downloaded a new release today v2010.2.713.40 and suddenly the pages began to look wierd.
I found the error in a WebResource file where the font "Segoe UI" is misspelled to "Segoe  UI".

.RadForm.rfdTextbox input[type=
"text"],
 
.RadForm.rfdTextbox input[type="password"],
 
.RadForm.rfdTextarea textarea,
 
.RadForm.rfdTextarea textarea[disabled]:hover,
 
.RadForm.rfdTextbox input[disabled][type="text"]:hover,
 
.RadForm.rfdTextbox input[disabled][type="password"]:hover,
 
.RadForm .rfdCheckboxChecked,
 
.RadForm .rfdInputDisabled.rfdCheckboxChecked:hover
 
.RadForm .rfdCheckboxUnchecked,
 
.RadForm .rfdInputDisabled.rfdCheckboxUnchecked:hover,
 
.RadForm.rfdLabel label,
 
.RadForm .rfdRadioUnchecked,
 
.RadForm .rfdInputDisabled.rfdRadioUnchecked:hover,
 
.RadForm .rfdRadioUnchecked:hover,
 
.RadForm .rfdRadioChecked,
 
.RadForm .rfdInputDisabled.rfdRadioChecked:hover,
 
.RadForm .rfdRadioChecked:hover
 
{
 
    font-size: 12px;
 
    font-family: "Segoe  UI",Arial,Verdana,sans-serif;
 
}

Bozhidar
Telerik team
 answered on 15 Jul 2010
3 answers
153 views
Hello,
I have a user control in which I wish to place a RadToolBar. However, the toolbar does not render at all in the browser; it only shows what looks like a couple of link buttons. They still function normally and appear fine in the Visual Studio designer. How can I get the toolbar to render correctly? I have used it on several other pages (none of which are user controls) and it looks fine.

Toolbar code:
<telerik:RadToolBar runat="server" ID="SearchToolBar" OnButtonClick="SearchToolBar_ButtonClick">
<Items>
<telerik:RadToolBarButton ImageUrl="../images/search.gif" Text="Search" ToolTip="Search with selected terms" Width="200px"
                    runat="server" AccessKey="S" Value="SEARCH" meta:resourcekey="SearchButton" />
                <telerik:RadToolBarButton ImageUrl="../images/erase.gif" Text="Clear Search" ToolTip="Clear search items"
                    runat="server" AccessKey="C" Value="CLEAR" meta:resourcekey="ClearSearchButton" />
</Items>
</telerik:RadToolBar>

Screenshots:
Browser view
Visual Studio 2008 Designer View

Using Q1 2010 and IE7

Thank you
Josh
Top achievements
Rank 1
 answered on 15 Jul 2010
1 answer
122 views
Hi
We are tearing our hair out over getting the selected tab to change on a tabstrip after running some vb code. We are loading ascx's on demand using an adapted version of the Telerik demo. It all works fine - the ascx loads, populates itself, etc and shows on the multipage - but we are loading each ascx in a different tab and we cannot get the tabstrip selection to change. For example, we can press a search button on the ascx in the search tab and we then load a grid ascx which should appear on the list tab. The grid loads but the search tab still has red text (our "selected" font setting).

Even Telerik support have not been able to show us how to do this - - they re-write the page to use their demo mothod, but this does not give us the full functionality we are looking for. All the rest of our functionality is fine so we don't want to lose this.

Does ANYONE know how we can write a line of code in vb that will make the seleted tab change on the tabstrip? We have tried:

    myTab = myTabstrip.FindTabByValue(strCurrentMode)        'finds the correct tab

    myTab.Selected =

True

 


In hope,   Neil
Yana
Telerik team
 answered on 15 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?