Hello, in our project we use RadFilter Control.
This is a code from aspx file.
<telerik:RadFilter runat="server" ID="VehicleGridRadFilter" ShowApplyButton="True" FilterContainerID="VehiclesRadGrid" ><FieldEditors> <telerik:RadFilterNumericFieldEditor FieldName="EmployeeID" DataType="System.Int32" /></telerik:RadFilterNumericFieldEditor></FieldEditors><telerik:RadGrid ID="VehiclesRadGrid" runat="server" AllowSorting="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#c3c3c3" BorderStyle="Double" BorderWidth="1px" CaptionAlign="Bottom" CellPadding="3" Width="926px" GridLines="none" AllowPaging="true" PageSize="25" OnNeedDataSource="VehiclesRadGrid_NeedDataSource" OnItemCommand="VehiclesRadGrid_ItemCommand" IsFilterItemExpanded="false" OnItemDataBound="VehiclesRadGrid_ItemDataBound"> <MasterTableView DataKeyNames="VehicleID"> <Columns> <telerik:GridBoundColumn DataField="Year" HeaderText="<%$Resources:PageContent,Global_Year %>" SortExpression="Year" DataType="System.Int32" UniqueName="YearColumn" AllowFiltering="True"> <ItemStyle HorizontalAlign="Center" Wrap="True" CssClass="cellStyleBoth" /> </telerik:GridBoundColumn >….. </Columns> </MasterTableView> <ItemStyle CssClass="GridAlt" Wrap="True" /> <SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" /> <PagerStyle CssClass="GridPage" AlwaysVisible="true" Position="TopAndBottom" /> <HeaderStyle CssClass="GridTitle" /> <EditItemStyle Wrap="False" /> <AlternatingItemStyle CssClass="GridAlt1" /> </telerik:RadGrid>Year in our model is System.Int32 property.
1) How we can set Min/Max values for Year Filter? Or Catch momen when user input wrong value in filter?
1-st question received because if user set Filter value to 999999999999999999999, Filter controls set value to 70368744177664, but we receive error javascript console message on page with control (
We try play with this control on http://demos.telerik.com/aspnet-ajax/filter/examples/customeditors/defaultcs.aspx but if we insert 9999999999999999999999999 to EmployeeID filter, page show http://demos.telerik.com/ErrorPageResources/error.aspx?aspxerrorpath=/aspnet-ajax/filter/examples/customeditors/defaultcs.aspx
Thank you.
Hello
I'm using ASP.NET AJAX Q1 2012 version. When I put two RadAsyncUpload on one page, and try to set enabled property on false, i receive some JavaScript error. It's working when there is only one RadAsyncUpload control.
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server"> </telerik:RadAsyncUpload> <telerik:RadAsyncUpload ID="RadAsyncUpload2" runat="server"> </telerik:RadAsyncUpload>
namespace test1 { public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { RadAsyncUpload1.Enabled = false; RadAsyncUpload2.Enabled = false; } } }
<telerik:RadTreeView ID="radTreeView" runat="server" Width="100%" AutoGenerateColumns="true" OnNodeClick="radTreeView_OnNodeClick">
<WebServiceSettings Path="BuildTrgMP.aspx" Method="GetChildNodes" />
</telerik:RadTreeView>
I have coded the GetChildNodes webservice call on the server side and this all works fine: when the user clicks a + on the tree, the little whirly appears which the webservice is called to populate the tree, which it does so correctly.
What I want to do is the opposite situation: when the user clicks a - on the tree, I want it to invalidate everything under that node such that the next time the + is clicked, the webservice is again called so that the list is updated from the database.
At the moment clicking the + just reopens the list which has previously been cached in the browser and the webservice is not called to refill the list.
How do I use OnClientNodeCollapsing (or any other approach) to invalidate the list such that pressing + causes the webservice to be called again ?
Thanks
Graham Plowman

