Telerik Forums
UI for WPF Forum
1 answer
146 views
Hi, I am having trouble with the htmldataprovider and GIF Files:

When I insert a gif picture, export it as HTML, and reimport it again, then the Picture is gone, but the placeholder (empty white space) is still there, The exported HTML contains the GIF-ImageData so the export is working correctly, but the import just wont reimport it, and the next time you export the reimported HTML, the <img> is then lost.

The first export:
<!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_A215EAA9 { margin: 0px 0px 20px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; }
.s_79B9C72D { font-family: 'Calibri';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000; }
</style></head><body><p class="p_A215EAA9"><img width="12" height="14" src="data:image/gif;base64,R0lGODlhDAAOAPcAAAAAAAAAMwAAZgAAmQAAzAAA/wArAAArMwArZgArmQArzAAr/wBVAABVMwBVZgBVmQBVzABV/wCAAACAMwCAZgCAmQCAzACA/wCqAACqMwCqZgCqmQCqzACq/wDVAADVMwDVZgDVmQDVzADV/wD/AAD/MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMrADMrMzMrZjMrmTMrzDMr/zNVADNVMzNVZjNVmTNVzDNV/zOAADOAMzOAZjOAmTOAzDOA/zOqADOqMzOqZjOqmTOqzDOq/zPVADPVMzPVZjPVmTPVzDPV/zP/ADP/MzP/ZjP/mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YrAGYrM2YrZmYrmWYrzGYr/2ZVAGZVM2ZVZmZVmWZVzGZV/2aAAGaAM2aAZmaAmWaAzGaA/2aqAGaqM2aqZmaqmWaqzGaq/2bVAGbVM2bVZmbVmWbVzGbV/2b/AGb/M2b/Zmb/mWb/zGb//5kAAJkAM5kAZpkAmZkAzJkA/5krAJkrM5krZpkrmZkrzJkr/5lVAJlVM5lVZplVmZlVzJlV/5mAAJmAM5mAZpmAmZmAzJmA/5mqAJmqM5mqZpmqmZmqzJmq/5nVAJnVM5nVZpnVmZnVzJnV/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwAM8wAZswAmcwAzMwA/8wrAMwrM8wrZswrmcwrzMwr/8xVAMxVM8xVZsxVmcxVzMxV/8yAAMyAM8yAZsyAmcyAzMyA/8yqAMyqM8yqZsyqmcyqzMyq/8zVAMzVM8zVZszVmczVzMzV/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8Amf8AzP8A//8rAP8rM/8rZv8rmf8rzP8r//9VAP9VM/9VZv9Vmf9VzP9V//+AAP+AM/+AZv+Amf+AzP+A//+qAP+qM/+qZv+qmf+qzP+q///VAP/VM//VZv/Vmf/VzP/V////AP//M///Zv//mf//zP///wAAAAAAAAAAAAAAACH5BAEAAPwALAAAAAAMAA4AAAhmALNJy5YK2zSBr6YZnPbKYMNU2bBBfOUq27SKBRNieyWNocFsBLO5OpgNlcWKJj9yJCjxJESTGl8hjOjxIERpMmEOhNhyZEmQBS9azLayYMifPiv+xGmzpVGGCleKbCrUI8+CqQICADs=" /><span class="s_79B9C72D" /></p></body></html>

second after reimport:
<!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_A215EAA9 { margin: 0px 0px 20px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; }
.s_E6FD2046 { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000; }
</style></head><body><p class="p_A215EAA9"><span class="s_E6FD2046" /></p></body></html>
Iva Toteva
Telerik team
 answered on 06 Sep 2011
2 answers
110 views
Hi

Please help me for search item in RadTreeListView with multi column view.

Thanks
Vijay
Rossen Hristov
Telerik team
 answered on 06 Sep 2011
4 answers
207 views

Hi,
When I’m using font size smaller that 12 in the radRichText box - the caret is disappears.

When I’m enlarging the font size to 12 or more - the caret appeared again.

Do you know what’s causing this and how can I fix this?

Thanks

Rotem
Top achievements
Rank 1
 answered on 06 Sep 2011
6 answers
202 views

Hi, I’m using custom column that contains telerik rich text box.
My problem is that when I mark some text in the rich text box and clicking on one of the formatting options in the formatting popup dialog the focus of the richtext box is lost and the formatting is not applied on the selected text.

Here is my code

public class RichTextColumn : Telerik.Windows.Controls.GridViewBoundColumnBase  //GridViewColumn

{

  public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)

  {

     var richTextBox = cell.Content as RadRichTextBox;

     if (richTextBox == null)

     {

          richTextBox = new RadRichTextBox();

          richTextBox.IsReadOnly = true;

          richTextBox.SetBinding(RadRichTextBehaviours.RTFDocumentProperty, DataMemberBinding);

          richTextBox.IsHitTestVisible = false;

          richTextBox.AcceptsTab = false;

          richTextBox.Background = new SolidColorBrush(Color.FromArgb(0, 0, 0, 0));

          richTextBox.IsSpellCheckingEnabled = false;

          richTextBox.VerticalAlignment = VerticalAlignment.Top;

          richTextBox.BorderThickness = new Thickness(0);

          RadRichTextBehaviours.SetCancelSelectionOnLostFocus(richTextBox, true);

          cell.Content = richTextBox;

     }

     else

     {

          richTextBox.IsReadOnly = true;

     }

     return richTextBox;

  }

  public override FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem)

  {

     var richTextBox = new RadRichTextBox();

     richTextBox.SetBinding(RadRichTextBehaviours.RTFDocumentProperty, DataMemberBinding);

     richTextBox.AcceptsTab = false;

     richTextBox.Background = new SolidColorBrush(Color.FromArgb(0, 0, 0, 0));

     richTextBox.IsSpellCheckingEnabled = false;

     richTextBox.VerticalAlignment = VerticalAlignment.Top;

     richTextBox.BorderThickness = new Thickness(0);

     RadRichTextBehaviours.SetCancelSelectionOnLostFocus(richTextBox, true);

     return richTextBox;

  }

}

Can you please help?
Thanks, Rotem.

Vanya Pavlova
Telerik team
 answered on 06 Sep 2011
2 answers
323 views
Hi there,

is it possible to disable Row details unload while the user scrolls through the grid ?
With one row being expanded and showing row details, all works fine, except when the user scrolls down and up again.
I'd like to save the time to handle unload/load code, because inside RadGridView we have a tab control with several tabs.

Best regards
Oliver
Oliver Abraham
Top achievements
Rank 2
 answered on 06 Sep 2011
1 answer
108 views
Hi,

I would like to extend ChartLegendItem to handle series visibility management (by some additional control). As thisclass is not sealed, is it possible to inherit by it and apply custom ControlTemplate?

Thanks & Regards
G.
Ves
Telerik team
 answered on 05 Sep 2011
1 answer
66 views

I have a question on chart zooming.  When I zoom,  radchart creates blank whitespace before the series. The size of the space varies with the range of my zoom.  I have attached a picture to show what I mean. 

Can I force the chart to paint across the whole plot area and not leave 20% of my chart space blank?

Thanks,
Dave

http://i54.tinypic.com/2dvu0lz.png
Ves
Telerik team
 answered on 05 Sep 2011
1 answer
113 views
Picture the scenario like this: A playlist with songs that GridWiew shows and when I outside the application update the "playlist" I need GridView to smoothly show the updated data.  Data contains "songname", "playdate", "sortOrder"

Showing and edit the playlist is easy, but how do I do the "live" update best?  It could contains many rows like 20000;

var query = from o in contex.playlists
                        where o.date >= _today
                        orderby o.playdate, o.sortOrder
                        select o;
 
            _playlists = new ObservableCollection<playlist>(query.ToList());
 
            radGridView1.ItemsSource = _playlists;

Any ideas?

/Ken
Maya
Telerik team
 answered on 05 Sep 2011
3 answers
131 views
Hello!

I was using a very old telerik library from 2009. Now I have upgraded (or I am trying) to use the newest telerik library.

Since I have upgraded to the latest internal build, I am having issues with the insert key on an empty GridView.
Everything works fine, but if I remove all items from the grid, I can not create a new one with the insert key.

It seems that its not a general GridView issue, because I have created a test application, where it works without any problems.
Probably its a combination with some containers which causes this odd behavior. I have tried to rebuild my container structure in my test application, but could not reproduce the problem.

I have tried to catch the insert key in the keydown event, but the key down event is not fired when the grid is empty.

Now comes the real odd behavior:
If there is a scrollbar in the GridView and I click an arrow in the scrollbar or click in the scrollbar (so that the bar jumps to that position), the insert key works! However, it does not work if I sort columns, move columns, click anywhere in or on the GirdView or even just drag the scrollbar.

Any ideas?

Many thanks,
Franziska
Franziska
Top achievements
Rank 1
 answered on 05 Sep 2011
1 answer
178 views
I am using one TreeListView in my WPF application. One of my column is binded with decimal values. So when I edit a cell and enter any invalid value like a string then the cell is getting Red border automatically and does not allow me to lost focus. I want some more validations that should be done on a cell like the following

• Value can have up to one decimal (example: 10.1)
• Allow only numeric values (0 - 9)
• Value entered cannot be > 1000

If the above condition fails then the red border should come. By default the second constion is working fine. Please help me how I will be able to work out the first and last conition.
Maya
Telerik team
 answered on 05 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?