Telerik Forums
UI for WPF Forum
1 answer
93 views
Hello all. I try to use RadTreeView but I can't  catch events: PreviewDrop and Drop. But PreviewDragStarted and other Drag events I catch. And UI works successfully.
Miroslav
Telerik team
 answered on 23 Oct 2009
1 answer
46 views

Hi,
I am new to Telerik WPF Controls,
I need to convert some Silverlight stuff to WPF.
I heard that "All the classes or controls in Silverlight has equal classes or controls in WPF".
But when i am trying to do it,i was not able to find some similar controls for WPF.

I will be greatfull if i get a mapping between the Silverlight and WPF controls.

For Eg.
(1) In silverlight,<HierarchicalDataTemplate> is in assembly=Telerik.Windows.Controls
but for WPF it is not there, may be due to <HierarchicalDataTemplate>
is present directly in WPF.

 

 

 

(2) in silverlight the folowing code is used what will be the equivalent code in WPF?.

xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"

<radDock:RadDocking.DocumentHost>
    <radDock:RadSplitContainer>
        <radDock:RadPaneGroup x:Name="DocumentHostRadPaneGroup">
        </radDock:RadPaneGroup>
    </radDock:RadSplitContainer>
</radDock:RadDocking.DocumentHost>

 


 

 

 

 

Miroslav
Telerik team
 answered on 23 Oct 2009
1 answer
109 views
I have a tool window (based on System.Windows.Window) which floats on top of my main window.  The tool window has a listbox with items I want to drag to various parts of the main window.

I can initiate a drag operation, but as soon as the mouse gets to the border of the tool window, the drag image gets stuck while the mouse moves on.  My targets never receive any QueryDrop events.

This project is being developed using Prism.  On the Silverlight side, I have a similar tool list hosted in a RadWindow, and drag/drop works great.  I've also tried using RadWindow on the WPF side, but I still have the same problem.

This is the trial version of Telerik.Windows.Controls.dll - Version 2009.2.724.1020


Thanks for you help!


Miroslav
Telerik team
 answered on 23 Oct 2009
1 answer
282 views
Hi,

I am using Treeview to show a recursive data structure. I would like to get the item when mouse is over, process the value of the item and show tooltip.

How can I get the item?

Thanks,
Tihomir Petkov
Telerik team
 answered on 23 Oct 2009
12 answers
542 views
Any examples of dragging a row from RadGridView onto another control using the RadDragAndDropManager?    
Miroslav
Telerik team
 answered on 23 Oct 2009
1 answer
128 views
Hi,

i have a radgrid which i has a edit form ( which is a usercontrol ), and a select column ( which is a check box ).
the issue is i am facing is when ever i open my usercontrol ( i.e the edit form ), and check the select column the details in the row disapper. and they appear back as soon as the select column check box is deselected.

please let me know how can i resolve this issue.

here is part of the code from my grid view

<telerik:RadGrid ID="rgCampaignList" EnableViewState="true" Height="100%" GridLines="none"
                    runat="server" AllowSorting="true" AllowMultiRowSelection="True" AllowAutomaticDeletes="true"
                    CssClass="GridMedium" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"
                    AllowPaging="True" AllowFilteringByColumn="true" AutoGenerateColumns="false">
                    <HeaderContextMenu BackColor="White">
                    </HeaderContextMenu>
                    <HeaderStyle Font-Bold="true" Wrap="true" />
                    <PagerStyle AlwaysVisible="true" Visible="true" Position="topAndBottom" />
                    <MasterTableView GridLines="none" EnableViewState="true" Height="100%" EditMode="EditForms"
                        runat="server">
                        <PagerStyle AlwaysVisible="true" Visible="true" Position="topAndBottom" />
                        <Columns>
                            <telerik:GridClientSelectColumn UniqueName="campapignsSelectColumn" HeaderText="Actions"
                                HeaderStyle-Width="20" Reorderable="false" />
                            <telerik:GridEditCommandColumn HeaderText="Edit" ButtonType="LinkButton" UniqueName="EditCommandColumn"
                                EditFormHeaderTextFormat="Edit Campaign" Reorderable="false">
                            </telerik:GridEditCommandColumn>
                            <telerik:GridTemplateColumn DataType="System.String" DataField="CampaignName" UniqueName="CampaignName"
                                SortExpression="CampaignName" HeaderText="Campaign">
                                <ItemTemplate>
                                    <asp:LinkButton ID="btnCampaignName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CampaignName") %>'
                                        CommandName="SelectCampaign" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="DivisionName" UniqueName="DivisionName" HeaderText="Division"
                                DataType="System.String" SortExpression="DivisionName">
                                <FilterTemplate>
                                    <telerik:RadComboBox ID="RadComboBoxDivision" DataSourceID="SqlDataSourceDivisions"
                                        DataTextField="DivisionName" DataValueField="DivisionName" AppendDataBoundItems="true"
                                        runat="server" SelectedValue='<%# (container).OwnerTableView.GetColumn("DivisionName").CurrentFilterValue %>'
                                        OnClientSelectedIndexChanged="Division">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="---" />
                                        </Items>
                                    </telerik:RadComboBox>
                                    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

                                        <script type="text/javascript">
                                    function Division(sender,args) {
                                        var tableView=$find("<%# (container).OwnerTableView.ClientID %>");
                                        if (args.get_item().get_value()!="-1")
                                        {
                                         tableView.filter("DivisionName",args.get_item().get_value(),"EqualTo");
                                        }
                                        else
                                        {
                                        tableView.filter("DivisionName",args.get_item().get_value(),"NoFilter");
                                        }
                                        
                                    }
                                        </script>

                                    </telerik:RadScriptBlock>
                                </FilterTemplate>
                            </telerik:GridBoundColumn>
                            ........
                            .............
                            ..................

                        </Columns>
                        <EditFormSettings FormMainTableStyle-BackColor="#FFFFE0" FormStyle-Height="100%"
                            FormStyle-Width="100%" FormCaptionStyle-Height="100%" EditColumn-Resizable="true"
                            UserControlName="../usercontrols/Campaigns_Edit.ascx" EditFormType="WebUserControl">
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <ClientSettings AllowColumnsReorder="true" ColumnsReorderMethod="reorder">
                        <DataBinding FilterParameterName="campaignname" FilterParameterType="String">
                        </DataBinding>
                        <ClientEvents OnRowDeselected="RowDeselected" OnRowSelected="RowSelected" />
                        <Selecting EnableDragToSelectRows="true" AllowRowSelect="True"></Selecting>
                    </ClientSettings>
                    <AlternatingItemStyle CssClass="GridMediumAlternate" />
                    <SelectedItemStyle CssClass="GridMediumSelected" />
                </telerik:RadGrid>


                    only the edit column and the campaign name column details are visible when we select the checkbox, the rest of the columns which are like 21 columns are hidden,

please help me out on this issue as this is important to the client.

thank you for your help in advance.




               
Vlad
Telerik team
 answered on 23 Oct 2009
1 answer
158 views
In code like this...

                pagesGridView.GroupDescriptors.Add(  
                    new GroupDescriptor {   
                        Member = "CmsPageParent.Title",   
                        SortDirection = ListSortDirection.Ascending   
                    }  
                ); 

How do I set the "title" property of the group? I need to simulate the grouping of a column named “Parent” – as far as I can see I cannot mark a column as a default grouping set so I need to do it programmatically. However when I do it this way the resulting item in the group header says “CmsPageParent.Title” not “Parent” as the header for the same column would.

Ideas?

Pavel Pavlov
Telerik team
 answered on 23 Oct 2009
1 answer
113 views
How do I install the trial version of WPF into VS2008?

The .zip file contains a Bin3/Documentation/Demos folders, but I can't find an installation file.

I can't seem to locate any help file to assist.

Thanks.
Milan
Telerik team
 answered on 23 Oct 2009
2 answers
154 views
Getting used to the impressive speed and ease at which we can create a brilliant interface with the telerik winforms controls , I find myself wondering about WPF.

WPF is awesome in terms of flexibility and customisation capabilities. It's awesome in terms of performance too. Because of that , all I saw in my mind of the WPF versions of the telerik controls was just winforms x 10.

But we get to the new release of the second beta of the eagerly awaited Q3 release and while the new ribbonbar is as great as expected , it's a far contrast from the winforms one. Suddenly the gap in designer capability differences in what microsoft provides for wpf and winforms becomes exceptionally painful.

Doing a simple ribbonbar is suddenly a ream of code and by no means rad. :/ So all of a sudden when the complexitiy of controls goes up (and let's face it one of the strengths of wpf is in the ability to easily build complex/layered controls) then suddenly it becomes MORE time consuming to create these controls.

So I suppose my point is the concept of xaml is lovely when the complexity of the controls is below a certain level , in fact at that level or below you can create more complex controls than winforms with much less code and time investment. But past a certain point , the code and time investment needed is far greater.

I love the new WPF ribbon bar but creating a ribbon feels really tedious not to mention that once complexity builds on the ribbon , parts of it just don't feel or look intuitive at all. Right now I would dread developing a serious ribbonbar for a serious application and then needing to do even simple changes to it.

Anyone else feel like microsoft are really slacking with wpf designer capability ? Or am I just missing something ?
Antonio
Top achievements
Rank 1
 answered on 22 Oct 2009
1 answer
73 views
I have two tables having one to one mapping :
for instance:
1) VEHICLE_DATA:Vehicle_type,termleased(columns)
2)VEHICLE_TYPE:Vehicle_type,vehicle_name,Owned

Now I am having IList<VEHICLE_DATA>(having VEHICLE_TYPE property) list  which I m binding to Gridview
radGridView1.ItemsSource=list;

and in Xaml in one of the column of grid I am specifying {Binding Path=vehicle_name}
It doesn't give any error,but doesn't display vehicle_name in grid.

Please help me for this ASAP.

Vlad
Telerik team
 answered on 22 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?