Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
226 views
I have 3 combo boxes on a page, combo1, combo2 & combo3

the contents of combo2 are filtered by the selected value in combo1
the contents of combo3 are filtered by the selected value in combo2

I need to obtain the currently selected value in combo1 as an additional filter value for combo box 3 and was given an example involving a context filter.  This example is stuck in an endless loop.  heres the code for the combo

<telerik:RadComboBox ID="RadComboBoxCategories" Runat="server" Width="100%" OnClientItemsRequested="ItemsLoaded" OnClientItemsRequesting="ClientItemsRequesting" 
                        onitemsrequested="RadComboBoxCategories_ItemsRequested" Skin="Default" EnableLoadOnDemand="true">  
                        <CollapseAnimation Duration="200" Type="OutQuint" /> 
            </telerik:RadComboBox> 





<

 

telerik:RadComboBox ID="RadComboBoxType" Runat="server" OnClientSelectedIndexChanging="LoadGenres"

 

 

onitemsrequested="RadComboBoxType_ItemsRequested" Skin="Default"

 

 

Width="100%" EnableLoadOnDemand="true" AutoPostBack="False"

 

 

onselectedindexchanged="RadComboBoxType_SelectedIndexChanged">

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

</telerik:RadComboBox>

 



heres the javascript function


function ClientItemsRequesting(sender, eventArgs) {  
                var context = eventArgs.get_context();  
                var typeCombo = $find("<%= RadComboBoxType.ClientID %>");  
                context["FilterString"] = typeCombo.get_text();  
            } 
  and the c#


protected void RadComboBoxCategories_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)  
        {  
            string temp = e.Context["FilterString"].ToString();  
            LoadCategories(e.Text, temp);  
        } 
  the Itemsrequested event is being fired in an endless loop !

can you help ?  The LoadCategories method needs the value currently selected in the RadComboBoxType as part of the filter
Simon
Telerik team
 answered on 22 Jul 2009
1 answer
68 views
If I have project which is using RadControls for .Net 2.0 before, what is the migration steps to use the controls for .Net 3.5?
- are all API functions identical between those two sets of controls?

Another question is what are the features differences between those two set of controls besides my list below?

- Net 3.5 Client-side Data Binding

- Entity Framework CRUD Operations

- LinqToSql CRUD Operations

- LinqToSql Manual CRUD Operations



Sebastian
Telerik team
 answered on 22 Jul 2009
1 answer
103 views
Hello,

I would like to control with a slider a kind of chain. I would like to place a number of div-elements from left to right. Each div contain a picuture and a link and text. With the slider I want to be able to slide the different divs along the chain. Lets assumme the chain will contain 6 divs then i want to be able to see 3 of them on one time. I want to see div1, div2, div3. If i slide to the right i would like to see div2, div3, div4 and so one. Deepending on the zoom level I also want to be able to see more or less then 3 div-elements. 
I need a div-element because i want to change the background color of the different div-element according to events.

Does anyone have an idea how I can develop such a control?

I appreciate every help.

Cheers

Chris
Tsvetie
Telerik team
 answered on 22 Jul 2009
1 answer
444 views
Specified argument was out of the range of valid values. Parameter name: index


 Dim myCheckbox As CheckBox = CType(dgi.Cells(0).Controls(1), CheckBox)


How to find any controls value in Radgrid ?
How to ?






Shinu
Top achievements
Rank 2
 answered on 22 Jul 2009
1 answer
108 views
Hi,

My upload control is located inside of an AjaxPanel, so I use the ConditionalPostback method.

When the user selects a file, I want it to immediately upload - how do I do this?

I presume I must use the OnClientFileSelected call, but I dunno where to go from here.

Thanks!
Morten
Atanas Korchev
Telerik team
 answered on 22 Jul 2009
1 answer
211 views
I have a nice presentation form that displays all the data within a table automatically (easily done with the component). However, now I want to be able for users to query the database table and click the query button and have the table updated.

Below is the code I am using:

EAIDataClassesDataContext db = new EAIDataClassesDataContext();
            var hl7dTypes = from p in db.REF_HL7_DATATYPEs where p.DATATYPE.Contains(RadTextBox1.Text.Trim()) select p;
            //LinqDataSource.Equals == hl7dTypes;
            //LinqDataSource.DataBind();
            //RadGrid1.DataSource = hl7dTypes;
            //RadGrid1.DataBind();
            RadGrid1.Rebind();

As you can tell I have tried the commented out options and all either do not work or cause a page rendering error. How can I get this to work?
Sebastian
Telerik team
 answered on 22 Jul 2009
3 answers
108 views
I have set up a RadGrid (that is ajaxify) in a User control. This grid's data is bound dynamically and sometimes through the NeedDataSource event. The Script manager and AjaxManager is in the master page along with a RadTabStrip. I have an AjaxManagerProxy in the user control to ajaxify the grid.

The grid has the following properties:
-Columns are set statically
-Filtering is enabled on the first 4 columns only
-The last column does not have header information as it contains links about the details of each row in the grid
-Paging and sorting is enabled
-I have setup exporting through Excel (in ExcelML) and PDF
-Users can select rows.

Now, whenever I click on the header of a column to sort, ascending sort works. However, weird things start to happen:
-if I click the ^(up) arrow right next to the header text, the third column (2nd column down) gets sorted ascending.
-if I click the first column again, instead of descending sort, it stays in ascending sort.
-if I go down the rows sorting, as in if I click the first column to sort, then click the next column to sort, instead of the next column sorting, it is the next after next column that sorts. (I noticed that the Javascript indexes are changing, don't know why)
-paging to the next page stops at the second page, but that's not as bad as sorting.

I'll post my code when necessary. Any help will be much appreciated.
Sebastian
Telerik team
 answered on 22 Jul 2009
1 answer
311 views
hi there, I have used ajaxRequestWithTarget for a button ajax event. I wish to pass argument to the button event and how would i get it out as a string?  for example, 

 

ajaxRequestWithTarget(

"btnRefreshAct", "RebindTask")

how would i get the RebindTask from the buttonclickEvent from Radajaxmanager?

 

 

Shinu
Top achievements
Rank 2
 answered on 22 Jul 2009
2 answers
479 views
Hi

I have a RadGrid with 5 function buttons. I want to hide / show these images on a row by row basis.

This is my Rad grid:

 

<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="EditJobplan" Text="Edit JobPlan" ImageUrl="../App_Themes/Default/Images/JobPlanEdit_24.gif" UniqueName="Change"><HeaderStyle Width="1px" /><ItemStyle Width="1px" /></telerik:GridButtonColumn>

 

 

<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="EditSession" Text="Edit Sessions" ImageUrl="../App_Themes/Default/Images/SessionEdit_24.gif" UniqueName="View"><HeaderStyle Width="1px" /><ItemStyle Width="1px" /></telerik:GridButtonColumn>

 

 

<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Assign" Text="Assign" ImageUrl="../App_Themes/Default/Images/JobPlanAssign_24.gif" UniqueName="Assign"><HeaderStyle Width="1px" /><ItemStyle Width="1px" /></telerik:GridButtonColumn>

 

 

<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Forum" Text="Forum" ImageUrl="../App_Themes/Default/Images/Chat_24.gif" UniqueName="Forum"><HeaderStyle Width="1px" /><ItemStyle Width="1px" /></telerik:GridButtonColumn>

 

 

<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Preview" Text="Preview" ImageUrl="../App_Themes/Default/Images/Preview_24.gif" UniqueName="Preview"><HeaderStyle Width="1px" /><ItemStyle Width="1px" /></telerik:GridButtonColumn>

 

 


    Protected Sub rgJobPlans_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgJobPlans.ItemDataBound  
        If TypeOf e.Item Is GridDataItem Then  
            Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)  
            Dim data As System.Data.DataRowView = TryCast(e.Item.DataItem, System.Data.DataRowView)  
            If data("Status").ToString() = "1" Then  
                dataItem("Change").Controls(0).Visible = True 
            Else  
                dataItem("Change").Controls(0).Visible = False 
            End If  
        End If  
    End Sub 

The code shows my ItemDataBound event, What is happening is that the entire column is being hidded / shown not the individual rows, what am I doing wrong?

Andy
Andy Green
Top achievements
Rank 2
 answered on 22 Jul 2009
0 answers
67 views
sorry for double posting...
please delete this thread
thanks
Christian Hanke
Top achievements
Rank 1
 asked on 22 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?