Telerik Forums
UI for WPF Forum
1 answer
159 views

Hello,



We have Q3 2012. 



I'm trying to use a static property to specify the ResultFormatString for an AggregateFunction,

<telerik:GridViewDataColumn.AggregateFunctions>
        <telerikData:SumFunction ResultFormatString="{x:Static l:CustomFormat.CurrencyWithMinus}"/>
</telerik:GridViewDataColumn.AggregateFunctions>

But the property's value (e.g. $#,##0.00) is displayed as a literal in the gridview cell.

We can't use the string format "c" because we need negative values to be prefixed with "-"
rather than having parentheses around them. Can you please tell me if there's some way to make this work?

Thanks much!










E Pons
Top achievements
Rank 1
 answered on 03 Jan 2014
1 answer
87 views
For using Commands with DataForm, i need references of buttons which with a "PART_" prefix.
Find DataForm.FindName("PART_CommitButton")" returns null. Is there any way?
Zhang
Top achievements
Rank 1
 answered on 02 Jan 2014
2 answers
191 views
Hi I have been browsing the forums for quite sometimes now.. I am trying to figure out how to attach RadDragAndDropManager.DropQuery
to my method under my view model. I am using Caliburn micro 

<telerik:RadTreeView Name="Nodes"
                     IsEditable="True"
                     IsLoadOnDemandEnabled="True"
                     ItemTemplate="{StaticResource ItemTemplate}"
                     ItemEditTemplate="{StaticResource EditTemplate}"
                     IsDragDropEnabled="True"
                     telerik:TreeViewSettings.DragDropExecutionMode="New"
 
                     telerik:RadDragAndDropManager.AllowDrop="True"
                     telerik:RadDragAndDropManager.AllowDrag="True" ...>
 
 
    <i:Interaction.Triggers>
        <commands:DragDropQueryRoutedEventTrigger EventName="DropQuery" EventOwnerType="{x:Type telerik:RadDragAndDropManager}">
            <micro:ActionMessage MethodName="OnDropQuery" >
                <micro:Parameter Value="$eventArgs" />
            </micro:ActionMessage>
        </commands:DragDropQueryRoutedEventTrigger>
    </i:Interaction.Triggers>
 
</telerik:RadTreeView>

my method is something like this:

public void OnDropQuery(DragDropQueryEventArgs args)
{
    ...
    ...
    args.Handled = true;
}

but method is not being called... any ideas?

Konrad
Top achievements
Rank 1
 answered on 02 Jan 2014
1 answer
133 views
We are using the telerik:StyleManager.Theme = "Windows8Touch" for TextBox.
The validation errors using IDataErrorInfo are being displayed as seen in the attached screenshot.
Is there a way to have the flyouts automatically align to the Left of the control, if there is no space on the right?
Vanya Pavlova
Telerik team
 answered on 01 Jan 2014
1 answer
189 views
Hi,

We  are using Telerik TreeView in which checkbox have been added. When we enter the space bar, check box is not checked.
But when we enter three times space bar then checkbox will be checked.
The same scenario, when we trying to simple WPF tree view control all working as well. But in Telerik Treeview we have noticed, while entering the space bar in first hit Index will be focused, in second hit focus will be lost and when we enter third time space, the checkbox will be checked.
NOTE: In our treeview control have not child items of their parents.
 I have tried lots but no effect....

Please help Is it either Telerik Treeview issue or we are missing something.
Tina Stancheva
Telerik team
 answered on 31 Dec 2013
3 answers
92 views
I use ObservableCollection<XElement> as ItemsSource. I found that the Group Panel does not accept selected column headers. Is there any possibilities that i can still use XElement as DataSource.
Dimitrina
Telerik team
 answered on 31 Dec 2013
1 answer
69 views
When I update Itemssource about 300ms to add one point to ScatterLine,but when add A few minutes,the view occurred some  block,
could you Have Solution?


Pavel R. Pavlov
Telerik team
 answered on 30 Dec 2013
1 answer
112 views

Hi ,
Am using a RadGridview control to populate my data and using the ElementExporting event to customize the data while exporting to Excel.

My customization need goes like, I want to add some metadata(some info the grid like report name, date generated, owner etc , at the top A1 cell ) to the grid data that is getting exporting . beneat that my actual grid data should be shown, and it should be sorted as my need.
I could able to append the metadata using the

grdRiskClarityReport.Export(stream,

new GridViewExportOptions()

{

Format=

ExportFormat.Html,

ShowColumnHeaders =

true,

ShowColumnFooters =

true,

ShowGroupFooters =

false,

});


and my event goes like this,

private void grdRiskClarityReport_ElementExported(object sender, GridViewElementExportedEventArgs e)

{

if (e.Element == ExportElement.HeaderCell && temp== 0)

{

// if (obj != null)

{

e.Writer.Write(

String.Format(@"<tr><td style=""background-color:#CCC;"" colspan=""{0}"">","dfdfd"));

e.Writer.Write(

String.Format(@"<b>Proposal Name:</b> {0} <br />", "dfdfd")); //need to input properdata

e.Writer.Write(

String.Format(@"<b>Proposal Status:</b> {0} <br />", "dfdfd"));

e.Writer.Write(

"</td></tr>");

temp = 1;

// using the restrict the metadata to the first cell

}

}

}



Could you please provide me a sample in wpf version that serves my need ?


Thanks in advance,
Srinivas J
Yoan
Telerik team
 answered on 30 Dec 2013
3 answers
189 views
Hi,

I am using the Virtual Queryable Collection View with the telerik Grid Views. When I scroll using the Mouse Wheel and the Scroll Direction is Down it calls the Items Loading event which lets me fetch the next set of view models; However when the scroll direction is UP using the Mouse Wheel I would like to load the set of View Models which are above the current item. This will avoid firing the Items Loading event for every single Item when scrolling UP using the Mouse Wheel.


Please refer the image file attached for more details.

Thanks,
PD.




Dimitrina
Telerik team
 answered on 30 Dec 2013
6 answers
299 views
I am somewhat new to WPF and styling, but I understand most of the basics.

I have managed to modify the expander as well as a few other items.

But one simple thing has escaped me - styling the foreground of the RadTreeViewItem.

This:
<Style TargetType="{x:Type telerik:RadTreeViewItem}">
   <Setter Property="Foreground" Value="#ffff0000"/>
</Style>
is not only not setting the font color, but no items show up.

Any help?  I'm sure it's simple.

Also, I second the suggestion for more examples and perhaps more documentation.

This is my favorite page: http://www.telerik.com/help/wpf/radtreeview-structure.html

Thanks!


Tak
Top achievements
Rank 1
 answered on 30 Dec 2013
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?