Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
146 views
Good afternoon,
I am trying to set a textbox as required using the RadInputManager.  My problem is that I need to be able to do this dynamically in the code-behind (C#).  Here is my scenario:  The web form has 4 textboxes.  Depending on the user type, one or more of the textboxes are required and the rest are not required.  Listed below is my RadInputManager code.  Any assistance would be greatly appreciated.

<

 

telerik:RadInputManager ID="rimManager" runat="server" EnableEmbeddedSkins="False">

 

 

 

<telerik:NumericTextBoxSetting BehaviorID="Numeric" Type="Number" ErrorMessage="Invalid" DecimalDigits="0" MinValue="0">

 

 

 

<TargetControls>

 

 

 

<telerik:TargetInput ControlID="tbOne" />

 

 

 

<telerik:TargetInput ControlID="tbTwo" />

 

 

 

<telerik:TargetInput ControlID="tbThree" />

 

 

 

<telerik:TargetInput ControlID="tbFour" />

 

 

 

</TargetControls>

 

 

 

</telerik:NumericTextBoxSetting>

 

 

</

 

telerik:RadInputManager>

 

 

 

 

 

Jeff
Top achievements
Rank 1
 answered on 15 Jul 2010
4 answers
306 views

Hello Telerik Team,

How to implement a single search textbox to filter instead of using seperate filter for each column.

Requirements: Textbox and Searchbutton. On click of Searchbutton, search in rad grid, filter and display the filtered results only in grid.

A snippet to make this working is greatly appreciated.

Thanks,
Smith

Jon Ireland
Top achievements
Rank 1
 answered on 15 Jul 2010
2 answers
60 views
Hello,

i'm tagging RadChart 2010 inside RadWindow manager to show as a pop up chart windws. I wana know if there is a way i can put icons (copy & print) on the windows top bar and can program them accordingly as shown in the attached image.

as an alternative option; i'm thinking to add Radtoolbar right top of the chart.

Thanks
Jamil
Top achievements
Rank 1
 answered on 15 Jul 2010
2 answers
97 views
Hi,

Not sure if this is a bug or not, but when you open the table wizard and select either the Table Properties or Cell Properties it pushes the "Okay" and "Cancel" buttons below the bottom border of the window.

Thank you,
Tad
TAD RHODES
Top achievements
Rank 1
 answered on 15 Jul 2010
3 answers
360 views
Hi,
How can i disable "Properties" tab in rad editor, after opening Image Manager and choosing some picture?
I want to resize the picture only from Image Editor, i don't want user to modify the image with Properties tab?
is this possible?
Rumen
Telerik team
 answered on 15 Jul 2010
2 answers
258 views
Hi,

I've a ComboBox in ListView EditItemTemplate and I'm filling it programatically;
aspx file
...
<EditItemTemplate>
   <telerik:RadComboBox ID="cmb" runat="server" SelectedValue='<%#Bind("KAYITNO")%>'>
   </telerik:RadComboBox>
</EditItemTemplate>
...

cs file
...
protected void listView_ItemCreated(object sender, RadListViewItemEventArgs e)
{
     if (e.Item.ItemType == RadListViewItemType.EditItem)
     {
         RadComboBox cmb= item.FindControl("cmb") as RadComboBox;
         fillCombo(cmb);
     }
}
 
protected void fillCombo(RadComboBox cmb)
{
   cmb.DataSource = MngCon.Fill();
   cmb.DataTextField = "VALUE";
   cmb.DataValueField = "KAYITNO";
   cmb.DataBind();
}
...


The problem is that when I press edit button EditItemTemplate thow exception; 

Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.

What can I do for this situation ?

PS: I'm sure that Bind("KAYITNO") value is exists in comboBox items.
Veronica
Telerik team
 answered on 15 Jul 2010
1 answer
120 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
355 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
141 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
246 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?