Telerik Forums
UI for WPF Forum
3 answers
110 views
Dear All,
Is there any way to change background brush (color or image) of an specific row in code behind (by row & cell number)?
Is there any way to got focus to an specific row (by row & cell number)?

Thanks
Vlad
Telerik team
 answered on 22 May 2012
2 answers
125 views
Hi,

I have two questions regarding ScheduleView Component

1. Is their a way to select all recurrence views associated to that appointment when any of its item is selected, i have attached a snapshot     to show how i require it when any one is selected
2. Is there a way to hide resize button (we dont want that feature)

Thanks
Moem
Top achievements
Rank 1
 answered on 21 May 2012
1 answer
88 views

key: WPF, RadRichTextBox, RadDocument

I did the following steps to print merged RadDocument but it does not print and calling Print method hangs on forever. I had to kill the process.  Printing 1 Document works fine but same issue happens when I try to print 2 merged documents.

1. I am merging a list of RadDocuments  in to one RadDocument using methods answered in this forum.       
2. Then setting RadRichTextBox’s  document to the above created merged RadDocument.
3. Then printing using RadRichTextBox’s print method. radRichTextBox.Print("richtextbox", PrintMode.Native)

FYI, for Part 1) I did try this:
    foreach(var document in radDocuments)
    {
        mergedDocument.CaretPosition.MoveToLastPositionInDocument();

        mergedDocument.InsertInline(new Telerik.Windows.Documents.Model.Span(FormattingSymbolLayoutBox.PAGE_BREAK));

        mergedDocument.InsertFragment(new DocumentFragment(document));

}

and also  this:
 RadDocument mergedDocument = new RadDocument();
 foreach (RadDocument document in documents)
 {
     foreach (Section section in document.Sections)     {
         Section copySection = section.CreateDeepCopy() as Section;
         document.Sections.Remove(section);
         mergedDocument.Sections.Add(copySection);
     }
 }

Am i merging RadDocuments correctly? What could be the issue?
If this is a known Issue, then whats the best way to Merge and Print RadDocuments?

By the way : Document 1 had 7 pages and Document had 4 pages with 4 images total. It seems that as soon as I merge it does not print.

Iva Toteva
Telerik team
 answered on 21 May 2012
1 answer
129 views

key: WPF, RadRichTextBox, RadDocument

I did the following steps to print merged RadDocument but it does not print and calling Print method hangs on forever. I had to kill the process.  Printing 1 Document works fine but same issue happens when I try to print 2 merged documents.

1. I am merging a list of RadDocuments  in to one RadDocument using methods answered in this forum.       
2. Then setting RadRichTextBox’s  document to the above created merged RadDocument.
3. Then printing using RadRichTextBox’s print method. radRichTextBox.Print("richtextbox", PrintMode.Native)

FYI, for Part 1) I did try this:
    foreach(var document in radDocuments)
    {
        mergedDocument.CaretPosition.MoveToLastPositionInDocument();

        mergedDocument.InsertInline(new Telerik.Windows.Documents.Model.Span(FormattingSymbolLayoutBox.PAGE_BREAK));

        mergedDocument.InsertFragment(new DocumentFragment(document));

}

and also  this:
 RadDocument mergedDocument = new RadDocument();
 foreach (RadDocument document in documents)
 {
     foreach (Section section in document.Sections)     {
         Section copySection = section.CreateDeepCopy() as Section;
         document.Sections.Remove(section);
         mergedDocument.Sections.Add(copySection);
     }
 }

Am i merging RadDocuments correctly? What could be the issue?
If this is a known Issue, then whats the best way to Merge and Print RadDocuments?

By the way : Document 1 had 7 pages and Document had 4 pages with 4 images total. It seems that as soon as I merge it does not print.

Thanks

Iva Toteva
Telerik team
 answered on 21 May 2012
4 answers
101 views
Hello!

I have many expression columns in my grid.

In the RowLoaded-Event I want th check, if the result of the expression is lower than 0. If yes, the text (forecast) color should be set to red.
How can I access the result of the expression?

private void gridview1(object sender, RowLoadedEventArgs e)
{
   var myExpressionCellList = e.Row.ChildrenOfType<GridViewCell>.Where(c => c.Column.UniqueName == "eAbwVjKgMon1").toList();
   foreach(GridViewCell cell in myExpressCellList)
   {
      cell. .... ?????
   }
}

I tried different things, but I'm not able to get the value for checking.

What I'm doing wrong? Please help.

Kind regards

Michael

Dimitrina
Telerik team
 answered on 21 May 2012
1 answer
172 views
Hi,

I'm using the latest version of Telerik and I want to know if it's possible to have the "WatermarkContent" the same opacity than the RadDatePicker???

Thank's
Boyan
Telerik team
 answered on 21 May 2012
1 answer
144 views
Hello everyone,

In my application, I need to retrieve the pdf document from the viewer in a memory stream, so I can save it into a table in the database.

Can someone please show couple lines of code to do this? (retrieving the pdf, and converting to a memory stream)

Thanks,
Kammen
Telerik team
 answered on 21 May 2012
0 answers
94 views
hi ,

         i am new to telerik controls...

i am interested in implementing header and footer in data pager... can any one suggest any thing.. how to implement header and footer in data pager...

--
V,sharath kumar
+91-9297057111
Sharath
Top achievements
Rank 1
 asked on 21 May 2012
3 answers
239 views
Hi,

how can i create a MenueItem with perhaps an expander, like you can see on the attached file? Or is there any "easy simple" example to create a own MenueItem Style?

Thanks
Rene
Yana
Telerik team
 answered on 21 May 2012
1 answer
91 views
Hi Guys,

I am using wpf to create a live data reporting software. I used the radchart control to show the live line graph. Following is the example code:
xaml code:

<chart:RadChart x:Name="chart1" AxisElementBrush="#FFD43636">

<chart:RadChart.SeriesMappings>

<charting:SeriesMapping LegendLabel="Value">

<charting:SeriesMapping.SeriesDefinition>

<charting:LineSeriesDefinition ShowItemLabels="False"></charting:LineSeriesDefinition>

</charting:SeriesMapping.SeriesDefinition>

<charting:ItemMapping FieldName="index" DataPointMember="XValue"></charting:ItemMapping>

 <charting:ItemMapping FieldName="value" DataPointMember="YValue"></charting:ItemMapping>

 </charting:SeriesMapping>

 </chart:RadChart.SeriesMappings>

 </chart:RadChart>
Code_behind is:

List<indexsandnumbers> data = new List<indexandnumbers>();
for (int i = 1; i < 999999; i++)

{
   index = i;
   value = i*1.3;
   data.add(new indexsandnumbers(index,value));

   chart1.Itemsource = data;
   chart1.rebind();
}

However, I can only see the Xvalue increase and there is no Yvalue in the chart1 after I run the application.

The only way to show the line chart is I stop the loop, I can not get the line chart during the loop.

Any helps is appreciated.


Thank you very much.

Rosko
Telerik team
 answered on 21 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?