I have an eventtocommandbehavior binding as shown below to deal with the EditEnded event of the raddataform which I am using as a row details editor in my gridview. I get the call in my viewmodel from the command with the args, but they are kinda useless.
How to tell what row was being edited?
Also, if the user hits the cancel button how do I prevent the gridview from being updated? I am beginning to wonder what the raddataform buys me.
My current dataform uses ONLY custom fields. Couldn't I just get rid of the raddataform and use a regular grid with the controls I want as a rowdetailstemplate? If I did that, how could I wire up the OnRowEditEnded event of the gridview to a command associated with a button in my rowdetails editor? For that matter, how to wire it up to the raddataform if I have to use it.
I hope I'm making sense here.
Any help would be great.
Thanks ... Ed
<
telerik:RadDataForm
CurrentItem
=
"{Binding}"
CommandButtonsVisibility
=
"All"
>
<
telerik:EventToCommandBehavior.EventBindings
>
<
telerik:EventBinding
Command
=
"{Binding DataContext.EditEndedCommand, RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}"
EventName
=
"EditEnded"
PassEventArgsToCommand
=
"True"
/>
</
telerik:EventToCommandBehavior.EventBindings
>
</
telerik:RadDataForm
>
Hello,
i'm using the Telerik Dock Controls.
In order to mvvm i'm using the binding to the Property PanesSource.
I Add a login Screeen at startup and want to show it in the center of the application and not docked to any of my SplitContainers.
The XAML head of the RadPane looks as followed:
<
telerik:RadPane
x:Class
=
"ProductLifecycle.Frontend.UI.UserControls.LoginPage"
xmlns:local
=
"clr-namespace:ProductLifecycle.Frontend.UI.UserControls"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:viewModels
=
"clr-namespace:ProductLifecycle.Frontend.ViewModels"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
Header
=
"{Binding Title}"
d:DataContext
=
"{d:DesignInstance viewModels:LoginPage, IsDesignTimeCreatable=False}"
telerik:RadDocking.DockState
=
"FloatingOnly"
telerik:RadDocking.FloatingSize
=
"300,200"
CanUserClose
=
"False"
CanUserPin
=
"False"
CanDockInDocumentHost
=
"False"
>
Everytime when i add this Control to my Binded Collection this window appears in the left of the docking control.
How can i start this window as floating window in front of my application?
Thanks,
Michael
Hi to all,
I'm trying to use an EditTemplateSelector, but I have problem to retrieve DataContext of RadWindow, my RadWindow has x:Name="radWindow", its relative ViewModel exposes a List<T> collection called StatiCertificato, it seems that it not found it.
When selector use campoEditTesto it works correctly and it works correclty with campoEditData also, when it uses campoEditStato or campoEditDecisione show me correctly RadComboBox but without items. It checked that my collection are full.
Am I using a wrong approach for binding into ItemSource property? If yes, what's wrong?
<
templateSelector:ValoreEditTemplateSelector
x:Key
=
"campiEditTemplateSelector"
>
<
templateSelector:ValoreEditTemplateSelector.campoEditTesto
>
<
DataTemplate
>
<
TextBox
Text
=
"{Binding Valore,Mode=TwoWay}"
/>
</
DataTemplate
>
</
templateSelector:ValoreEditTemplateSelector.campoEditTesto
>
<
templateSelector:ValoreEditTemplateSelector.campoEditStato
>
<
DataTemplate
>
<
telerik:RadComboBox
ItemsSource
=
"{Binding StatiCertificato, ElementName=radWindow}"
SelectedItem
=
"{Binding StatoCertificatoSelezionato,Mode=TwoWay}"
DisplayMemberPath
=
"Descrizione"
SelectedValuePath
=
"Valore"
/>
</
DataTemplate
>
</
templateSelector:ValoreEditTemplateSelector.campoEditStato
>
<
templateSelector:ValoreEditTemplateSelector.campoEditDecisione
>
<
DataTemplate
>
<
telerik:RadComboBox
ItemsSource
=
"{Binding DecisioniCertificato, ElementName=radWindow}"
SelectedItem
=
"{Binding DecisioneCertificatoSelezionato,Mode=TwoWay}"
DisplayMemberPath
=
"Descrizione"
SelectedValuePath
=
"Valore"
/>
</
DataTemplate
>
</
templateSelector:ValoreEditTemplateSelector.campoEditDecisione
>
<
templateSelector:ValoreEditTemplateSelector.campoEditData
>
<
DataTemplate
>
<
telerik:RadDatePicker
SelectedValue
=
"{Binding Valore, Mode=TwoWay, Converter={StaticResource editDateConverter}}"
/>
</
DataTemplate
>
</
templateSelector:ValoreEditTemplateSelector.campoEditData
>
</
templateSelector:ValoreEditTemplateSelector
>
Hello,
I want to Change Deadline forecolor to Blue of Telerik Gantt view. Now it is in Red color.
Please help me.
Thanks in advance
Hi,
I am using RadAutocompletebox in scrollable size window. Window has vertical scroll and autocompletebox is at center of window. I have typed a text in completebox and suggestion popup appears and my mouse is on textbox area.Now, I have used mouse wheel event. When i use mouse wheel, popup scroll accordingly to up and down.
My concern is that popup should remain at one place but window can scroll accordingly.
Hi,
So when using an application like SQL Server Management Studio I can run a query (let's say select * from customer although my queries are very user driven with a few joins mostly the SQL is generated dynamically) and the results grid will start populating rows extremely quickly until the full set is returned.
I want to emulate this behavior using a RadGridView (WPF)
I have tried using a data set it takes to long and you don't get that initial feedback of seeing the first rows start flooding in.
Next I tried loading the customers from a data reader and putting each row into an ObservableCollection<Customer> it is way faster and allows the objects in .Net to start being populated even before the query has finished but ultimately the UI was unable to keep up with the reader and froze until the full set was populated.
What would be the best approach to get that fast response of data loading and the user seeing the rows start to appear without locking down the UI Thread of the application?
A typical result set is around 100k records and I can put it in the grid in about 5 seconds using a dataset im hoping to get similar time while showing the user immediate feedback their query is getting results
hi ,
I want to scroll the collection of LayoutControlTabGroupItems when i have many Items displayed In the "LayoutControlTabGroup" like "RadTabControl"
so, how to do??
thx
Hello Telerik,
We came across a scenario which we need to add a tooltip containing a UserControl to a tooltip of a grid's cell.
Can you please point me to the right direction?
Thank you