Telerik Forums
UI for WPF Forum
3 answers
131 views
I loaded the latest .net 4.0 WPF and installed.  Trying to setup a project I get the following error.
Microsoft Visual Studio
Error executing custom action Telerik.Windows.WPF.VSX.Actions.UpdateReferencesAction: Object reference not set to an instance of an object.
zozzancs
Top achievements
Rank 1
 answered on 13 Sep 2011
14 answers
192 views
Hi,

How can i group by entity type in a grid.
I have a few entity type derived from a base one.
I want to display all of them (common property) in a read-only grid grouped by their type.
I use TPT for my types (one table for each type), so I don't have a column containing the type.

Frederic
Hristo
Telerik team
 answered on 13 Sep 2011
3 answers
109 views
Hi,

I am using a RadTreeView setting the IsDragDropEnabled to true, instead of RadDragAndDropManager.AllowDrag.

My goal is to change the DragCue.DragActionContent to "Copy to" when the user presses the Control key.

_treeView.AddHandler(RadDragAndDropManager.DropQueryEvent,
                    new EventHandler<DragDropQueryEventArgs>(MainTree_DropQuery), true);
 
private void MainTree_DropQuery(object sender, DragDropQueryEventArgs e)
{
     if (Keyboard.Modifiers == ModifierKeys.Control)
     {
         TreeViewDragCue cue = e.Options.DragCue as TreeViewDragCue;
 
         cue.DragActionContent = "Copy To";
     }
e.QueryResult = true;
}

The DragActionContent property seems to return the current content but changes are not registered unless property is initially null.

Is this the proper method to alter the DragCue when using IsDragDropEnabled?

Thank you,
Justin
Petar Mladenov
Telerik team
 answered on 13 Sep 2011
2 answers
324 views
Since installing Q2 2011 drag & drop is no longer working in my app?

Could there be a link between these 2 events??

Should I move over to the new dragdrop??
Tsvyatko
Telerik team
 answered on 13 Sep 2011
1 answer
70 views
I am looking to create something where users can setup recurring alerts to remind them of specific tasks, and I was hoping I could use the Appointment and AppointmentDialog to accomplish this.

Do you know if it's possible to use the Appointment and Appointment Dialogs without actually using a ScheduleView? I tried creating and showing a new AppointmentDialog,but it just came up empty.

My other big concern is how I would get the Dates for an Appointment for automated alerts. Is there a way to test if an Appointment lands on a specific date, or to get the Dates from an Appointment?

Thanks
Rosi
Telerik team
 answered on 13 Sep 2011
0 answers
75 views

Hi,

Assume I have fixed number of rows & node structure, and number of columns and columns data would change. When I come back to the screen, it should retain the previous node expand/collapse state.

Is there any way to achieve this functionality?

Thanks,

Suman

suman
Top achievements
Rank 1
 asked on 12 Sep 2011
6 answers
338 views
Hello,
I am using TreeviewList in my WPF appication using MVVM. I want to show all nodes in expanded mode but by default it shows me only parent node. Is there any way to show all nodes (in expanded mode) automatically?
Mark
Top achievements
Rank 1
 answered on 12 Sep 2011
2 answers
155 views
With the WPF Q2 2011 release, the autoscroll for dragging treeview items has stopped working.  I have verified that by modifying your TreeView Drag and Drop example for both Q1 and Q2 releases.  If you give the RadTreeView1 control a Height of 200 ( enabling it to have a scroll bar ) and then drag an item to the bottom of the tree view, it will autoscroll for Q1 release, but does not for the Q2 release.

Please advise.

Troy
Hristo
Telerik team
 answered on 12 Sep 2011
2 answers
367 views
I'm using WPF 4.0, v2011.2.712.40.

I have a grid with two columns that have hyperlink controls in the datatemplate so I can launch to another view within my application when a user clicks on the link.  Periodically the hyperlinks do not trigger the command it is bound to.  If I refresh the list that the grid is bound to then the item with the issue will start to work but sometimes other items stop working.  Here is the column definition.  As you can see from the commented parts of the datatemplate I have also tried using a button but have issues there as well.  If I let the button (or radbutton) look like a regular button without styling it everything seems to work better but if I put a style on it to make it look like a link button the memory usage of my app increases dramatically as the grid is scrolled.

<telerik:GridViewDataColumn Header="Account" DataMemberBinding="{Binding AccountName}" FooterCellStyle="{StaticResource GridNoLinesFooterStyle}">
  <telerik:GridViewDataColumn.CellTemplate>
    <DataTemplate>
      <!--<Button Content="{Binding AccountName}" Command="{Binding DataContext.OpenAccountCommand, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}" 
              CommandParameter="{Binding}"/>-->
      <!--<telerik:RadButton Content="{Binding AccountName}" Command="{Binding DataContext.OpenAccountCommand, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}" CommandParameter="{Binding}" 
                         Style="{StaticResource hyperlinkButtonStyle}" />-->
      <TextBlock>
          <Hyperlink Command="{Binding DataContext.OpenAccountCommand, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}" CommandParameter="{Binding}"
              <TextBlock Text="{Binding AccountName}"></TextBlock>
          </Hyperlink>
      </TextBlock>
    </DataTemplate>
  </telerik:GridViewDataColumn.CellTemplate>
  <telerik:GridViewBoundColumnBase.AggregateFunctions>
    <telerik:CountFunction Caption="Count:" />
  </telerik:GridViewBoundColumnBase.AggregateFunctions>
</telerik:GridViewDataColumn>
Betsy
Top achievements
Rank 1
 answered on 12 Sep 2011
0 answers
115 views
Hi,
I am using context menu in my page. I have defined in following way.

<

 

telerik:RadTreeListView x:Name="rtlvPeopleInfo" >

 

 

 

<!--Context Menu-->

 

 

 

<telerik:RadContextMenu.ContextMenu>

 

 

 

<telerik:RadContextMenu x:Name="radPeopleContextMenu" Opened="radPeopleContextMenu_Opened" >

 

 

 

<telerik:RadMenuItem x:Name="rmiAssign_Engineer" Header="Assign Engineer"/>

 

 

 

</telerik:RadContextMenu>

 

 

 

</telerik:RadContextMenu.ContextMenu>

 

 

 

<telerik:RadTreeListView.Columns>

 

 

 

<telerik:GridViewDataColumn Header="Future Hrs" TextAlignment="Right"/>

 

 

 

<telerik:GridViewDataColumn Header="Previous Hrs" TextAlignment="Right"/>

 

 

 

</telerik:RadTreeListView.Columns>

 

 

 

</telerik:RadTreeListView>

Whenever I normally right click on any cell then it opens correctly and that is fine. But my requirement was if there is any unsaved data on page by cell edit, then when user right click on other cell it should show a message that "User changes will be lost, do u want to continue?". If yes then open the context menu as it is. So when there is any change on page then I show a messagebox with above confirmation message. Now if user selects "Yes" then the context menu opens on the top most left corner of the TreeListView, not on the cell right clicked. Please help me how I will open on same position the user mouse clicked, not the topmost left corner.

So the problem arises only when i open the messagebox confirmation.

 

Manishkumar
Top achievements
Rank 1
 asked on 12 Sep 2011
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?