Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
20 views
Hi Guys,

I was wondering if is there any possibility to launch the Export PDF feature from radGrid with a control outside the radgrid.

Here's my situation: I have two linkbuttons on the top off the screen, and both have to read and export data from the radGrid using the native export feature. There is not nested radGrids ou anything like that.

Is there any way to do this?

Thanks for the help

Rhamsés
Sebastian
Telerik team
 answered on 14 Dec 2011
0 answers
77 views
I have two columns in my RadGrid: 'ProductId' and 'CatalogId'. In ItemDataBound event, I am binding tooltip to CatalogId column. Below is code snippet:
if (e.Item is GridDataItem)  
GridDataItem gridItem = e.Item as GridDataItem;   
if (!rdgrdGeneralInfo.MasterTableView.GetColumn("ProductId").Display)
  
foreach (GridColumn column in rdgrdGeneralInfo.MasterTableView.RenderColumns)
  
if (column is GridBoundColumn)
  
if (column.UniqueName == "CatalogId")   
  
gridItem[column.UniqueName].ToolTip = "ProductID: " + "XYZ";   
  
 
}
  
}

When I hide the 'ProductId' column through HeaderContextMenu of RadGrid the below client side event gets triggered:

 

function rdgrdGeneralInfo_OnColumnHiding(sender, args) { 
}

I want to disable the CatalogId tooltip in this event. And if 'ProductId' is selected as visible column, tooltip must be enabled.

Neeraj
Top achievements
Rank 1
 asked on 14 Dec 2011
1 answer
61 views
Hi,

I am using RadTreeView LoadOnDemand WCF Binding feature. Is there a way to bind the tooltip to node. I found this article http://www.telerik.com/help/aspnet-ajax/treeview-general-setting-additional-properties-to-the-node-in-the-web-service.html

but I do now want to use OnClientNodeDataBoundHandler event of the treeView. Is there any other alternative of direct binding of tooltip.
Bozhidar
Telerik team
 answered on 14 Dec 2011
7 answers
162 views
I've successfully implemented a double-click mechanism in the RadListBox, initially with this code:

    protected void radListBoxStopes_ItemCreated(object source, RadListBoxItemEventArgs e)<br>    {<br>      string updatePanelID = this.Parent.Parent.FindControl("UpdatePanel1").UniqueID;<br>      string parameters = e.Item.Index.ToString();<br>      e.Item.Attributes.Add("ondblclick", "__doPostBack('" + updatePanelID + "', " + Tools.EncloseInSingleQuotes(parameters) + ");");<br>    }<br>

About the only thing to point out about that code is that I'm passing the parent UpdatePanel ID so that a partial postback, rather than a full postback, occurs.

Everything seems to work fine except for one thing.  I've prepared a video for you to demonstrate the problem: http://mwtech.com/downloads/public/DemoForTelerikSupport.zip

In this video I perform a few single-clicks, which work fine.  But notice when I double-click (3 times in the video): All of the text in the listbox and some text up above is temporarily selected.  You see this in the form of a blue flash.  It's very irritating!

Why is this occurring and how can I prevent it?

Robert

P.S. Is it possible that what I'm experiencing is similar to this?  If so, then what's the name of the property you added to disable it?
Bozhidar
Telerik team
 answered on 14 Dec 2011
1 answer
101 views
Hello,
I have a radmenu in a user control that is placed on several master pages.  I would like to be able to determine the selected item from that menu on my content pages.  I found the solution below which works well if the radmenu is placed on the master page.  I would like to avoid having to duplicate the radmenu on all my master pages and am wondering if anyone knows how I could modify this to be able to find the menu from the user control and then determine the selected item.

http://www.telerik.com/community/forums/preview-thread/aspnet-ajax/menu/radmenu-masterpage-and-contentplaceholder-page.aspx
Thanks,
Bob
Bozhidar
Telerik team
 answered on 14 Dec 2011
4 answers
194 views
Hi,
I am using RadEditor control on my web page. I'm using HTML file as a template to fill in sections of data from database and then display data to user in Editor. I want to allow user to save this data as PDF file but unfortunately, I'm having trouble to save this data to export to PDF file using ExportToPdf() method of RadEditor.

Here is a Code:
<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td>
             <telerik:RadEditor ID="fileEditor" ContentFilters="DefaultFilters,PdfExportFilter" Height="500" 
                        Width="685" runat="server" ToolsFile="~/HtmlEditorTools.xml" OnExportContent="fileEditor_ExportContent" >
                    <ExportSettings FileName="abc" OpenInNewWindow="true"></ExportSettings>
                </telerik:RadEditor>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnSavePDF" runat="server" Text="Save As PDF" OnClick="btnSavePDF_Click" />
            </td>
        </tr>
    </table>
    </form>

code behind:
 
protected void btnSavePDF_Click(object sender, EventArgs e)
{

fileEditor.ExportToPdf();
}

HTML Template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
    <title></title>
</head>
<body>
    <h1>Product Service Detail</h1>
    Hi [%=Customer.FirstName%] [%=Customer.LastName%],
        <br />
        I hope you are fine.
        <br />
      Please Note Your Product Services:
    <br />
    [%=ProductServices%]
         
        Thanks,
        <br />
        Best Regards,
        <br />
        [%=ProductManager.FullName%]
         
</body>
</html>

In my code, I fill the data from the database for the sections [%=.....%]. While calling method ExportToPdf() I gets this exception:
Invalid XHTML. RadEditor content should be correct XHTML in order to export to PDF. Parse error: Unexpected DTD declaration. Line 674, position 13. at line: <body><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Any help for this ?

Thanks

Rumen
Telerik team
 answered on 14 Dec 2011
0 answers
62 views
Hi,
I have a radgrid with both functionality drag and drop rows and sorting by columns (enable sorting for the radgrid) , it works well on the default state and when i click on any column's header to sort , the drag and drop stops. Please inform me.

Mohamed Farrag
Web developer
Mohamed
Top achievements
Rank 1
 asked on 14 Dec 2011
1 answer
94 views
Before RadStyleSheetManager we have used Ajax Minifier solution (http://ajaxmin.codeplex.com/), that was able to remove comments from CSS files. Is there any way to do this with RadStyleSheetManager?
It is useful as 1) allows to add "developer/company specific" comments, as users can never see them 2) reduce size a little bit
Simon
Telerik team
 answered on 14 Dec 2011
2 answers
68 views
HI,
i'm using telerik radcombobox inside rad grid and  it keeps throwing me "stop running this script". This happens whenever I select  the item from the  radcombobox or while typing and  changing on the  radcombobox in edit mode.
Tushar
Top achievements
Rank 1
 answered on 14 Dec 2011
3 answers
154 views
hi, i m new in telerik and c#, now i m trying to learn multi tier architecture with telerik tools...
i try to did some research to find some tutorial but it was not useful...like if i want to bind to radscheduler fields, is it write like something "RadScheduler.DataKeyField = "id"" or "RadScheduler.DataBind();" in the default c# UI page? And the select data connectionstring is write on business logic page right? if have any tutorial or any sample can help me pls give me a link, thx...    
Peter
Telerik team
 answered on 14 Dec 2011
Narrow your results
Selected tags
Tags
+? 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?