Telerik Forums
UI for WPF Forum
4 answers
239 views
Hi

I trying to set GridViewComboBoxColumn itemsSource when GotFocus event is fired but it doesn't work.
I ' m using Q2 2010 SP1 libraries and I put

this.AddHandler(RadComboBox.GotFocusEvent, new RoutedEventHandler(comboGotFocus));

in the control constructor while the handler is

void comboGotFocus(object sender, RoutedEventArgs args)
{
    GridViewCell cell = args.OriginalSource as GridViewCell;
    if (cell != null && cell.Column.UniqueName == "RegionId")
    {
        District district = cell.DataContext as District;
        if (district != null && cell.Content is LookupElement)
        {
            string countryId = district.CountryId;
            RadGridView gridView = (RadGridView)this.districtRegistryControl.ChildrenOfType<RadGridView>().First();
            RadComboBox comboBox = (cell.Content as LookupElement).ComboBox;
            if (comboBox != null)
            {
                comboBox.ItemsSource = null;
                if (string.IsNullOrEmpty(countryId) == false)
                    comboBox.ItemsSource = from r in iGasContext.Context.Regions
                                           where r.CountryId == countryId
                                           select r;
                else
                    comboBox.ItemsSource = iGasContext.Context.Regions;
            }
        }
    }
}

Thanks
Ivano
Ivano
Top achievements
Rank 1
 answered on 01 Oct 2010
1 answer
102 views
i have multiple series added in single chart..but problem is that i am not able to distinguish in legend...i have attached image..showing for first and second series..i want to customize the items for particular series..like for first series  ..each label items on legend should end up like april first,may first and for second each label items on legend should end with second...

i have used seriesdefinition.legendlabel="some text" but it doesnt give desired result.....

Thanks,
Kapil Garg
Vladimir Milev
Telerik team
 answered on 01 Oct 2010
9 answers
163 views
Hi,
I got a problem in GridviewCombox column when binding its item source property with collection View source. When i change any item in new row, the old rows get the sme item selected. I reported it earlier as well, but couldnt find any solution
Thanks
Pavel Pavlov
Telerik team
 answered on 01 Oct 2010
3 answers
116 views


Hello telerik,
the selecteddate property is returnnig a selected a date with a time stamp '12:00' ..which is not the time i select from the datetimepicker control. how to get rid of this?

i tried , 'selecteddate.value.date ' ...its of no use. still its giving me with  12:00

Thanks,
Srinivas
George
Telerik team
 answered on 01 Oct 2010
9 answers
176 views
Hi i got latest internal build of RadControls for WPF 4.0, and i got error in

<telerik:RadToolBar x:Name="test" telerik:StyleManager.Theme="Summer">            
</telerik:RadToolBar>

Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception i need help asap, because mine app stoped to work and i cant go back to 2010.2 812, because it threw me exception Unable to cast object of type 'System.Windows.Automation.Peers.TextBoxAutomationPeer' to type 'System.Windows.Automation.Peers.SelectorItemAutomationPeer'  on RadComboBox :/


BTW how to change Theme globaly for all controls ?
Viktor Tsvetkov
Telerik team
 answered on 01 Oct 2010
5 answers
1.1K+ views
If I use the following binding expression in a GridViewDataColumn

DataMemberBinding="{Binding Path=Days[1]}"

("Days" is an Array like Days[10])

I get the following error in the Visual Studio debug output window:

A first chance exception of type 'System.ArgumentException' occurred in Telerik.Windows.Data.dll

and the filter menu button in the column header is missing and the sorting function doesn't work anymore.

If I wrap the array element in a porperty in the business object and use this for binding, everything is fine. What's going on here?

Thanks
Maya
Telerik team
 answered on 01 Oct 2010
3 answers
259 views
Hello,
In download page, there are:
================
WPF 3.5 - Automatic Installation (msi 124 MB)
WPF 3.5 - Manual Installation (zip, 125 MB)
WPF 3.5 - DLLs only (zip, 10383 KB)
WPF 4 - Automatic installation (msi, 121 MB)
WPF 4 - Manual installation (zip, 125 MB)
WPF 4 - DLLs only (zip, 10414 KB)
================
My question is, what's the difference between "WPF 3.5 - Automatic Installation " and "WPF 4 - Automatic installation"? I have VS2010 installed in my computer, if I do development, which one should I use? Which one is better?

Thanks a lot!
Tim
Pavel Pavlov
Telerik team
 answered on 30 Sep 2010
1 answer
97 views
When you have a DocumentHost and you drag one of the documents to create a new PaneGroup (using the compass), RadDocking dynamically creates a new PaneGroup. What is the recommended way to get a reference to it when it is created? I would like to add an event handler and set some other properties. I'm not seeing an obvious way of doing this.

Also, then you have multiple PaneGroups, each has a SelectedPane property. Is there any way to determine which RadPane is actually the one that is currently selected/has the focus?
Miroslav Nedyalkov
Telerik team
 answered on 30 Sep 2010
3 answers
81 views
Why does a window opened with ShowDialog set my MSN to "busy"?

If I turn off "showme as 'BUsy' when i'm running a full-screen program or presentation settings are turned on" in messenger, that seems to fix it. Are modal dialogs secretly full-screen? or do they have some sort of presentation settings?
Miroslav Nedyalkov
Telerik team
 answered on 30 Sep 2010
3 answers
490 views
I display a collection of items in a RadGridView, each having a collection of parameters of possibly different types.

It works quite nicely if I use the resource definitions below along with an identical definition for each of the parameter columns:

01.<t:RadGridView.Resources>
02.    <DataTemplate DataType="{x:Type vm:AnalogParam}">
03.       edit template definition....
04.    </DataTemplate>
05.    <DataTemplate DataType="{x:Type vm:DigitalParam}">
06.       edit template definition....
07.    </DataTemplate>
08.    <DataTemplate DataType="{x:Type vm:DummyParam}">
09.       edit template definition....
10.    </DataTemplate>
11.      
12.    <DataTemplate DataType="{x:Type vm:AnalogParamDisplay}">
13.       display template definition....
14.    </DataTemplate>
15.    <DataTemplate DataType="{x:Type vm:DigitalParamDisplay}">
16.       display template definition....
17.    </DataTemplate>
18.    <DataTemplate DataType="{x:Type vm:DummyParamDisplay}">
19.       display template definition....
20.    </DataTemplate>
21.      
22.    <DataTemplate DataType="{x:Type bo:DigitalParamDesc}" >
23.       header template definition....
24.    </DataTemplate>
25.    <DataTemplate DataType="{x:Type no:AnalogParamDesc}">
26.       header template definition....
27.    </DataTemplate>
28.</t:RadGridView.Resources>
29.<t:RadGridView.Columns>
30.    .....
31.    <t:GridViewDataColumn Header="{Binding Descriptors[4]}" IsReadOnly="False" IsFilterable="False">
32.        <t:GridViewColumn.CellTemplate>
33.            <DataTemplate>
34.                <ContentPresenter Content="{Binding Params[4].DisplayWrapper}" />
35.            </DataTemplate>
36.        </t:GridViewColumn.CellTemplate>
37.        <t:GridViewColumn.CellEditTemplate>
38.            <DataTemplate>
39.                <ContentPresenter Content="{Binding Params[4]}" />
40.            </DataTemplate>
41.        </t:GridViewColumn.CellEditTemplate>
42.    </t:GridViewDataColumn>

Because the number of parameters in the grid is variable, I would like to add the columns programmatically instead of defining them in XAML.

How do I do that?
Maya
Telerik team
 answered on 30 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?