telerik

check RadDateTimePicker value against current system date time value

↘锁芯ラ 提交于 2019-12-12 01:21:58
问题 How can I verify if the selected datetime value from the RadDateTimePicker is greater then the current system datetime value in asp.net using server side validaton . <telerik:RadDateTimePicker runat="server" ID="orderDate" > <Calendar ID="Calendar1" runat="server" EnableKeyboardNavigation="true"> </Calendar> </telerik:RadDateTimePicker> 回答1: To validate it, you need to use CompareValidator or CustomValidator. Please use following markup for datetime picker: <telerik:RadDateTimePicker runat=

Time format in asp.net page

妖精的绣舞 提交于 2019-12-12 00:50:07
问题 i use telerik RadDateTime control for insert date and time into one table of SQL Server DB. The problem is about what i see in browser: when my grid is bind to the DB, it shows the cell containing the datetime value in format dd/MM/yyyy hh.mm.ss and i want to show this data in format dd/MM/yyyy hh:mm:ss because when i pass in edit mode, the RadDateTimeColumn shows correctly ":" instead of "." but next when i confirm the update or the insert, the parameter is passed to the storedprocedure in

how to work with Progressive bar?

天涯浪子 提交于 2019-12-12 00:20:00
问题 I am copying the data from one location to another location in "WPF".On click of the copy button the progress bar should be enabled and after copying all the data immediately the progressive bar should be closed?pls help me out? 回答1: Simply set the IsEnabled property of your ProgressBar Set the Visibility to System.Windows.Visibility.Collapsed to hide it. 来源: https://stackoverflow.com/questions/11683274/how-to-work-with-progressive-bar

Avoid right click on kendo grid

匆匆过客 提交于 2019-12-12 00:16:01
问题 This is my grid: $("#myHtmlTable1").kendoGrid({ dataSource: { pageSize: 18 }, scrollable: false, sortable: true, filterable: true, selectable: true, pageable: { input: false, numeric: false }, change: function () { // MY LOGIC }, columns: [ { field: "Col1", width: 40 }, { field: "Col2", width: 250 }, { width: 40, field: "Col3" }, { width: 150, field: "Col4" } ] }); When I clic a row I get the row text and I put it in another textbox. But I want to do this only with left button mouse so that I

Telerik MVC Grid filterBy not working

此生再无相见时 提交于 2019-12-11 22:09:50
问题 I am facing a similar problem to this question has anybody found a solution to it http://www.telerik.com/community/forums/aspnet-mvc/grid/grid-does-not-filter-when-filterby-major-startswith-mba.aspx#1795473 the sample application here is also not filtering http://www.telerik.com/community/forums/aspnet-mvc/grid/is-there-a-way-to-save-grid-stage.aspx#1224347 回答1: The application you have referred uses hidden fields that are updated through js on DataBound event of the grid like $('#currentPage

Add new record to Telerik RadGrid

喜夏-厌秋 提交于 2019-12-11 19:54:10
问题 I have the following Telerik RadGrid, which I'm using in C#: <MasterTableView Width="100%" EditMode= "InPlace" ClientDataKeyNames="menuID" CommandItemDisplay= "Top"> <Columns> <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" UniqueName="Name"></telerik:GridBoundColumn> <telerik:GridTemplateColumn UniqueName="Type" HeaderText="Type"> <ItemTemplate> <asp:TextBox ID="Type" Text='<%# DataBinder.Eval(Container.DataItem, "Type") %>' runat="server"></asp:TextBox> <

Telerik radgrid with Hierarchy doesn't run client javascript on OnHierarchyExpanding event

假如想象 提交于 2019-12-11 19:46:41
问题 I have a javascript, that I need to be run on expand link click <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> function RowExpanded(sender, eventArgs) { alert(123); } </script> </telerik:RadCodeBlock> I use HierarchyLoadMode="Conditional" for inner grid data load on my aspx page. <telerik:RadAjaxPanel runat="server"> <telerik:RadGrid ID="rgUsersInSessions" ShowStatusBar="true" OnNeedDataSource="OnNeedDataSourceForGrid" OnDetailTableDataBind=

“No records to display” in Telerik's TreeList

亡梦爱人 提交于 2019-12-11 19:15:46
问题 I have simple TreeList, which I want to be filled up with some values. My TreeList: @(Html.Kendo().TreeList<Book>() .Name("BooksTreeList") .Columns(columns => { columns.Add().Field(c => c.BookName); columns.Add().Field(c => c.BookAuthor); }) .Filterable() .Sortable() .DataSource(dataSource => dataSource .Read(read => read.Action("ReadAllBooks", "Catalog")) .ServerOperation(false) .Model(m => { m.Id(c => c.BookId); m.ParentId(c => c.ParentId); m.Expanded(true); m.Field(x => x.BookId); m.Field

populate telerik dropdown list using jquery

旧时模样 提交于 2019-12-11 18:53:11
问题 I am having issues with populating a telerik dropdown list using jquery. I get the following Error: 'get(...).options' is null or not an object On line: $("#courseID").get(0).options.length = 0; Here is my telerik dropdown list: <%= Html.Telerik().DropDownList() .Name("courseID") .HtmlAttributes(new{ @id="courseID"}) %> Here is how I am trying to populate it using jquery: I call the populateDDL function on "StudentID" focusout event, here is the function. function populateDDL() { var link = '

WPF MVVM Dynamic control creation

情到浓时终转凉″ 提交于 2019-12-11 18:43:57
问题 I am developing a MVVM/WPF application where in I have a usercontrol(WPF) which is designed as a Applicatio form and it has got Alias and Email-Id(Key/Value pair) field at the end, which will be input in textbox and these textboxes should be dynmically generated on click of button(+), my concern is placing the cotrol in View from view model- As I am using Grid rows/Column. Alias1 Email1 Aliaas2 Email2 Any pointers or guidance would be greatly appreciated. 来源: https://stackoverflow.com