When opening a RadWindow for the second time, it throws an Unspecified Error.
function
OpenNewLocationWindow(Location, StopOffNum, url, offsetElementID) {
if (StopOffNum == null)
StopOffNum = 0;
StopValue = StopOffNum;
if (url == null)
url =
"../../CustomerWebUI/NewLocations/CreateNewIntransShipperLocation.aspx";
var oWnd = radopen(url + "?Location=" + Location + "&SeqNum=" + StopOffNum, "RadWindow1");
if (offsetElementID != null) {
oWnd.set_offsetElementID(offsetElementID);
}
}
If the offsetElementID exists, the error is thrown. If the offsetElementID does not exist, the program functions properly however the placement of the window is at the bottom of the page and the user must scroll down to find the window.
| <rad:RadAjaxManager ID="AjaxManager1" runat="server"> |
| <AjaxSettings> |
| <rad:AjaxSetting AjaxControlID="grdCustomerAssignments"> |
| <UpdatedControls> |
| <rad:AjaxUpdatedControl ControlID="pnlCustomerAssignments"/> |
| </UpdatedControls> |
| </rad:AjaxSetting> |
| <rad:AjaxSetting AjaxControlID="grdCustomerAssignments"> |
| <UpdatedControls> |
| <rad:AjaxUpdatedControl ControlID="pnlDetails" /> |
| </UpdatedControls> |
| </rad:AjaxSetting> |
| </AjaxSettings> |
| <ClientEvents OnResponseEnd="ResponseEnd" OnRequestStart="RequestStart" /> |
| <asp:Panel ID="pnlCustomerAssignments" runat="server" > |
| <rad:RadGrid ID="grdCustomerAssignments" runat="server" Skin="WebBlue" AutoGenerateColumns="false" AllowMultiRowSelection="false" |
| OnNeedDataSource="grdCustomerAssignments_NeedDataSource" |
| OnSelectedIndexChanged="grdCustomerAssignments_SelectedIndexChanged"> |
| <ClientSettings EnablePostBackOnRowClick="true" > |
| <ClientEvents OnRowSelected="RowSelected"/> |
| <Scrolling AllowScroll="true" ScrollHeight="350" UseStaticHeaders="true" SaveScrollPosition="true" /> |
| <Selecting AllowRowSelect="true" /> |
| <Resizing AllowColumnResize="true" /> |
| </ClientSettings> |
| <MasterTableView DataKeyNames="ID" > |
| <HeaderStyle Wrap="false" HorizontalAlign="Center" VerticalAlign="Middle" Font-Bold="true" /> |
| <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" /> |
| <AlternatingItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" /> |
| <NoRecordsTemplate> |
| <div style="font-size:80%; color:Maroon;">No Items Were Found</div> |
| </NoRecordsTemplate> |
| </MasterTableView> |
| </rad:RadGrid> |
| </asp:Panel> |
| <rad:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
| <script type="text/javascript"> |
| var grid1; |
| Sys.Application.add_load(function() { |
| grid1 = $find('<%= grdCustomerAssignments.ClientID %>'); |
| var tmp = "asdf"; |
| }); |
| var SelectedItemIsReseting = false; |
| var SelectedIndexes = new Object(); |
| function RowSelected(sender, eventArgs) { |
| if (!SelectedItemIsReseting) { |
| SelectedIndexes = eventArgs.get_itemIndexHierarchical(); |
| } |
| } |
| function RequestStart(sender, eventArgs) { |
| if (SelectedItemIsReseting) { |
| eventArgs.set_cancel(true); |
| } |
| } |
| </script> |
| </rad:RadCodeBlock> |
| <rad:RadScriptBlock ID="RadScriptBlock1" runat="server"> |
| <script type="text/javascript"> |
| function ResponseEnd(sender, eventArgs) { |
| SelectedItemIsReseting = true; |
| var gridID = eventArgs.get_eventTargetElement().id; |
| var grid = $find(gridID); |
| if (!grid) alert("No Grid"); |
| var MasterTableView = grid.get_masterTableView(); |
| if (!MasterTableView) alert("No Table"); |
| MasterTableView.selectItem(MasterTableView.get_dataItems()[SelectedIndexes].get_element()); |
| SelectedItemIsReseting = false; |
| clearTimeout(t); |
| } |
| </script> |
| </rad:RadScriptBlock> |

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