How to show time picker even if I create appointment on month view or week view? any chance to achieve that?
Regards
I am trying to implement server side custom paging and using https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/paging/custom-paging/defaultcs.aspx as a reference.
Please refer to your following code
protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
MyBusinessObjectCollection MyBusinessObjectCollection1 = new MyBusinessObjectCollection();
int startRowIndex = (ShouldApplySortFilterOrGroup()) ?
0 : RadGrid1.CurrentPageIndex * RadGrid1.PageSize;
int maximumRows = (ShouldApplySortFilterOrGroup()) ?
MyBusinessObjectCollection1.SelectCount() : RadGrid1.PageSize;
RadGrid1.AllowCustomPaging = !ShouldApplySortFilterOrGroup();
RadGrid1.DataSource = MyBusinessObjectCollection1.Select(startRowIndex, maximumRows);
}
If the user uses filtering, say in the example, searching for Unit Price 9, in this case, your ShouldApplySortFilterOrGroup() would return a true. That means maximumRows will be count of entire dataset. So, MyBusinessObjectCollection1.Select(0, 100000); would be very expensive.
I also noticed, that when filtering, items in pages in the bottom right of the grid doesnt display the correct item count.
Do you have another working example of server side paging which allows filtering?
Thank you
I am in the process of adding Time Zone functionality into our existing Scheduler which did not include it. I am having an issue when I set a TimeZoneId on the Scheduler and then use the Advanced Form with EnableTimeZonesEditing turned on. The times of the appointment that get stored in UTC reflect the time zone of the Scheduler, not for the appointment. For example, if I set the TimeZoneId of the Scheduler to "Pacific Standard Time" and add an appointment for July 25, from 1:00 PM to 2:00 PM with a timezone of "Eastern Standard Time", I would expect the stored time of the appointment to be 17:00 to 18:00 UTC. However, when I view the appointment in the AppointmentInsert event, the start time is 20:00 UTC and then end time is 21:00 UTC, even though the TimeZoneId of the appointment shows as "Eastern Standard Time".
Am I supposed to do the calculation myself when adding an appointment with a different timezone than the Scheduler, or should this be done automatically? Looking at the code for the Time Zones demo for the Scheduler, I don't see any additional code for this calculation, yet it seems to work as expected.
Hi everyone !
I have a page with my group of products and my products based on a TreeList (retrieved from database - See : "GroupProduct.png") It's a RadTreeList. Every item should have some parameters that expands once user clicks on the product or group of products based on a table "group_product_ext" in the same way shown in "Mockup.png" (It can be a GridView or whatever). Parameter should be editable with AJAX and user can apply or cancel his changes.
The problem is : How should I use the ascx control ? Which item would go for parameters that can expands ? And how to link the ascx control containing these parameters just under the groups of products and the products?
Some help for include a custom ascx control to my page containing a label, a checkbox and a textbox for the parameter would be awesome (it can be filled with basic data just for test)
A simple project of the radtreelist : Link removed by Admin because the project violates the UI for ASP.NET AJAX EULA.
A similar result to my expectation is something like this : https://www.telerik.com/clientsfiles/331457_TreeView.png?sfvrsn=9f67e1ee_0
I have been banging my head on this for a couple days. I have a simple radgrid in which I am doing batch editing. The problem I have is that when I change the page or sort a column any changes made are lost. I want the changes to automatically be saved via the BatchEditCommand server-side event before the page flip or sort occurs. I have subscribed to the RadGrid's OnCommand client side event and the function is below.
The javascript function is being executed properly when I page or sort and everything seems fine at each point when debugging. The server side function--BatchEditcommand--functions properly, but it is simply not being executed from this point.
I know the grid.get_batchEditingManager().saveChanges(grid.get_masterTableView()); is being executed because this function runs again immediately and the args.get_commandName() returns "BatchEdit" as it should.
The only way I can get the BatchEditCommand server side event to fire is if i put a args.set_cancel(true); after the grid.saveChanges in the javascript, but then that cancels the paging or sorting action which I want to still happen after saving the changed data. I feel like this should work since the paging action and the saving action both cause postback anyway.
Any ideas?
Thanks.
function
UserAction(sender, args) {
var
grid = $find(
"<%= grdWaterUses.ClientID %>"
);
if
(args.get_commandName() ==
"Sort"
|| args.get_commandName() ==
"Page"
) {
if
(grid.get_batchEditingManager().hasChanges(grid.get_masterTableView())) {
document.getElementById(
"<%= hiddenPostbackCommand.ClientID %>"
).value =
"ClientSave"
; grid.get_batchEditingManager().saveChanges(grid.get_masterTableView());
}
}
}