Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
65 views
Hello, I want a combobox to completely refresh the list of items it's getting from a web service every time a user opens the dropdown. Other fields on the page get sent as argument for the web service method and so when the dropdown is opened a second time it may be the case that it has a completely different set of results.
Max
Top achievements
Rank 1
 answered on 16 Jun 2016
14 answers
465 views
how to Print  Grid Data With all paging  & Filter Data

does telerik have something built in
for printing?

if any  sample code.?
Roberto
Top achievements
Rank 1
 answered on 16 Jun 2016
0 answers
109 views

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

César
Top achievements
Rank 1
 asked on 16 Jun 2016
1 answer
239 views

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)

 

 

 

 

Software
Top achievements
Rank 1
 answered on 16 Jun 2016
3 answers
652 views
I'd like to use the DatePicker control: http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/clientapi/defaultcs.aspx

Would it be possible to enable only Mondays to be selectable when user wants to pick a date?

Thanks,
Eyup
Telerik team
 answered on 16 Jun 2016
6 answers
306 views

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

 

Vasil
Telerik team
 answered on 16 Jun 2016
15 answers
120 views
Hi.
I have a problem, because I want to change code SQL to code C#.

I'm creating 2 Tables and.... 

DataSet ds = new DataSet("Gantt");
        ds.Tables.Add(dt);
        ds.Tables.Add(gd);
        //RadGantt1.DataSource = ds;
        //RadGantt1.DataSourceID = null;
        //RadGantt1.Data
        //RadGantt1.DataSourceID = "GanttTasks";
        RadGantt1.DataSource = ds;
        //RadGantt1.DataSourceID = "GanttTasks";
        //RadGantt1.DependenciesDataSource = gd;
        //RadGantt1.DependenciesDataSourceID = "GanttDependencies";

Actually problem:
Telerik.Web.UI.Gantt.GanttDataSourceException: DependenciesDataSourceID may not be null in case of DataSource binding. So I changed last line, but I have another problem.
What I should do now?







admin
Top achievements
Rank 1
 answered on 16 Jun 2016
1 answer
158 views

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.

Ianko
Telerik team
 answered on 16 Jun 2016
14 answers
3.3K+ views
Hi,

I am using few time(7) columns in my SQL table. RadGrid always show the time in GridDateTimeColumn as 13:55:24.1658985 does not matter what I am putting in DataFormatString. I want to show short 12hr notation: "1:55pm". How to do that?
<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>

Regards,
  Oleg
Vasil
Telerik team
 answered on 16 Jun 2016
1 answer
119 views

Hello,

 

Is there a way to get selected start and end dates after selecting in TimeSlot?

 

thanks

Ivan Danchev
Telerik team
 answered on 16 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?