Hi,
While i try to edit my rad editor it through an error Cannot read property 'replace' of undefined.
Please help me.
Thanks,
Rajiv
Hello, I'm currently implementing infinite scroll/load more functionality for news articles on our website. Do you have any documentation or advice on how we can initialize the RadSocialShare control client-side? I can load the initial batch of articles with their respective RadSocialShare controls, but because we're adding load more, we don't have the title and url to share until the user scrolls to the bottom of the page. Is there a way to find out which components we need in order to wire up RadSocialShare controls for the subsequent batches of articles?
Thanks!

I have a hyperlink within a Radgrid which opens up a RadWindow for the user.
<telerik:GridTemplateColumn HeaderText="Id" ReadOnly="true" SortExpression="Lookup" UniqueName="Lookup">
<ItemTemplate>
<asp:HyperLink ID="hlWorkOrderId" Text='<%#Eval("Lookup")%>' NavigateUrl='<%#String.Format("javascript:openWindow({0});", Eval("WorkOrderId"))%>' Enabled='<%#String.IsNullOrEmpty(CurrentUser).Equals(False).ToString%>' runat="server" />
</ItemTemplate>
</telerik:GridTemplateColumn>
The user is requesting that when they click on the hyperlink, they want that row in the grid highlighted. How can I pass the selected row index to the javascript function in the Hyperlink?

<telerik:RadGrid ID="ShotDetail_RadGrid" runat="server" DataSourceID="ShotDetail_SqlDataSource" Skin="Black" GridLines="None" ShowStatusBar="True" Width="1100px" CellSpacing="0" AutoGenerateColumns="False"> <HierarchySettings ExpandTooltip="Show related merch" CollapseTooltip="Collapse merch"></HierarchySettings> <ExportSettings IgnorePaging="True"> <Pdf PageBottomMargin="0.5in" PageHeight="8.5in" PageLeftMargin="0.35in" PageRightMargin="0.35in" PageTopMargin="0.5in" PageWidth="11in" /> </ExportSettings> <ClientSettings> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> </ClientSettings> <MasterTableView DataKeyNames="ShotID" DataSourceID="ShotDetail_SqlDataSource" AllowCustomPaging="True"> <NestedViewTemplate> <asp:Panel runat="server" ID="InnerContainer" CssClass="viewWrap" Visible="false"> <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1" SelectedIndex="0"> <Tabs> <telerik:RadTab runat="server" Text="Merchandise" PageViewID="PageView1" Selected="True"> </telerik:RadTab> <telerik:RadTab runat="server" Text="Shot Support" PageViewID="PageView2"> </telerik:RadTab> <telerik:RadTab runat="server" Text="Completed Images"> </telerik:RadTab> </Tabs> </telerik:RadTabStrip> <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false"> <telerik:RadPageView runat="server" ID="PageView1"> <asp:Label ID="ShotID_Label" Text='<%# Eval("ShotID") %>' Visible="false" runat="server" /> <asp:SqlDataSource ID="Merch_SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:Alderman_ConnectionString %>" SelectCommand="sp_web_Merch_Grid_sel" SelectCommandType="StoredProcedure"> <SelectParameters> <asp:ControlParameter ControlID="ShotID_Label" PropertyName="Text" Type="Int32" Name="ShotID" /> </SelectParameters> </asp:SqlDataSource> <telerik:RadGrid ID="Merch_RadGrid" runat="server" AutoGenerateColumns="False" DataSourceID="Merch_SqlDataSource" GridLines="None" CellSpacing="0"> <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True"> </ClientSettings> <MasterTableView DataSourceID="Merch_SqlDataSource"> <CommandItemSettings ExportToPdfText="Export to Pdf" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="Barcode" DataType="System.Int64" Display="False" HeaderText="Barcode" UniqueName="Barcode"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Source" HeaderText="Vendor" UniqueName="Source" FilterControlAltText="Filter Source column"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Description" HeaderText="Description" UniqueName="Description"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="SKU" HeaderText="SKU" UniqueName="SKU"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="SKU2" HeaderText="SKU2" UniqueName="SKU2"> </telerik:GridBoundColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"> </FilterMenu> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default" EnableImageSprites="True"> </HeaderContextMenu> </telerik:RadGrid> </telerik:RadPageView> <telerik:RadPageView runat="server" Width="100%" ID="PageView2"> <asp:SqlDataSource ID="Attachments_SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:Alderman_ConnectionString %>" SelectCommand="SELECT [AttachmentTitle], [LinkedFromID] FROM [tAttachments] WHERE (([LinkedFromID] = @ShotID) AND ([LinkedFromTable] = @LinkedFromTable) AND (AttachmentIsInvalid = 0))"> <SelectParameters> <asp:ControlParameter ControlID="ShotID_Label" PropertyName="Text" Type="Int32" Name="ShotID" /> <asp:Parameter DefaultValue="tShots" Name="LinkedFromTable" Type="String" /> </SelectParameters> </asp:SqlDataSource> <telerik:RadGrid ID="Attachments_RadGrid" runat="server" DataSourceID="Attachments_SqlDataSource" GridLines="None" CellSpacing="0"> <MasterTableView DataSourceID="Attachments_SqlDataSource" AutoGenerateColumns="False"> <CommandItemSettings ExportToPdfText="Export to PDF" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> </ExpandCollapseColumn> <Columns> <telerik:GridTemplateColumn UniqueName="ColumnDownload"> <ItemTemplate> <asp:ImageButton ID="DownloadForShot_ImageButton" runat="server" ImageUrl="~/Images/view.gif" OnClick="DownloadForShot_ImageButton_Click" /> <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="AttachmentTitle" HeaderText="Documents" UniqueName="ColumnAttachment"> </telerik:GridBoundColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"> </FilterMenu> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"> </HeaderContextMenu> </telerik:RadGrid> </telerik:RadPageView> </telerik:RadMultiPage> </asp:Panel> </NestedViewTemplate> <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> </RowIndicatorColumn> <ExpandCollapseColumn Visible="True"> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="JobShot" HeaderText="Shot" UniqueName="JobShot"> <HeaderStyle Width="100px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Description" HeaderText="Description" UniqueName="Description"> <HeaderStyle Width="700px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="MerchCount" DataType="System.Int16" HeaderText="Merch Count" UniqueName="MerchCount" AllowFiltering="False"> <HeaderStyle Width="50px" /> <ItemStyle Wrap="True" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="JobNumber" Display="False" HeaderText="JobNumber" UniqueName="JobNumber" FilterControlAltText="Filter JobNumber column"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ShotID" DataType="System.Int32" HeaderText="ShotID" UniqueName="ShotID" Display="False"> </telerik:GridBoundColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> <PagerStyle AlwaysVisible="True" /> </MasterTableView> <PagerStyle AlwaysVisible="True" /> <FilterMenu EnableImageSprites="False"> </FilterMenu> <HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu GridContextMenu_Default"> </HeaderContextMenu></telerik:RadGrid>protected void ShotDetail_RadGrid_PreRender(object sender, EventArgs e){ if (!Page.IsPostBack) { //*** Associate each Attachments_RadGrid with its own postback script to open the file. for (int i = 0; i <= ShotDetail_RadGrid.MasterTableView.Items.Count - 1; i++) { Panel aspPanel = ShotDetail_RadGrid.MasterTableView.Items(i).ChildItem.FindControl("InnerContainer"); RadGrid attachmentsGrid = aspPanel.FindControl("Attachments_RadGrid"); RadScriptManager ScriptManager1 = default(RadScriptManager); ScriptManager1 = (RadScriptManager)this.Parent.FindControl("RadScriptManager1"); ScriptManager1.RegisterPostBackControl(attachmentsGrid); ImageButton viewImageButton = attachmentsGrid.MasterTableView.FindControl("DownloadForShot_ImageButton"); viewImageButton.Attributes.Add("onclick", " ExportButtonClick ();"); } }}

function
PrintRadGrid(radGridId){
var radGrid = document.getElementById(radGridId);
var sh = '<%= ClientScript.GetWebResourceUrl(rgrdUser.GetType(),String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css",rgrdUser.Skin)) %>';
var styleStr = "<html><head><link href = '" + sh + "' rel='stylesheet' type='text/css'></link></head>";
var htmlcontent = styleStr + "<body>" + radGrid.outerHTML + "</body></html>";
previewWnd.document.open();
previewWnd.document.write(htmlcontent);
previewWnd.document.close();
previewWnd.print();
}
Thanks,
Lubna.
Hi All, i have a rad grid in which i am assigning datasource on code behind , how to print this grid <telerik:RadGrid Width="100%" HeaderStyle-Height="22px" HeaderStyle-HorizontalAlign="Left" GridLines="Horizontal" DataKeyNames="UnitId" AutoGenerateColumns="false" AllowSorting="true" MasterTableView-HierarchyDefaultExpanded="true" AllowPaging="false" ID="gvReportUnit" runat="server" OnDetailTableDataBind="gvReportUnit_DetailTableDataBind" OnSortCommand="gvReportUnit_SortCommand"> <PagerStyle Mode="NumericPages"></PagerStyle> <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true"> </ClientSettings> <MasterTableView AllowSorting="true" DataKeyNames="UnitId" Width="100%"> <Columns> <telerik:GridBoundColumn DataField="UnitId" Visible="false"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn HeaderText="Unit ID" ItemStyle-CssClass="ItemStyle" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" SortExpression="UnitNameId" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="100%"> <ItemTemplate> <%# Eval("UnitNameId") %> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> <DetailTables> <telerik:GridTableView AllowPaging="false" AutoGenerateColumns="false" AllowSorting="false" GridLines="Horizontal" Width="100%" runat="server"> </telerik:GridTableView> </DetailTables> </MasterTableView> </telerik:RadGrid> Thanks Pankaj Agarwal