Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
153 views
I open a new RadWindow. Before the window is closed i put the ClientID of a RadTextBox which is a control on the window in the argument. On my page (which opened the window) i have a handler for the ClientClose-Event. There i take the ClientID and would like to paste the Text of the RadTextBox in a other RadTextBox on my page (which opened the window). I have the problem that the variable f is not definied, the $find not work. What is wrong?

function radWindowMemo_OnClientClose(window) 
  alert(window.argument); // it shows the correct ClientID!
  var f = window.BrowserWindow.$find(window.argument); // f is not defined!
  // ... Paste f.value in other RadTextBox
 


Rainer Goos
Top achievements
Rank 1
 answered on 24 Jul 2009
13 answers
194 views
c



SANNIDHI   
 Posted on Jul 11   
 

I posted this post on Jul11 there is no reply..


IS telerik will supprt Export to PDf in Multicolumn Headers??????????????????????

No support Say NO?????????????? okkkkkkkkkkkkk
Hi,  
 
     I want to export to pdf in TelerikGrid.I am using follwing code  
 
< 
 
   
 
telerik:GridBoundColumn DataField="Partner Name" UniqueName="PartnerName" HeaderText="PartnerName"   
 
   
 
 
   
 
HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="left">   
 
   
 
 
   
 
</telerik:GridBoundColumn>   
 
   
 
 
   
 
<telerik:GridBoundColumn DataField="Rank" UniqueName="Rank" HeaderStyle-HorizontalAlign="Center"   
 
   
 
 
   
 
ItemStyle-HorizontalAlign="Right" HeaderText="Rank">   
 
   
 
 
   
 
</telerik:GridBoundColumn>   
 
   
 
 
   
 
<telerik:GridBoundColumn DataField="Rank1" UniqueName="Rank1" HeaderStyle-HorizontalAlign="Center"   
 
   
 
 
   
 
ItemStyle-HorizontalAlign="Right" HeaderText="Rank1">   
 
   
 
 
   
 
</telerik:GridBoundColumn>   
 
   
 
 
   
 
<telerik:GridTemplateColumn UniqueName="Column1" InitializeTemplatesFirst="true">   
 
   
 
 
   
 
<HeaderTemplate>   
 
   
 
 
   
 
<table id="Tabfy08" cellspacing="0" style="width: 100%;">   
 
   
 
 
   
 
<tr>   
 
   
 
 
   
 
<td colspan="2" align="center">   
 
   
 
 
   
 
<b>COULMNSHEADER</b>   
 
   
 
 
   
 
</td>   
 
   
 
 
   
 
</tr>   
 
   
 
 
   
 
<tr>   
 
   
 
 
   
 
<td style="width: 50%; border-style: none;" align="center">   
 
   
 
 
   
 
<asp:Label ID="lblfy08" Text="Rank" runat="server" />   
 
   
 
 
   
 
</td>   
 
   
 
 
   
 
<td style="width: 50%; border-style: none;" align="center">   
 
   
 
 
   
 
<asp:Label ID="lblesa08" Text="Rank1" runat="server" />   
 
   
 
 
   
 
</td>   
 
   
 
 
   
 
</tr>   
 
   
 
 
   
 
</table>   
 
   
 
 
   
 
</HeaderTemplate>   
 
   
 
 
   
 
<ItemTemplate>   
 
   
 
 
   
 
<table cellspacing="0" width="100%" class="myTable">   
 
   
 
 
   
 
<tr>   
 
   
 
 
   
 
<td style="width: 50%">   
 
   
 
 
<%  
 
# Eval("Rank")%>   
 
   
 
   
 
 
</td>   
 
   
 
 
   
 
<td style="width: 50%">   
 
   
 
 
<%  
 
# Eval(" Rank1")%>   
 
   
 
   
 
 
</td>   
 
   
 
 
   
 
</tr>   
 
   
 
 
   
 
</table>   
 
   
 
 
   
 
</ItemTemplate>   
 
   
 
 
   
 
<ItemStyle HorizontalAlign="Center" />   
 
   
 
 
   
 
</telerik:GridTemplateColumn> 
 
I want to export to pdf which has template columns.  
 
For that i am using following code  
 
 
 
   
 
MYGRID.ExportSettings.ExportOnlyData =   
 
true;   
 
   
 
MYGRID.ExportSettings.IgnorePaging =   
 
 
true;   
 
   
 
MYGRID.ExportSettings.OpenInNewWindow =   
 
 
true;   
 
   
 
 
 
 
MYGRID.MasterTableView.HierarchyDefaultExpanded =   
 
true;   
 
   
 
MYGRID.ExportSettings.ExportOnlyData =   
 
 
true;   
 
   
 
MYGRID.MasterTableView.ExportToPdf();  
 
 
 In Button Click Event...............  
 
But i am not getting the result of template columns in PDF..  
 
Is Telerik Grid Support this????????????????Please Clarify this ASAP..ASAP  
 
Thanks in Advance  
SANNIDHI 
ManniAT
Top achievements
Rank 2
 answered on 24 Jul 2009
1 answer
75 views
I have a shopping cart where the Item Number has precedding zeros such as "00033" when it comes in to the grid it shows as "33".  I have a have the DataType set to System.String.  Any ideas on how I can fix this?  I have Q2 2008 Rad Grid.
Georgi Krustev
Telerik team
 answered on 24 Jul 2009
2 answers
123 views
Hi Telerik,

    I have a problem with RadColorPicker as the ICON overlaps the ASP Menu Dropdown and hides the menuitems. Below is a link of the screenshot edited for you to understand the issue. Please have a look into it.

http://img520.imageshack.us/i/radcolorpicker.png/

Also, the colorpicker tag i have given in the design page is

<telerik:RadColorPicker runat="server" ID="RadColorPicker" ShowIcon="true">

Do I have to add anything to make it look perfect (i.e.,) It does not overlap the ASP menu dropdown. Or is this a bug from your side?

Hoping to get an early reply.

Thank you in Advance.

Cheers,
Raj Maverick.

Raj Maverick
Top achievements
Rank 1
 answered on 24 Jul 2009
5 answers
147 views
Hello,

I have a RadWindow (R2) that opens up from a Link Button on another RadWindow (R1). Through javascript I set the parent window of R2 to the parent of R1 to enable R2 to expand past the bounds of R1. I want R2 to open up maximized in the parent of R1 when the user clicks the link button. I have achieved this to some extent. In R2's page load section of the code behind the page, I set a label equal to a javascript function on R2's html page to maximize the RadWindow: 

 

protected void Page_Load(object sender, EventArgs e)     
{   
    if ((Label1.Text == "<script>CloseWin();</script>")    
        || (Label1.Text == ""))     
    {  
            Label1.Text = "<script>MaximizeWin();</script>";   
    }   
else 
    {    
            Label1.Text = "";     
    }  

 

 

function MaximizeWin() {   
var oWindow = GetRadWindow();   
oWindow.maximize();  
}  
function CloseWin() {    
var oWindow = GetRadWindow();    
oWindow.Close();  
}  
 

This works to maximize R2; however, after I close R2 (setting the label's text equal to a javascript function CloseWin()) and then click the link button again, R2 opens maximized for like half a second and then moves. Instead of the top left corner of R2 being in the top left of the parent page, it is now in the center of the parent page. I'm not sure why this happens when opening R2 as there is another link button on R1 that opens another Radwindow (R3) the same way, and R3 always opens up maximized and never moves after opening. I'm really confused because R3 works fine because I created R2 by copying and pasting everything I used to make R3, with the exception of the NavigateURL's of the RadWindows.

If any more info is needed, please let me know.

Thanks

Fiko
Telerik team
 answered on 24 Jul 2009
2 answers
305 views
Hi Telerik,

    We are using your Rad Control product in which I have got an issue and would like to have some help from you.

    I display the RadColorPicker in a webpage where the user would select a color from the picker to store it in the SQL database table. In this case, I get the SelectedColor of the RadColorPicker which is in the format "ff00ff". 

    I am able to insert this value in the database table with ease. But, in the other case, I have to get this format("ff00ff") from the database table and make the Color corresponding to the format "ff00ff" get displayed in another RadColorPicker

    How can I do that???? Please help me and I would be grateful if you send me a sample code.

    Thank you in advance.

Cheers,
Raj.
Raj Maverick
Top achievements
Rank 1
 answered on 24 Jul 2009
2 answers
169 views
Hi,

I have a fully working radwindow which obtains the PDF from a SQL database and "Writes" the results to the page (within the window).  As a result I need to have the "ShowContentDuringLoad" set to true (otherwise the page would not be displayed).

The problem is the PDF being downloaded (depending on broadband connection) makes it look like the web browser has stopped responding for some of our more impatient users.  Is there a way to put a comment or image to indicate its still loading whilst it is pulling the file from server?

Oh the ironry!  I need ShowContentDuringLoad both on and off ;o)

Here is the sequence of events within the web page:

1. click link
2. opens radwindow
3. radwindow pointing to another aspx page.
4. this page (ASP C#) writes results to page.

Thanks in advance.
Charles
Top achievements
Rank 1
 answered on 24 Jul 2009
2 answers
80 views
Hi,

Can anyone hint me how do I change the backcolor of the whole row when the value of column in one of cells matches some condition?

Eg.

If the cell text =10 then change the backcolor of the whole row containing that cell


Many thanks.

Milan G
Milan Gurung
Top achievements
Rank 1
 answered on 24 Jul 2009
3 answers
173 views
Hi

I have a grid that uses the automatically generated Edit column edit form.
Can I modify the text of these link buttons in the automatic mode?

The documentation seemsto refer to the non-automatic case.

Thanks

Clive

Daniel
Telerik team
 answered on 24 Jul 2009
8 answers
292 views
Hi,
I have a radgrid - I'm using grouping and paging both. Some of my columns use GridAggregateFunction so when I group by that column  I get totals for the group.

My problem is that when the group spans 2 pages I get the totals at the end of the partial group on the first page and then totals again for the second half of the partial group on the next page. 

Is there any way I can either add another row to the totals to put in the entire totals for the split group or dynamically change the page size so that a split group is no longer split but included on one page?

Any help is appreciated - thanks!

joni

Jack Williams
Top achievements
Rank 1
 answered on 24 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?