English 中文(简体)
摘录 项目数据
原标题:Silverlight nested RadGridView SelectedItem DataContext

I m 开发银灯4灯,并利用2010年Q1释放1号雷达GridView。 我正在利用多国机器设备模式开发这一仪器,并试图将我的代码保持在最低限度。

根据我的看法,我有一份《拉杰里德意见》,这把财产归我的看法。 我正在通过<条码>选择Item设定财产。 我有一份拉杰德意见书,我想把财产列入我的观点,列入<条码>。 我认为,我所nes的电网的数据内容是母子包收集的内容,而不是我的观点。 我可以很容易地使用密码,从<条码>上确定我的看法模型财产。 我曾试图利用我在电网中的ElementName中的ModelName观点,具体地说,对于S selectedItem,《观点》是数据术语,但我不能这样做。 任何想法?

这里是我的Xaml:

<grid:RadGridView  
                    x:Name="master" 
                    ItemsSource="{Binding EntityClassList, Mode=TwoWay}" 
                    SelectedItem="{Binding SelectedEntityClass, Mode=TwoWay}" 
                    AutoGenerateColumns="False" 
                    > 

                <grid:RadGridView.Columns> 
                    <grid:GridViewSelectColumn></grid:GridViewSelectColumn> 
                    <grid:GridViewDataColumn DataMemberBinding="{Binding Description}" Header="Description"/. 
                </grid:RadGridView.Columns> 

                <grid:RadGridView.RowDetailsTemplate> 
                    <DataTemplate> 
                        <grid:RadGridView 
                            x:Name="child" 
                            ItemsSource="{Binding EntityDetails, Mode=TwoWay}" 
                          /* Note: SelectedItem here is not setting my property in my ViewModel*/
                            SelectedItem="{Binding DataContext.SelectedEntityDetail, ElementName= RequestView , Mode=TwoWay}" 
                            AutoGenerateColumns="False" 
                            > 
                                <grid:RadGridView.Columns> 
                                    <grid:GridViewSelectColumn></grid:GridViewSelectColumn> 
                                    <grid:GridViewDataColumn DataMemberBinding="{Binding ServiceItem}" Header="Service Item" /> 
                                    <grid:GridViewDataColumn DataMemberBinding="{Binding Comment}" Header="Comments" /> 
                                </grid:RadGridView.Columns> 
                        </grid:RadGridView> 
                    </DataTemplate> 
                </grid:RadGridView.RowDetailsTemplate> 

            </grid:RadGridView> 
最佳回答

他们一直与Telerik公司合作,告诉我,这是一个框架限制。 他们建议采用所附行为进行工作。 迄今为止,我 st着手法中小部分。

问题回答

如果您的“选择意向”在证书上的推进程度与“选择意向”的水平相同,那么你就在正确的轨道上看到了。

在树“LayoutRoot”等树中,与你“主子”电网或以上电em一样具有约束性,因为我只是猜测要求什么。

SelectedItem="{Bled ElementName=master, Path=DataContext.S selectedEntityDetail}”





相关问题
Silverlight Rich text box control

Our team decided that we need our own custom Rich text box control for Silverlight app we are developing. We looked at existing controls mentioned at A good rich text control for Silverlight but ...

Silverlight ImageBrush not rendering (with Bing Map Control)

I m trying to add an image to a Pushpin instance from the Silverlight Bing Map Control, but I can t seem to get it to render (the pushpin renders fine). This is probably a general WPF question rather ...

Silverlight OpenFileDialog DoEvents equivalent

I m processing large files after they are selected by the user. My code looks like the following: if (FileDialog.ShowDialog() == true) { // process really big file } This freezes up the UI so ...

list of controls with templates in silverlight

Does anyone know where to find a list of controls that you can set the template on in Silverlight? I ve wasted several hours now trying to create control templates only to find that the control doesn ...

Silverlight, Updating the UI during processing

I have a simple silverlight multifile upload application, and i want to provide the user with some feedback, right now its only in a test phase and i dont have the webservice. Somehow i cant get the ...

Silverlight 3 - FindName returns null

This looks a bug to me.. Using Silverlight 3 and i have a user control defined in XAML and trying to access the object during runtime returns a null. <Grid> <common:CommonGridEditPanel x:...

silverlight 3 collection binding

Someone please help me understand why this binding does not work... I have a class called SelectionManager with a property called dates which is populated by a WCF service. The property is an ...

热门标签