Telerik Forums
UI for WPF Forum
3 answers
145 views
I love the examples you have showing how you can group by a category.  Is it possible to add multiple categories to an appointment and group by it?  For example, lets say using your TV Schedule example, a show might be Sports and Documentary.   So when Grouping, I would like to see the Appointment come up in both Sports and Documentary.   Obviously, I have to be able to select multiple categories.  But how to group by them as well?  Would be a HUGE Help if you could give me some direction.
Rosi
Telerik team
 answered on 24 Mar 2014
1 answer
148 views
Hi,

I tried to create a schedule view grid with recursive block feature.

For Radscheduleview - EnableSimpleReccurrenceRendering="True" RecurringSelectionModifier="Shift"
Active view definition - <telerik:WeekViewDefinition Orientation="Vertical" GroupHeaderDateStringFormat="{}{0:yyyy MMMM dd}" TimerulerMajorTickStringFormat="{}{0:%h t}" DayStartTime="05:00" DayEndTime="05:00"  VisibleDays="30"/>

I am able to create recursive blocks in all the areas, except last row 04 30 to 05 00 AM in the grid.
If i set grid start and end as 05 00 AM to 04:59 AM then it is working fine.

Pls suggest me the way to achieve this.

-Sugumar Panner selvam
Konstantina
Telerik team
 answered on 24 Mar 2014
2 answers
284 views
The problem that I'm encountering is the xhtml that I'm passing in to the telerik RadRichTextBox is being modified by removing parts of the <a> anchor tag.  Specifically, the href and a custom property (not shown in my example).  I've include the xhtml that I send into the editor and what I get out from the editor.  The links in the editor do not work so I know that the link tag is being stripped when I set the xhtml to the document.

Here is the Get/Set that I use.
public string HtmlText
{
            get
            {
                 string xhtml = new HtmlFormatProvider().Export(Document);
                 return xhtml;
             }
             set
             {
                  Trace.WriteLine(xhtml);               
                  Document = new HtmlFormatProvider().Import(xhtml);
                  Trace.WriteLine(new HtmlFormatProvider().Export(Document));
             }
}


xhmtl from the first Trace output (href="http://www.google.com" is there)
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body style="FONT-SIZE: 14pt; FONT-FAMILY: Terminal; COLOR: #000000; DIRECTION: ltr">
<span style="FONT-SIZE: 14pt; FONT-FAMILY: Terminal"> </span>
<p style="MARGIN-BOTTOM: 0px; DIRECTION: ltr; MARGIN-TOP: 0px">
<a id="BC3BE1011F754A44B7BE22BA0208FB21" name="BC3BE1011F754A44B7BE22BA0208FB21" href="http://www.google.com" style="cursor:pointer;">test link to google</a>fdsa
</p>
<p style="MARGIN-BOTTOM: 0px; DIRECTION: ltr; MARGIN-TOP: 0px">
&nbsp;
</p>
<p style="MARGIN-BOTTOM: 0px; DIRECTION: ltr; MARGIN-TOP: 0px">
<a name="98E8EC0711AA4508BDAE5A97A4FDA86F" href="http://www.google.com" style="cursor:pointer;">test link to google</a>
</p>
<p style="MARGIN-BOTTOM: 0px; DIRECTION: ltr; MARGIN-TOP: 0px">
&nbsp;
</p>
<p style="MARGIN-BOTTOM: 0px; DIRECTION: ltr; MARGIN-TOP: 0px">
<a name="3C42D11201D24B7E8848383B02A7F119" href="http://www.google.com" style="cursor:pointer;">test link to google</a>
</p>
</body>
</html>

xhtml out of the editor, the href is missing

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
p { margin-top: 0px;margin-bottom: 0px;line-height: 1.15; }
body { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px; }
.Normal { telerik-style-type: paragraph;telerik-style-name: Normal;border-collapse: collapse; }
.TableNormal { telerik-style-type: table;telerik-style-name: TableNormal;border-collapse: collapse; }
.NormalWeb { telerik-style-type: paragraph;telerik-style-name: NormalWeb;margin-top: 6.66px;margin-bottom: 6.66px;border-collapse: collapse; }
.s_9397EFD2 { telerik-style-type: local;font-family: 'Arial';font-size: 18.6666666666667px;color: #000000; }
.p_C499D8E6 { telerik-style-type: local;margin-top: 0px;margin-bottom: 0px; }
.s_24B402CC { telerik-style-type: local;font-family: 'Arial';font-size: 18.6666666666667px;color: #0000FF; } </style></head><body><p class="NormalWeb "><span class="s_9397EFD2">&nbsp; </span></p><p class="NormalWeb p_C499D8E6"><a name="BC3BE1011F754A44B7BE22BA0208FB21"><span class="s_24B402CC">test link to google</span></a><span class="s_9397EFD2">fdsa </span></p><p class="NormalWeb p_C499D8E6"><span class="s_9397EFD2">&nbsp; </span></p><p class="NormalWeb p_C499D8E6"><a name="98E8EC0711AA4508BDAE5A97A4FDA86F"><span class="s_24B402CC">test link to google</span></a><span class="s_9397EFD2"> </span></p><p class="NormalWeb p_C499D8E6"><span class="s_9397EFD2">&nbsp; </span></p><p class="NormalWeb p_C499D8E6"><a name="3C42D11201D24B7E8848383B02A7F119"><span class="s_24B402CC">test link to google</span></a><span class="s_9397EFD2"> </span></p></body></html>
Mihail
Telerik team
 answered on 24 Mar 2014
2 answers
68 views
I have a RadMaskedDateTimeInput for DateTime where I am displaying Time. Now when I click on inbuilt Clear Button, the focus stays on right most side.
Is there a way to get focus on left most side, as it was in the previous version (2013.2.724.40), but my current installed version is  2013.3.1204.40.
Any help will be much more appreciated.

Thanks
Bharat Mendapara
Top achievements
Rank 1
 answered on 24 Mar 2014
1 answer
188 views
Let's suppose I have a RadPaneGroup in a WPF view.

Now I want to do this:   

var x = new RadPane();

myRadPaneGroup.AddItem(x);

This must be done in the ViewModel NOT code behind.

How do we accomplish that?
Vladi
Telerik team
 answered on 24 Mar 2014
1 answer
158 views
Hi,

I'm pretty new to Telerik WPF programming, so please forgive me any dumb questions.

I have a GridView control which displays its data through a ValueConverter which retrieves the data from a complex data structure in memory. I use a DataTemplate which displays additional information from the complex data structure using the same ValueConverter.
This works just fine.
If I now edit a cell value in my GridView, the data gets correctly updated in my data structure, but the value displayed in RowDetails still shows the old value. Even if I close and reopen the RowDetails, the old value remains visible.
I guess this is because of this:
www.telerik.com/help/wpf/radgridview-row-details-programming.html
LoadingRowDetails - the LoadingRowDetails event is raised immediately after the FrameworkElement has been loaded from the Row DetailsDataTemplate. It is raised the very first time the row details are about to be shown. Once this event has been fired, it will never fire again for that row. However, if the row is recycled and then realized, it starts its "life" again, this event will be fired again the first time the details are about to be shown.

Do I need to manually fire the LoadingRowDetails event to get the data updated in the RowDetails? Any other thoughts how to do this? Any code examples or internet pointers how to do this?

Thanks for your help.

Best regards,
Markus
Dimitrina
Telerik team
 answered on 24 Mar 2014
3 answers
126 views
I have dragging working functionally (dragging from inside the application and from an external application), but I cannot for the life of me get the DragCue to show up when dragging from outside the program (it works fine when dragging items around the same application).  What I realized is the DragCue is null inside the DropInfo event when dragging items from external programs.  I tried to hook the DragInfo event (as shown in the WPF GridView Reorder Rows sample) to manually create the DragCue item, but this event is never fired for externally dragged items.  As a last attempt, in the DropInfo event I created a DragCue item if it is null, but it is never displayed.

Is there a way to show the DragCue for externally dragged items?


Travis
Kalin
Telerik team
 answered on 24 Mar 2014
2 answers
684 views
Maybe I'm missing something very simple, but I can't seem to set the focus to a cell after I've already entered a row. 

If add a row and use telerik:RadGridViewCommands.BeginInsert, the first time it works great, and puts the cursor on the 1st editable cell.
But after I insert it, and clicks the add again, it puts the cursor on the last column, or the column I last used in my edit.

I tried to set the focus on AddingNewDataItem trigger, but that doesn't seem to work, or I'm doing it wrong.
Should I just do: 
myGrid.Columns[1].Focus();  //1 is the column I want, the first is a delete button
because the row isn't in edit mode yet.
BeginningEdit doesn't work because that applies to any cell.  
danparker276
Top achievements
Rank 2
 answered on 21 Mar 2014
2 answers
151 views
Hi there!

When i'm over RadMaskedNumericInput control the scroll screen not work. In short, RadMaskedNumericInput's MouseWheel Event no trigger although the control is set  <telerik:RadMaskedNumericInput SpinMode="None"/>

Thank you.
Best regards.


Ezequiel
Top achievements
Rank 1
 answered on 21 Mar 2014
7 answers
356 views
Hi all,

I am using RadDataPager and GridView to export data spans multiple pages. I followed the demo here:
http://demos.telerik.com/silverlight/#GridView/ExportingPagedData

No errors are reported in Visual Studio. I compile and run the application, and click on my "export" button - at the prompt, I enter a file name for the .xls and hit "save." Then I get the following error:
                            An unhandled exception ("Unhandled Error in Silverlight Application
                            Code: 4004
                            Category: ManagedRuntimeError
                            Message: System.ArgumentOutOfRangeException: PageIndex cannot be negative when PageSize is positive.
Where would the PageIndex set to a negative number? I'm overlooking something obvious - a value I should have set somewhere or something - but I can't find it. I followed the demo closely and it seemed to be working for me until I tried to export the file.

Any ideas? I'm using Telerik Reporting Q3 and Visual Studio 2010. Thanks!
Hristo
Telerik team
 answered on 21 Mar 2014
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?