Telerik Forums
UI for WinForms Forum
21 answers
570 views

Is it possible to properly display HTML that was exported from a RadRichTextBox in a GridView cell?

The user is allowed to use many of RadRichTextBox's formatting features when entering data into a RadRichTextBox. This data is saved to the database using the HtmlFormatProvider.  I am currently saving the HTML as an HTML fragment with inline formatting.  The HTML is later pulled from the database and used to populate the RadRichTextBox. I am able to retain the HTML formatting with no problem.

However, the HTML is not formatted properly when displayed in a GridView. It is simply displayed as text, including all HTML tags.  Setting DisableHTMLRendering to false for the appropriate columns does not work.

I noticed that simple HTML displays correctly. For example, the following mark-up displays "text" in blue letters as expected:

"<html><color=0,0,255>text"

The following is a simple example of HTML exported from the RadRichTextBox using the HtmlFormatProvider:

<p style="margin: 0px 0px 0px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px;"><span style="font-family: 'Times New Roman';font-style: normal;font-size: 16px;color: #0000FF;">Text</span></p>


 

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Feb 2021
9 answers
1.1K+ views
I want implements at runtime a querybuilder like Sql .
I found  this control on http://www.activequerybuilder.com/product_net.html
Telerik has this control?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Feb 2021
2 answers
128 views

Hi,

I'm really loving the SyntaxEditor component but i'm looking for a way to print specific parts of my SQL bold.

 

Take for instance the query: SELECT * FROM Customers WHERE CustomerId=%CustomerId%

I want the %CustomerId% part printed bold. Is this possible?

Thanks,

 

Ben

Neil
Top achievements
Rank 1
 answered on 25 Feb 2021
3 answers
341 views
Hi..
Is there any way to use an image - picturebox as a tool tip?
thanks
Nadya | Tech Support Engineer
Telerik team
 answered on 25 Feb 2021
1 answer
293 views

I am using the following code and cannot get the WaitingBar to start animation.  I was running a Task, but tried adding a DoEvents and a Sleep to see if I could get it going.  Not sure why.  I am using the same WaitingBar in other places in my app and it works fine, but not here.

                            radWaitingBar1.Visible = true;
                            radWaitingBar1.Text = "Downloading files";
                           // radWaitingBar1.ResetWaiting();
                            radWaitingBar1.StartWaiting();
                            Application.DoEvents();
                            Thread.Sleep(5000);
                            //task = Task.Run(() => Run("um.zip"));
                            //task.Wait();
                            radWaitingBar1.StopWaiting();
                            radWaitingBar1.Visible = false;

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Feb 2021
1 answer
115 views
When I click in the top row to type in a new row value, the CurrentRowChanged event is fired.  I have other code in this event, that I do not want to run when adding a new row.  So I need to trap this so the code will not run in the event.  I did not have this problem until I updated to the latest controls.  
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Feb 2021
12 answers
701 views

hi

i use paging in my winform grid view.everytrhing is ok.

but i wanna customize the panel paging. for example disable ShowFastBackButton and ShowFastForwardButton in panel paging.

in this page it said that :

There are a number of properties, which allow you to customize the paging panel to your specific needs. You can access these properties through the RadGridView.GridViewElement.PagingPanelElement.

i want change these properties in design time not by code, but i cant find any of these properties in property grid or in property builder.

i have another question and that is about TextBoxStripElement in paging panel. iwant localize that and put my text intead of page and of in TextBoxStripElement.

is there any solution for these two question?

Best Regard

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Feb 2021
4 answers
242 views

Hi: 

I am having an issue with "changing the selected line color", which was replied earlier in the forums.
I am doing the same as explained here, but the background color does not change while the text of the line changes.

private void rgvCompanyList_ViewRowFormatting(object sender, RowFormattingEventArgs e)
        {
            if (e.RowElement.IsSelected && e.RowElement.IsCurrent)
            {
                
                e.RowElement.DrawFill = true;
                e.RowElement.GradientStyle = GradientStyles.Solid;
                e.RowElement.BackColor = Color.Black; // It doesn't work !
                e.RowElement.ForeColor = Color.White; // It works
                // e.RowElement.NumberOfColors = 1; that didn't work either 
            }
            else
            {
                e.RowElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);
                e.RowElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
                e.RowElement.ResetValue(LightVisualElement.GradientStyleProperty, ValueResetFlags.Local);
                e.RowElement.ResetValue(LightVisualElement.ForeColorProperty, ValueResetFlags.Local);
                // e.RowElement.ResetValue(LightVisualElement.NumberOfColorsProperty, ValueResetFlags.Local);
            }
        }

özer
Top achievements
Rank 2
Veteran
Iron
 answered on 24 Feb 2021
3 answers
350 views

How can I add clickable map pins (or points) to RadMap in WinForm? 
I have already added Points  to the radMap but I want to create Events (Mouse click) and (Mouse hoover) on those points. 

Could you please help?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Feb 2021
1 answer
254 views

Hi,

I have a situation where I am struggling with data synchronisation. Using the merging functionality of a dataset with DataTables, my app is able to run in offline mode and synch back to the SQL server database using the AcceptChanges and Merge operations. When calling the merge operation, you can PersistChanges. When you do that, what is in the offline datasets overrides the database. When you do not persist changes, what is in the database overrides the local inline changes.

Now, this is fine for a single user but what if the application (a time management console in my case) was installed on multiple servers and the database is updated by multiple instances of the application?

I know Microsoft Synchronisation services used to handle this, but now I am stuck. I could get column changes and populate a temporary table with changes processed by a job or windows service. However, is there an easier way?

FYI, I use a Telerik radGrid to display activity data with numerous other tables that run in memory such as client/project/content data. However, the main data I am trying to sync is the activities.

Has anyone been able to achieve something similar by using datasets and the DataTable merge operation? I would love to hear from you.

Cheers, James

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Feb 2021
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? 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?