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>
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
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;
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
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);
}
}
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?
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