telerik

RadDateTimePicker + Mask for Data Entry

久未见 提交于 2019-12-11 01:57:31
问题 Requirement: Allow user to enter date in the format of ###### while also have the ability to choose it from a DatePicker (assuming all years entered will be Post 2000.) So for example, user enters 050513 it becomes 5/5/2013. Or if they choose it from the DatePicker, provide the same display. They also want it to select all when the control receives focus so they can easily overwrite any pre-existing date. What I tried: My xaml is much stronger than my c# so I tried to get creative and got

Kendo ui - how to tie validation to mvc model attributes

社会主义新天地 提交于 2019-12-11 01:51:15
问题 From reading the posts in this thread - and being unable to post the question there for some bizarre reason :( I will ask it here in hope of getting a solution Am I write in saying that I have to do validation like below.. I add the html5 attribute (data-required-msg/validationMessage) to the textbox and the required attribute as well.. I make a span for the invalid msg and tie it to the field with the "data-for" attribute. The message "Please enter name" should appear in this span then.

How to properly configure delete functionality with radajaxmanager with confirmation box?

落爺英雄遲暮 提交于 2019-12-11 01:44:17
问题 I am using Telerik Grid control in which i am displaying list of records along with Update and Delete functionality. Now i want to show confirmation box when deleting records so that user doesnt accidentally delete the record. So here is my approach: 1)I have one master page i.e is MyMaster.Master which contains one common client side events for confirmation box which i would be using sweetalert for that: function DeleteData(Id) { var ajaxManager = null; var action = 'Remove'; ajaxManager =

Is it possible that __doPostBack() would ever send a GET request?

孤者浪人 提交于 2019-12-11 01:35:36
问题 I'm having a problem with telerik RadGrid, I want to enable multiple row selection. I also want to go to the server whenever a row is selected or deselected. I created a javascript function to handle the Grid's client side events (OnRowSelected, and OnRowDeSelected). The functions look like this: function onOperationRowSelected(sender, eventArgs) { __doPostBack("<%=myControl.ClientID %>", "rowSelected:" + eventArgs.get_itemIndexHierarchical()); } The other function is very similar, the only

issue with Telerik_Web_UI_WebResource_axd

你离开我真会死。 提交于 2019-12-11 01:08:21
问题 When I run my website, I get the following error message Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'Telerik_Web_UI_WebResource_axd' Here are the contents of web.config... <httpHandlers> <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/> </httpHandlers> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> <validation validateIntegratedModeConfiguration="false"/> <handlers>

GridBoundColumn with multiple DataFields

谁说我不能喝 提交于 2019-12-11 00:19:56
问题 I have a GridBoundColumn that I would like to be bound to 2 fields so that I can display the two fields in one column. I would like to do something like the following: <GridBoundColumn DataField1="LastName" DataField2="FirstName" DataFormatString="{0},{1}"> Is this possible? If so how can it be accomplished? This is used in a Telerik RadGrid if that makes any difference. 回答1: This can be accomplished by implementing the OnItemDataBound method (configured in your grid definition like

Telerik Radgrid GridDataItem.DataItem is empty when updating (OnUpdateCommand handler)

这一生的挚爱 提交于 2019-12-11 00:15:00
问题 When handling the OnUpdateCommand event on a RadGrid the DataItem is null. I thought that this would also represent the data item being represented by the row. The Radgrid is populated from an IList and in the handler the code looks like this... protected void rgAllocatedClients_UpdateCommand(object sender, GridCommandEventArgs e) { if (e.Item is GridDataItem) { var gridDataItem = e.Item as GridDataItem; var client= gridDataItem .DataItem as Client; .... .... This works find when handling the

e.slice is not a function error in ASP.NET MVC with Kendo UI

淺唱寂寞╮ 提交于 2019-12-10 23:59:20
问题 I am working on asp.net MVC with Kendo UI grid. I am getting the information from a method and give it to the grid. and I have in toolbar a datepicker so when I pick a new date the code will go to the method refilter the LINQ then I received a new list. I wrote this code: public ActionResult Grid_ReadLogAdminList([DataSourceRequest] DataSourceRequest request,[Bind(Prefix = "id")] string date) { //both the date and result is correct always var jsonResult = Json(result, JsonRequestBehavior

ORM, DataBinding to DataGridView: inserting/deleted new rows not saved to the database

有些话、适合烂在心里 提交于 2019-12-10 20:41:33
问题 I'm pretty new to ORMs, and I'm currently giving Telerik OpenAccess ORM a try but the question may actually not be specific to that ORM, and I've not yet completely settled on that ORM yet anyway. What I'm trying to achieve is to bind a DataGridView to show the collection of Customers objects showing all the customers in the customer table. I've bound it to a BindingSource and bound the BindingSource to the DataGridView control. I can modify the existing items successfully (using the

Telerik : preventing postback with RadButton confirm dialog

限于喜欢 提交于 2019-12-10 20:28:05
问题 I am having trouble to implement the confirm dialog to ask the user to confirm his choice to delete. The RadButton should not postback to the server if the user clicks cancel. The confirm dialog never shows, what am I doing wrong? <script type="text/javascript"> function confirmAspButton(button) { function aspButtonCallbackFn(arg) { if (arg) { __doPostBack(button.name, ""); } } radconfirm("Are you sure you want to delete?", aspButtonCallbackFn, 330, 110, null, "Confirm"); } </script> <telerik