Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
316 views
I have been able to dynamically load some dropdown lists to be used during an inplace edit in the RadGrid. I do this within the ItemCreated event of the grid. 

I also attach a SelectedIndexChange event to one of the dropdowns (call it dropdown "A"). I need to change the selected index of a different dropdown within the same row (call it dropdown "B") when the user changes the selected index in dropdown A.

The event fires and I can retrieve a new selected value in A, but now I'm at a loss as to how to retrieve the approiate dropdown B to alter it's selected index based on the value chosen in A. I don't have visiblity to a grid "item" from the SelectedIndexChanged event and the databound event doesn't seem to fire when dropdown A's event fires - so I can't get access to the grid item to do a FindControl on dropdown B. I have the AutoPostBack property of dropdown A set to "true".

Any suggestinons? 
Charles
Top achievements
Rank 2
 answered on 12 Apr 2010
1 answer
200 views
Hello,

I have a RadComboBox and have created a Checkbox column via an ItemTemplate.  The RadComboBox is bound dynamically in the code behind. 

Is there an easy way to insert a default record for the RadComboBox on databind, then once that first default record is selected by the user, the rest of the checkboxes in the RadComboBox are selected (acting as a "select all" checkbox)?

Here's my ASPX Code:
<telerik:RadComboBox ID="ddlProjects" EnableScreenBoundaryDetection="False" EmptyMessage="Select Project(s)"  runat="server">  
   <ItemTemplate>   
      <asp:CheckBox runat="server" ID="CheckBox" Text="" /> <%#DataBinder.Eval(Container, "Text")%>   
   </ItemTemplate>    
</telerik:RadComboBox> 

Here's id my VB Code:
    Protected Sub ddlProjects_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlProjects.Load  
        Try  
            If Not Page.IsPostBack Then  
                ddlProjects.DataSource = l_oUniversal.PopulateDropDownList("sprocSchedule_Get_ProjectNames")  
                ddlProjects.DataValueField = "ProjectID" 
                ddlProjects.DataTextField = "ProjectName" 
                ddlProjects.DataBind()  
                ddlProjects.Items.Insert(0, New RadComboBoxItem(""))  
            End If  
        Catch ex As Exception  
            ' Log Error  
        End Try  
    End Sub 

Thanks!
Jason
Jason Zam
Top achievements
Rank 1
 answered on 12 Apr 2010
4 answers
188 views

i m very Confuse, i have to find "chk" Control  in my Codebehind file

<A

 

ppointmentTemplate>

 

 

 

 

 

 

 

 

 

<asp:CheckBox ID ="chk" Text='<%#Eval("ID")%>' runat="server" CssClass="test" OnCheckedChanged="alert('dsfa');" />

 

 

 

 

<asp:Label ID="lblChanelID" runat="server" Text='<%#Eval("Subject")%>'></asp:Label>

 

 

 

 

</AppointmentTemplate>
basically i have provided checkbox in all my appointment, i want to track which apointment is checked by user and which apointment is not checked by user  for that purpose i have to get the referance of Check box that is inside the <AppointmentTemplate> so how i can acess controls that is  inside <AppointmentTemplete> and get it referance according to check box TEXT property;

thanks
Muhammad ali

 

 

 

Veronica
Telerik team
 answered on 12 Apr 2010
2 answers
134 views
Does anyone know, I'm converting from the old ASP.NET controls to the AJAX controls.  I used the Monochrome skin in my web pages.  Is there an equivalent skin I can convert to in the AJAX controls?  Thanks.

Dan
Dan
Top achievements
Rank 2
 answered on 12 Apr 2010
3 answers
140 views
Hi

I have an editor with custom toolbar buttons which I am able to enable / disable via javascript using the following code:
                function OnClientSelectionChange(editor, args) {  
                    var enableButton = (editor.getSelection().getText().length > 0) ? 0 : -1;  
                    editor.getToolByName("tbiEntity").setState(enableButton);  
                        //more buttons are being disbled (not showing for brevity)...  
                } 

The custom buttons that I am showing in my toolbar are also a custom contextMenu as in:
        <contextMenu forElement="*">  
            <tool name="tbiEntity" Text="Entity (Ctrl+Shift+E)" /> 
<!-- more here --> 
        </contextMenu>       

The toolbar buttons now only show when the user has selected some text (works great), however, I need to disable / enable the context menus when I am enabllng / disabling my toolbar buttons. 

How do I get a ref to the conextmenu via javascript, and do the contextmenus have a setState property?
Dobromir
Telerik team
 answered on 12 Apr 2010
1 answer
107 views
The SkinManager works great for all the Telerik components, with a great set of built-in skins. It doesn't appear to skin the other standard HTML ot ASP.NET elements. What would be the best approach to apply the Telerik skins to the entire page?
 
Do I have to create my own ASP.NET theme for each Telerik skin and manage them seperately? This seems like a lot of work.
Sebastian
Telerik team
 answered on 12 Apr 2010
1 answer
160 views
Hello,
          I have a ASP.NET AJAX tree control whose data need to be downloaded to a file from server. I have a splitter control which has the tree control and a button. OnClick of that button, I save the file to disk on the server and redirect to a different page and call Response.TransmitFile(name) to send the file to client;. It works fine on local server. But on remote server, IE security blocks the file from downloading. But I clicked on the information bar in IE and clicked Download File, the page is refreshed but the file is not downloaded. All data in tree control is lost.

Any suggestions or clues..

Thanks,
Bharani
Bharani Mani
Top achievements
Rank 1
 answered on 12 Apr 2010
1 answer
155 views
Is it possible to change the 'filter by' values. For example, on this demo http://demos.telerik.com/aspnet-ajax/filter/examples/firstlook/defaultcs.aspx you can filter by 'ShipVia' or 'ShipName', is it possible to change the text in the menu to 'Ship Via' or 'Ship Name' or even remove some of the options which a user can filter by?

Thank you.
Nikolay Rusev
Telerik team
 answered on 12 Apr 2010
2 answers
187 views
Hi,
Here is the scenario:
- I have RAdWindowManager and some windows defined in an aspx page. I dont want to display any titlebar, statusbar and any borders(i.e. skins). Titlebar and status bar are easy, however for no skin, i find that the only way to do it is either put "EnableEmbeddedSkins=false" or "skin=""  in RadWindowManager declaration. Notice if I do that in individual window declaration, it doesn't work (i.e. skin shows up).

- In my code, I also create new RadWindows through client side javascript, however for these new windows, I need to display the close button i.e. .set_behaviors(Telerik.Web.UI.WindowBehaviors.Close ); however this new window also comes up as skinless and as a result, no close button. IF I remove the "EnableEmbeddedSkins" attribute, then everything works.

So this is the question: how can i have some windows "skinless" and some with skin?
Raheel Ashraf
Top achievements
Rank 1
 answered on 12 Apr 2010
9 answers
407 views
Dear All,

I want to have en external .js file for all my functions scattered all over the page, so I created a .js file and paster everything over there.
I went to my masterpage and add the script tag as follows: 
<script type="text/javascript" language="javascript" src="GlobelFuncs.js"></script>
but it doesn't work ...

How can I accomplish that ?

Best regards
Waleed
Tariq
Top achievements
Rank 2
 answered on 12 Apr 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?