
I’m trying to implement some custom paragraphs – adding h6 and blockquote tags.
It all works fine until the editor toolbar is shared - i have a page with multiple editable areas, and dont want to cripple speed of page load by having multiple toolbars. Is there a workaround?
Updated the toolset.xml:
| <paragraphs> |
| <paragraph value="<body>" name="Normal" /> |
| <paragraph value="<h1>" name="Heading 1" /> |
| <paragraph value="<h2>" name="Heading 2" /> |
| <paragraph value="<h3>" name="Heading 3" /> |
| <paragraph value="<h4>" name="Heading 4" /> |
| <paragraph value="<h5>" name="Heading 5" /> |
| <paragraph value="<h6>" name="Heading 6" /> |
| <paragraph value="<pre>" name="Formatted" /> |
| <paragraph value="<address>" name="Address" /> |
| <paragraph value="<blockquote>" name="Blockquote" /> |
| </paragraphs> |
| RadFirmGrid.ClientSettings.Scrolling.AllowScroll = true; |
| RadFirmGrid.ClientSettings.Scrolling.UseStaticHeaders = true; |
| RadFirmGrid.ClientSettings.Scrolling.SaveScrollPosition = true; |
| RadFirmGrid.ClientSettings.Scrolling.ScrollHeight = Unit.Pixel(500); |
| <div align="center"> |
| <div class="page"> |
| <table class="insertdata" cellspacing="0" cellpadding="0" width="100%" border="0"> |
| <tr> |
| <td class="sectionhdr" colspan="2" width="30%" align="left" style="border-bottom: 1px black solid;"> |
| Firm Profile<span style="color: #0000c0"><asp:Label ID="isd" runat="server" /></span> |
| </td> |
| </tr> |
| <tr> |
| <td class="spacerrow" colspan="2"> |
| </td> |
| </tr> |
| </table> |
| <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="false" runat="server"> |
| </asp:ScriptManager> |
| <telerik:RadAjaxManager ID="radAjaxManager" runat="server" ClientEvents-OnRequestStart="requestStart" |
| OnAjaxSettingCreating="radAjaxManager_AjaxSettingCreating"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadFirmGrid"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadFirmGrid" LoadingPanelID="ajaxLoadingPanel" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| <ClientEvents OnRequestStart="requestStart" /> |
| </telerik:RadAjaxManager> |
| <telerik:RadGrid ID="RadGrid" runat="server" ShowFooter="true" HorizontalAlign="Left" Width="100%" |
| MasterTableView-HierarchyLoadMode="ServerBind" |
| ClientSettings-AllowExpandCollapse="true" |
| Skin="Vista" AllowFilteringByColumn="true" |
| AutoGenerateColumns="False" AllowSorting="True" |
| AllowMultiRowSelection="False" AllowPaging="True" |
| OnNeedDataSource="RadGrid_NeedDataSource" OnUpdateCommand="RadGrid_UpdateCommand" |
| OnItemDataBound="RadGrid_ItemDataBound" |
| OnPreRender="RadGrid_PreRender" oninsertcommand="RadGrid_InsertCommand" |
| onitemcommand="RadGrid_ItemCommand" EnableLinqExpressions="false" |
| onitemcreated="RadGrid_ItemCreated"> |

In my DB I have a field called pictures with type nvarchar(MAX) where I am keeping the URL to the image.(jpg)
I use the RadBinaryImage. I read from the sample code and it shows I have to use some Databound Control.
Which will be the basic DataBound Control (if have to be used) ?
What will be my DataValue property and how do I bind the query to RadBinaryImage.
Can you suggest? I am new to RadControls.
I was trying to do something below!!!
| private void BindPhoto(int facultyId) |
| { |
| string Surname = txtSurname.Text.Trim(); |
| string FirstName = txtFirstName.Text.Trim(); |
| var query = (from tel in dc.tdlTeldirs |
| where (tel.Family.ToLower() == Surname.ToLower() && tel.First.ToLower() == FirstName.ToLower()) |
| orderby tel.First |
| select new |
| { |
| Photo = tel.pictures |
| }); |
| BindList(ImgPhoto, query); *********************** I know i cant bind it like this!!! |
| } |
But cant find out the best way!!!
Thank you
I am developing a portal application and many of the widgets required need to host other web applications.
I have implemented the dock handling in line with your current Telerik Dock myportal example.
Despite using a hidden update panel, a postback after (ajax) dock addition causes an existing control hosting IFrame or IE ActiveX control host to refresh. Normal controls seem immune to this behaviour.
The same is true when moving docks. I really need to be able to avoid the iframe based refreshment on dock movement.
Are you aware of any techniques to avoid these characteristics and retaing browser state within the hosted controls! Since I need to save dock states, avoiding dock.autopostback on completion of movement that processes OnSaveDockLayout="RadDockLayout1_SaveDockLayout" and implement some sort of client initiation of the state save?
You can see ajaxtester.aspx at https://www.alexsys.co.uk/sampleapps/dynaportal/ajaxtester.aspx . If you load a browser widget, then a iframe widget. Navigate away form the default URL in both widgets, the move them or add one of the telerik controls. The iframe or browser hosting widgets, fresh to the default URL.
<
div id="leftMenu" align="center" runat="server">
<telerik:RadMenu ID="rdLeftMenu" Flow="Vertical" Runat="server" Skin="Black" Width="80%">
<Items>
<telerik:RadMenuItem runat="server" Text="Home" NavigateUrl="~/default.aspx" />
<telerik:RadMenuItem runat="server" Text="Demo" NavigateUrl="~/demo.aspx" />
<telerik:RadMenuItem runat="server" Text="More Info" NavigateUrl="~/contact.aspx" Visible="false" />
<telerik:RadMenuItem runat="server" Text="Support" NavigateUrl="~/support.aspx" />
<telerik:RadMenuItem runat="server" Text="More Info / Contact Us" NavigateUrl="~/contact.aspx" />
<telerik:RadMenuItem runat="server" Text="Login" NavigateUrl="~/login/login.aspx" />
</Items>
</telerik:RadMenu>
</div>
CSS:
#leftMenu
{
float: none;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.RadMenu
Black .rmLeftImage
{
float: none !important;
}
.RadMenu
Black .rmVertical .rmLeftImage + .rmText
{
padding:0 !important;
}