Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
186 views
Is there a way to have the FilterControl display an "EmptyMessage"?
Vessy
Telerik team
 answered on 15 May 2018
7 answers
109 views
Hello-

Do Visio Stencils or designs exist for any of the RadControls?

Thanks,

-Thomas
Sean
Top achievements
Rank 1
 answered on 15 May 2018
0 answers
119 views

I tried this code to filter radgrid from the external radcombox located outside the Grid. And i have a problem with it. Visual Studio debugger and SQL Profiler show that this code works and send to radgrid correct filter expression with the correct filter value. But radgrid doesn't filtrate data with this expression while rebinding. It shows all data without any filtering after rebinding. How can I solve it?
This is my code C#:

protected void RadComboBox1_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    radgrid.MasterTableView.FilterExpression = "[service_id] LIKE '%" + ddlService.SelectedValue + "%' ";
    GridColumn column = radgrid.MasterTableView.GetColumnSafe("serv_id");
    column.CurrentFilterFunction = GridKnownFunction.EqualTo;
    column.CurrentFilterValue = ddlService.SelectedValue;
    column.AndCurrentFilterFunction = GridKnownFunction.EqualTo;
    radgrid.MasterTableView.Rebind();
}

This is my code ASPX:

<telerik:RadComboBox ID="ddlService" runat="server" Height="200" Width="240"
  DropDownWidth="310"  DataSourceID="dsServices"
 EmptyMessage="- Select Product -"
HighlightTemplatedItems="true" CausesValidation="false"
Filter="Contains" AppendDataBoundItems="true"
onselectedindexchanged="RadComboBox1_SelectedIndexChanged"
SelectedValue='<%# radgrid.MasterTableView.GetColumn("serv_id").CurrentFilterValue %>'
AllowCustomText="true" AutoPostBack="true" DataTextField="service_name" DataValueField="id"
>
Константин
Top achievements
Rank 1
 asked on 15 May 2018
0 answers
71 views

I tried this code to filter radgrid from the external radcombox located outside the Grid. And i have a problem with it. Visual Studio debugger and SQL Profiler show that this code works and send to radgrid correct filter expression with the correct filter value. But radgrid doesn't filtrate data with this expression while rebinding. It shows all data without any filtering after rebinding. How can I solve it?
This is my code C#:

protected void RadComboBox1_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    radgrid.MasterTableView.FilterExpression = "[service_id] LIKE '%" + ddlService.SelectedValue + "%' ";
    GridColumn column = radgrid.MasterTableView.GetColumnSafe("serv_id");
    column.CurrentFilterFunction = GridKnownFunction.EqualTo;
    column.CurrentFilterValue = ddlService.SelectedValue;
    column.AndCurrentFilterFunction = GridKnownFunction.EqualTo;
    radgrid.MasterTableView.Rebind();
}

This is my ASPX code with combox setting:

<telerik:RadComboBox ID="ddlService" runat="server" Height="200" Width="240"
  DropDownWidth="310"  DataSourceID="dsServices"
 EmptyMessage="- Select Product -"
HighlightTemplatedItems="true" CausesValidation="false"
Filter="Contains" AppendDataBoundItems="true"
onselectedindexchanged="RadComboBox1_SelectedIndexChanged"
SelectedValue='<%# radgrid.MasterTableView.GetColumn("serv_id").CurrentFilterValue %>'
AllowCustomText="true" AutoPostBack="true" DataTextField="service_name" DataValueField="id"
>
Константин
Top achievements
Rank 1
 asked on 15 May 2018
0 answers
169 views

I tried this code to filter radgrid from the external radcombox located outside the Grid. And i have a problem with it. Visual Studio debugger and SQL Profiler show that this code works and send to radgrid correct filter expression with the correct filter value. But radgrid doesn't filtrate data with this expression while rebinding. It shows all data without any filtering after rebinding. How can I solve it?

This is my code C#:

protected void RadComboBox1_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    radgrid.MasterTableView.FilterExpression = "[service_id] LIKE '%" + ddlService.SelectedValue + "%' ";
    GridColumn column = radgrid.MasterTableView.GetColumnSafe("serv_id");
    column.CurrentFilterFunction = GridKnownFunction.EqualTo;
    column.CurrentFilterValue = ddlService.SelectedValue;
    column.AndCurrentFilterFunction = GridKnownFunction.EqualTo;
    radgrid.MasterTableView.Rebind();
}

 

This is my ASPX code with combox setting:

<telerik:RadComboBox ID="ddlService" runat="server" Height="200" Width="240"
  DropDownWidth="310"  DataSourceID="dsServices"
 EmptyMessage="- Select Product -"
HighlightTemplatedItems="true" CausesValidation="false"
Filter="Contains" AppendDataBoundItems="true"
onselectedindexchanged="RadComboBox1_SelectedIndexChanged"
SelectedValue='<%# radgrid.MasterTableView.GetColumn("serv_id").CurrentFilterValue %>'
AllowCustomText="true" AutoPostBack="true" DataTextField="service_name" DataValueField="id"
>
Константин
Top achievements
Rank 1
 asked on 15 May 2018
14 answers
711 views
Hello,

I am using theEditMode ="Batch"  RadGrid's  feature to modify Data and send those changes to the database, I am populating the RadGrid from from a DataTable using the event OnNeedDataSource,

My question is, How I could send/commit the changes to the database manually? (in the examples seems to be automatic using the SqlDataSource for CRUD operations, if you could provide a code sample would be very appreciate it,

Thanks in advance,
Prashant
Top achievements
Rank 1
 answered on 15 May 2018
2 answers
551 views
Hello

Is it possible to zoom out a chart programmatically without using the mouse scroll ? When I have 2 Y axis with two different series, sometimes the second series can be too high that I need to zoom out in order to see the second series.
I was wondering is there any programmatic way (Either on C# or Javascript) to zoom out a chart as soon as the chart is created.

Thanks.
Ahmet
Marin Bratanov
Telerik team
 answered on 15 May 2018
0 answers
170 views

I have a subgrid within which there is a button to add a row (record).

When the button to add a row is clicked, then the below function is called:

 

function vAddRow(e) {
    var grid = $(e.parentElement.parentElement).data("kendoGrid")
    ;
    parentId = grid.element[0].id.split("-")[2];
    grid.addRow();
    console.log("vet add row");
};

 

When this function is called the console shows the error "TypeError: t is undefined ".  From what I can see this error is triggered from the Kendo source within the "addRow" function.

 

I cannot find anything in the documentation that defines what "T" is within the context of addRow.

 

I don't know how relevant it is but the parent grid has the same functionality and does not encounter an error.

 

Any insight would be great!

James
Top achievements
Rank 1
 asked on 14 May 2018
2 answers
183 views
I am trying to find out if it is possible to use both dynamic and hard-coded method to populate the RadMenu object? In my solution I have three top level menu items, two are single items with no child elements while the third has several children. Does anyone know if it is possible to load the menu items using hard coded values as well as dynamically generated values?

thanks,

Jaime
Vladyslav
Top achievements
Rank 1
 answered on 14 May 2018
3 answers
113 views

I feel like I must be missing something very obvious.  I have this:

<telerik:RadClientDataSource ID="RadClientDataSource1" runat="server" AllowBatchOperations="true" ClientEvents-OnRequestStart="RequestStart" ClientEvents-OnRequestEnd="ResponseEnd">
                    <DataSource>
                        <WebServiceDataSourceSettings>
                            <Select DataType="JSON" />
                        </WebServiceDataSourceSettings>
                    </DataSource>
                    <Schema>
                        <Model ID="DialogIDChecksum">
                            ..
                            <telerik:ClientDataSourceModelField FieldName="ConferenceDateTime" DataType="Date" />
                            ..
                        </Model>
                    </Schema>
                    <SortExpressions>
                        <telerik:ClientDataSourceSortExpression FieldName="ConferenceDateTime" SortOrder="Desc" />
                    </SortExpressions>
                </telerik:RadClientDataSource>

 

And it is tied to a RadGrid.  Everything loads perfectly but it's not sorted.  Is there something special I need to do in the RadGrid so it uses the SortExpressions object in the RadClientDataSource?

Thanks,

Richard

 

 

Eyup
Telerik team
 answered on 14 May 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?