Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
195 views
Hi,
Using Version=2009.3.311
I'm attempting to open a second radWin from an existing one using the current window BrowserWindow.radopen type method, I run into a JS error when calling set_behaviors on the new window. ("Telerik is undefined..")

A simple case example would be 3 aspx pages (Default.aspx, Default2.aspx, Default3.aspx) ....

----------------------------------------------------------------------------------------
Parent page (Default.aspx)....contents

     <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        </telerik:RadWindowManager>
        <telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="Default2.aspx" OpenerElementID="LinkButton1">
        </telerik:RadWindow>
        <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return false;">Open rWin1</asp:LinkButton>

1st radWin (Default2.aspx) contents...

<script language="javascript" type="text/javascript">
    function GetRadWindow() { var oWindow = null; if (window.radWindow) oWindow = window.radWindow; else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; return oWindow; }
    function fnOID1() { var oW = null; var oBrowserWnd = GetRadWindow().BrowserWindow; oW = oBrowserWnd.radopen('Default3.aspx', null); oW.setSize(750, 325); oW.set_modal(true); setTimeout(function() { oW.setActive(true); }, 0); }
    function fnOID2() { var oW = null; var oBrowserWnd = GetRadWindow().BrowserWindow; oW = oBrowserWnd.radopen('Default3.aspx', null); oW.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close); oW.setSize(750, 325); oW.set_modal(true); setTimeout(function() { oW.setActive(true); }, 0); }
</script>
.....
        rWin1
        <br />
        <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="fnOID1(); return false;">Open rWin2_nobehaviors</asp:LinkButton>
        <br />
        <asp:LinkButton ID="LinkButton2" runat="server" OnClientClick="fnOID2(); return false;">Open rWin2</asp:LinkButton>

2nd radWin (Default3.aspx) contents...
some text...

----------------------------------------------------------------------------------------

Any help would be much appreciated.


Fiko
Telerik team
 answered on 23 Mar 2009
1 answer
79 views

My editor is pretty much using default settings. I've added the following to my Tools.xml:
<paragraphs>

 

<

paragraph name="Clear formatting" value="&lt;body&gt;" />

 

<

paragraph name="&lt;h1&gt;Heading 1&lt;/h1&gt;" value="&lt;H1&lt;" />

 

<

paragraph name="&lt;h2&gt;Heading 2&lt;/h2&gt;" value="&lt;H2&lt;" />

 

<

paragraph name="&lt;h3&gt;Heading 3&lt;/h3&gt;" value="&lt;H3&lt;" />

 

</

paragraphs>

However, quite often (not always) when I try to apply a header (using the drop down) to either selected text or a selected line the style won't apply.

I've only tested this in IE6.

What to do?

 

Rumen
Telerik team
 answered on 23 Mar 2009
2 answers
461 views
Hello,
I have got a DataList which contains many RadPanelbar. Each panelbar contains only one RadPanelbarItem with a template.
My template is just a label named Lb1.
I'm using the panelbar function OnClientItemClicked, but the method args.get_item().findControl("Lb1") return null.
I can't get the control by server side method with 

var lb_ID = <%= RadPanelBar1.Items(0).FindControl("Lb1").ClientID %>

 because I don't known the panelbar used.

Thanks for help.

luc bonenfant
Top achievements
Rank 1
 answered on 23 Mar 2009
2 answers
256 views
I'd like the option to show/hide the root folder in the treeview (or to have several root folders instead of just the one).  I'd like to replace a homegrown solution with this composite control, but that (and the lack of date created/modified columns) is one of the biggest hurdles.  I'm currently looking to see if I can customize the composite control myself, but would like to see this as a built-in option somewhere down the line.
Paul Hopper
Top achievements
Rank 1
 answered on 23 Mar 2009
3 answers
137 views
How can i read Text from the particular cell...on row click
i have used

ItemTemplateColumn

 colums.
Daniel
Telerik team
 answered on 23 Mar 2009
1 answer
117 views
I have an ajaxified grid.
Inside the nestedtemplateview of the main grid I have another grid.
I want to give the export to pdf functionality on both of the grids.

I got the export working on the main grid and sub grid.
However, there's some data that I am not able to see.

Inside my gridtemplatecolumn for the both the grids, I have  linkbuttons and one of the fields is bound to that.
# When i set "ExportOnlyData" on the main grid to false then I am able to export that data as well. I changed the format for export as shown in :http://www.telerik.com/help/aspnet-ajax/grdexporttipstricks.html
The font size changes do not apply to the data I have in my link buttons though?
How can I do that?

# the second issue I am having is if I set ExportOnlydata on my grid to false then when the pdf is generated i am unable to open it.
It gives me error: 'Adobe reader could not open 'RadGridExport.pdf' because it is either not a supported file type or because the file has been damaged'
I am unable to figure out why i get this error on my sub grid when i set exportonlydata to false. If it is true then everything works fine.

Please suggest.


Daniel
Telerik team
 answered on 23 Mar 2009
1 answer
180 views
Hello,

I'm using the new Q1 2009 version of RadEditor with IE7 (haven't tested other browsers) and am trying to work with the Paragraph Style/Format Block.  I've set the following in my tools files:

 
<paragraphs> 
    <paragraph name="Clear" value="&lt;body>" /> 
    <paragraph name="&lt;H2 class='separator'>Heading 2&lt;/H2>" value="&lt;H2 class='separator'>" /> 
    <paragraph name="&lt;H1 class='separator'>Heading 1&lt;/H1>" value="&lt;H1 class='separator'>" /> 
</paragraphs> 
 

 


If I put the cursor on a line and select a value from the Format Block drop down, selecting H1 or H2 correctly applies the H1 or H2 with the class name to the paragraph.  I can easily switch back and forth between H1 and H2 by just having the cursor on the line.  However, to select the "Clear", I actually have to select the text/paragraph in question.  Is there a way to have the "Clear" work if just the cursor is on the line and not have to select the actual text?

I've confirmed that the same thing happens in the following online demo, which is also where I got the value for "Clear".

http://demos.telerik.com/aspnet-ajax/editor/examples/formatblock/defaultcs.aspx

Thanks,
Chris
Rumen
Telerik team
 answered on 23 Mar 2009
1 answer
43 views

  Is anyone else having this issue?  I just downloaded the 1Q 2009 package.  Without changing my grids it seems that the image used the the update is being hardcoded by the DLL.  Example.

<telerik:GridEditCommandColumn ButtonType="ImageButton" CancelImageUrl="/Standard/Images/cancel.gif"
EditImageUrl="/Standard/Images/edit.gif" UpdateImageUrl="/Standard/Images/ok.gif">

  I look at the resulting HTML and see this:

<input type="image" style="border-width: 0px;" alt="Insert" src="/Standard/Update.gif" title="Insert" id="ctl00_ContentPlaceHolder1_grdLookupAttribute_ctl00_ctl02_ctl02_PerformInsertButton" name="ctl00$ContentPlaceHolder1$grdLookupAttribute$ctl00$ctl02$ctl02$PerformInsertButton"/>

 It should be noted that the page this code lives in is /Standard/Mypage.aspx.  So the /Standard is mine, but I have no idea where the Update.gif is coming from.  Any ideas?

Iana Tsolova
Telerik team
 answered on 23 Mar 2009
2 answers
157 views
I have a RadGrid iniside of a Splitter Panel.  When the user right-clicks on the grid, the Header Context Menu is displayed but there are over 40 columns to this grid.  As a result, the checkbox choices continue below the splitter and are not accessable.  Does anyone know how I can prevent the Header Context Menu from going out of frame?

Thanks!
Richard
Top achievements
Rank 2
 answered on 23 Mar 2009
1 answer
75 views
Hi
When I type something like this into the html editor for the Radeditor: -

<div style="border: dotted 1px gray; width: 900px; paddding: 5px; margin: auto;">

Some Content

</div>

Some of the style attributes get removed when I switch to design mode and then back to html mode so that I am left with this: -

<div style="border: dotted 1px gray;">

Some Content

</div>

Why do some of the style attributes get stripped out and how can I stop it from happening?

Thanks
Matt

Stanimir
Telerik team
 answered on 23 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?