Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
209 views
Here is my window.   
<telerik:RadWindow ID="Win1" VisibleOnPageLoad="true" runat="server"
        VisibleStatusbar="false"
        Animation="Fade" ShowContentDuringLoad="false" VisibleTitlebar="false" Behaviors="None" Modal="false">
<contentTemplate>
<img src="myimage.jpeg" />
<a href="#" onClick="myclosefunction();">Close</a>
</contentTemplate>
    </telerik:RadWindow>

Above I have shown a sample of creating a splash window which should be shown when the page is load. I have removed all the skins embedded with it.

I have used ' VisibleOnPageLoad="true" ' to show it on the page load.
Well up to this, it is okay.,

My problem is I don't have any idea to close this window.  I am using an hyperlink which has a close funtion. I don't know what to write on the onClick function.

Could any one give me an exact example to do this? I want to change entire window to show it like a splash screen.

Thanks
Hassan Yasir
Top achievements
Rank 1
 answered on 05 May 2010
2 answers
70 views
I have a RadGrid that uses a custom user control for editing and the user control contains a RadListBox that has drag and drop enabled. The OnDropped event fires, but e.SourceDragItems is always empty. Any idea why?
Joe Kalinowski
Top achievements
Rank 1
 answered on 05 May 2010
12 answers
230 views
Hi,

I'm having some problems regarding the radupload and radajaxpanel controls. In my page I have one radajaxpanel, inside of it I have a RadMultiPage and in one of the MultiPages exists one UserControl and one radgrid just below. Inside of this UC I have another radajaxpanel (with the ClientEvents-OnRequestStart defined so the RadUpload can upload the files) with one table, one radupload, one button (to upload) and a repeater to show the already uploaded files.

My problem regards the behavior of the radajaxpanel inside the UserControl because it expands when I click to create a new upload form but the outer page doesn't, witch causes the usercontrol to expand behind the radgrid.

Is there any way I can disable the ajax to the update button only from the main page or force the main radajaxpanel to expand with the inner ajaxpanel?

Thanks in advance.
Rui Lopes
Top achievements
Rank 1
 answered on 05 May 2010
2 answers
146 views
I am trying to use the ContentTemplate feature of the RadWindow for a login form and it works just fine, however I am wondering how I set focus to the text box in the window.  I am using the asp:Login control and I tried using the defaultfocus attribute of the form tag to set it but it didn't work out as I expected.

TIA
Seth
Top achievements
Rank 1
 answered on 05 May 2010
0 answers
69 views
Hi,

I am using RadTreeView in my project. If my page has not a masterpage ClientSide events of TreeView working exactly. But if it has a masterpage, i can't use scripts that is related with events. In example, i can use Drag& Drop events/scripts if my page has not a masterpage, but if has, i can not use these events/scripts.

How can I solve this problem,

Thanks for your help.

Edit : Oops! I solved this problem :) I used $find('RadTreeView1'), but in MasterPage; naturally tree's id changing so i change my function to $find('<%= RadTreeView1.ClientID %>') and worked :)
Bagis Rona
Top achievements
Rank 1
 asked on 05 May 2010
2 answers
234 views
Hello

I have a RadCombo in the template for a RadToolBarButton in the RadToolBarDropDown.

I want to allow the user to make a selection from the Combo Box and then have him click the RadToolBarButton to perform the post back.

As soon as a selection is made from the combo box the RadToolBarDropDown closes. 

I want to be able to leave the RadToolBarDropDown open after a selection has been made in the combo box and hence avoid an extra click which is currently needed to reopen RadToolBarDropDown. 

I have attached the image with this message.

Any insight will be greatly appreciated.

Thanks
Imran

 
Imran
Top achievements
Rank 1
 answered on 05 May 2010
0 answers
76 views

I currently use the Ajax toolkit throughout my application for the Rounded Corners control.  Now the I'm moving to the Telerik Ajax manager, is there a Telerik control that I can use to give me the rounded corners?

Scott Durrett
Top achievements
Rank 1
 asked on 05 May 2010
1 answer
134 views
Hi,
I'm trying to add a table of contents to my site, but because of the nodes has a large number of sub nodes it is throwing the allignment way out.  Is there a why to specify the number of primary nodes per column.

IE I have 13 main nodes and want 3 columns, 5 nodes in first column, 2 nodes in column 2 and 6 nodes column 3.
The sitemap control just defaults to 5,4,4 (even split).

See images for a better representation.

Thanks in advance for any help you can give.

Regards
Byron
Genady Sergeev
Telerik team
 answered on 05 May 2010
1 answer
217 views
Hi Telerik,
While Exporting to Excel, i am getting error like

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

I am using the VB Code as bellow
    

 

If (Not RadGrid1.MasterTableView.Items.Count = 0) Then   
With RadGrid1   
 .ExportSettings.IgnorePaging = True   
 .ExportSettings.ExportOnlyData = True   
 .ExportSettings.FileName = "ExportedResult"   
 .MasterTableView.ExportToExcel()  
End With   
End If 
 
 


if i'll remove the line " ExportSettings.IgnorePaging = True" , it will work. but i need all the pages to be exported.

in aspx, i am used the code like bellow
 

                        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AutoGenerateColumns="true"   
                            DataSourceID="sqlData1" EnableEmbeddedSkins="False" GridLines="None"   
                            EnableAJAX="True" > 
                            <HeaderContextMenu EnableTheming="True">  
                                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                            </HeaderContextMenu> 
                            <MasterTableView DataSourceID="sqlData1" AllowFilteringByColumn="false" PageSize="50">  
                                <RowIndicatorColumn> 
                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                </RowIndicatorColumn> 
                                <ExpandCollapseColumn> 
                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                </ExpandCollapseColumn> 
                                <Columns> 
                                </Columns> 
                            </MasterTableView> 
                            <FilterMenu EnableTheming="True">  
                                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                            </FilterMenu> 
                        </telerik:RadGrid> 
                        <asp:SqlDataSource ID="sqlData1" runat="server" ConnectionString="<%$ ConnectionStrings:PAMMSConnectionString %>">  
                        </asp:SqlDataSource> 

 

 

 

 

 

 

My grid is creating Dynamically, thats why i used " AutoGenerateColumns="true" ". According to the query user gives , the grid will populate the data.

can you please help me out for this issue.

 

 

 

Daniel
Telerik team
 answered on 05 May 2010
1 answer
166 views

I've got a RadGrid that contains multiple DataList in a template column, most all the values are numeric, but not all.  I can export to excel, and most everything is correct, however in my situation, I need different formats for the cells, depending on the datalist.

This is my export secion

        gv.ExportSettings.FileName = Format(Now(), "MMddyyyy")  
        gv.ExportSettings.IgnorePaging = True 
        gv.ExportSettings.ExportOnlyData = False 
        gv.ExportSettings.OpenInNewWindow = True 
        gv.ExportSettings.HideStructureColumns = True 
        gv.MasterTableView.ExportToExcel()  
 

Example Output

From the sample, which is linked to above, I need a different format on the numeric values for SP, CFM, BHP and Sone, which I have working on the screen.  The issue is when I export to excel trailing 0's on the decimal fields are chopped off.  If it's whole number, the trailing 0's aren't chooped off.  Per the link to the Example output,
SP cell c1 should be 0.000 cell K1 should be 1.000, always contain three decimals
BHP cell c6 should be 1.370, always contain three decimals

The Radgrid is a copy of the grid shown on the screen, I need slightly different formating when exported versus what's shown on the screen.  I've wired up the ExcelExportCellFormatting event to gv
AddHandler gv.ExcelExportCellFormatting, AddressOf Me.gv_ExcelExportCellFormatting  
 
 

 

 

I can get the individual datalist in this event, but how do I apply a specific format to the Cells within the Datalist whenexported to Excel?

Hopefully I've provided enough info to get some assistance here, of not let me know and I'll try respond with additional info.

Thanks in Advance

Daniel
Telerik team
 answered on 05 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?