Hi,
There is any way to bind a grid with a DataTable client side?
At some pages I call web methods that retuns lists of objects to databind, bat I have one grid that the source has to be a datatable and I can't bind a data table client side.
Thanks
Hi, I am new to Telerik and ASP.NET, but not to programming. I have multiple controls (radcomboboxes, text fields) repeated in rows of a table. Each row's field names are appended with a digit to differentiate(ddlChild1, ddlChild2, etc.). I am wanting to modify 4 of the controls in that row, based on the selection of in the combo box (ddlChildx). I am trying to minimize the code needed, so instead of having a block of code and duplicating it 10 times for each of the rows/controls' SelectedIndexChanged event, I wanted to pass the controls in the row to a function or subroutine by reference. However, when I try to declare the parameters 'As Telerik.RadComboBox', it lists Telerik as a namespace not a class in the pop up help when writing out the code. So, it isn't able to bring up the Methods in that parameter.
What do I need to do for the subroutine or function to recognize the telerik control so I can pass it by reference and just do changes to the .SelectedValues or .Text in my subroutine or function. I tried just defining the parameters as dropdownbox, but in compile it said that I couldn't pass the Telerik control to the function
Thanks in advance for your help.
Here's the code to call the function for one of the rows:
Public Sub ddlChild1_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs) Handles ddlChild1.SelectedIndexChanged
'Child Selected Now Default other fields
Dim intPos As Integer
intPos = InStr(ddlChild1.Text, "-")
If intPos <> 0 Then
If Mid(ddlChild1.Text, intPos + 1, 3) = "000" Then
'Not a Child
If Mid(ddlChild1.Text, intPos - 1, 2) = "MG" Then
ddlAccount1.SelectedValue = "MG"
End If
Else
'Child
'Get Next Applied From and To Dates
Functions.fGetAppliedFromTo(ddlChild1, ddlAccount1, txtFrom1, TxtTo1)
'Get Next Support Due
Functions.fGetAmountOwed(ddlChild1, txtAmount1)
End If
End If
End Sub
Here's the beginning of one of the functions:
Public Shared Function GetAppliedFromTo(ByRef ddlChild As DropDownList, ByRef ddlAccount As DropDownList, ByRef txtFrom As TextBox, ByRef txtTo As TextBox)

Hello,
I have a RadNumericTextBox used to accept a numeric value. Now I got a requirement that when the user input 0, the text in the text box should be changed to a string like "Disabled" instead of the numeric value 0.
Is there any solution? Thanks in advance.
Best regards
Zhang Rui
My title is a bit weird as I'm having trouble explaining what I mean, so let me try to clarify. I have a UI that is meant to have a single repeating row of "header" data and then "detail" data under it. An example would be something like this in pseducode layout:
Header Row 1
Detail Row 1
Detail Row 2
Detail Row 3
Header Row 2
Detail Row 4
Detail Row 5
Detail Row 6
In MVC I would do something like this (again, pseudocode):
<table>
@foreach (var m in Model.EnrollmentPeriods) {
<tr class="header">
<td>@m.EnrollmentPeriodName</td>
<td><button id="newElectionButton">New Election</button></td>
</tr>
@foreach (var m2 in m.EnrollmentDetails) {
<tr>
<td>@m2.BenefitClass</td>
<td>@m2.Region</td>
<td>@m2.Band</td>
<tr>
@}
@}
</table>
I have looked at the RadGrid and RadListView, and neither seem to do what I want. I'm not trying to use grouping, I basically need to have a way to say this set of data is repeated on this row, and this other set of data is repeated below it. If you look at the attachment (hopefully it comes), the gray shaded area is the "header" portion that needs to be repeated and the white part is the "detail" records. I can handle the button parts myself, it's mainly just the layout because none of the controls seem to allow for a non-grouping header row, and the gray part needs to be for each "section", it can't repeat with each row of data.

<telerik:GridDateTimeColumn DataField="TicketEmailTime" DataFormatString="{0:t}" FilterControlAltText="Filter colTicketEmailTime column" HeaderText="Ticket Email Time" UniqueName="colTicketEmailTime" DataType="System.DateTime" PickerType="TimePicker" AllowFiltering="False" AllowSorting="False"> <ColumnValidationSettings> <ModelErrorMessage Text="" /> </ColumnValidationSettings></telerik:GridDateTimeColumn>Hello,
Is there a way to get selected start and end dates after selecting in TimeSlot?
thanks
