Hi,
How do I get GroupHeaderRow by this GroupHeaderRow's GroupViewModel?
Thank you
Hi,
I use a RadGridView and I need to apply a style to the filtered elements. Currently, they disappear off course. Is there a way to set a property "visible" and a forecolor specific ? Like this :
http://image.noelshack.com/fichiers/2015/47/1448027537-2217-noelpush.png
Thanks !
Regards.
Hi,
For a tool of mine I have the following problem: I have an appointment which I want to drag in any red/green slot. For this I have a custom ScheduleViewDragDropBehavior class, which has the method CanDrop which will check if the DestinationSlots overlaps any of my red/green slots which I access via my ViewModel. I also have a custom DragDropHighlightStyle template, which will show nothing when dragging.
Thus, when the user drags the appointment, he only sees his cursor. The purpose would be that the user can drag anywhere in a red/green slot, drop it, and the appointment takes over the start and end time of that slot. But the problem: it depends where the user clicks the appointment and starts dragging. Let's say that an appointment lasts four hours, starts at 01:00, and ends at 05:00:
- If the user clicks the appointment at 01:05, starts dragging and drops it in the slot below at 01:00, the DestinationSlots will be from 12:55 till 04:55
- If the user clicks the appointment at 03:05, starts dragging and drops it in the slot below at 01:00, the DestinationSlots will be from 10:55 till 02:55
- If the user clicks the appointment at 04:55, starts dragging and drops it in the slot below at 01:00, the DestinationSlots will be from 09:02 till 01:05
When I actually want my DestinationSlots to start exactly where I drop it on the timeline, and end four hours later.
My possible solutions would be:
- Detect in which custom slot an appointment is dropped. But not possible if I understood correctly?
- Detect on which hour the cursor currently is (hover). I could match this with the value from DestinationSlots. But also not possible?
- Modify each appointment I drag to being one minute long. Thus, it would not matter where the users clicks the appointment to start the drag. But also this I could not get to work. But I think this is the most viable solution.
Any help would be appreciated.
I have a custom appointment object that needs to store resources of a certain type, for this I have an observablecollection.
Now I have my combobox with my resources in the editappointment window.
Jobb job = new Jobb()
{ StandardTid = 30, UppskattatPris = 250, ResourceName = "Klippning", DisplayName = "Klippning", ResourceType="Jobb" };
Jobb job2 = new Jobb()
{ StandardTid = 120, UppskattatPris = 650, ResourceName = "Färgning", DisplayName = "Färgning", ResourceType = "Jobb" };
ResourceType jobbet = new ResourceType("Jobb");
jobbet.Resources.Add(job);
jobbet.Resources.Add(job2);
jobbet.AllowMultipleSelection = true;
ResourceTypeCollection resourcetypelist = new ResourceTypeCollection();
resourcetypelist.Add(jobbet);
bokningView.ResourceTypesSource = resourcetypelist;
This shows up Ok. But how do i bind the selections from this combobox to my collection in my custom appointment ?
We need to send the grid sorting configuration to the backend system. Is the below approach using the UniqueName property going to be reliable? If not can you please advise on the most reliable means to get the information necessary to extract the bound property name.
Thank you.
foreach(Telerik.Windows.Controls.GridView.ColumnSortDescriptor desc in uxRadGridControl.SortDescriptors)
{
var x = desc.SortDirection;
var f = desc.Column.UniqueName;
}
Hi guys,
I would like to ask whether the rich text box can be highlighted in red and show validation message once the cursor is being mouse over to the richtextbox(as shown in the attached picture)?
Thank you.
Hi guys,
I would like to ask how select bookmark from the Hyperlink bookmark tab? (The bookmark show nothing to selected)
Furthermore, I can not even add bookmark, is there any add button for me to add hyperlink into the bookmarktab?
The picture is attached.
taking data from a db into the spreadsheet, and I have a column that is numbers, but they start with a zero (0123456789)
When the data goes in it is ok, but any edits to the cells that also contain a zero ie 01234, will turn into 1234.
How can I stop this from happening, as I require the leading zero to be there.
I would think this would also apply to any new lines been added, I would need this been stopped also.
Many thanks