Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
122 views
Hi,

I have a 2 level hierarchical grid which I am trying to export to excel. I have used the following code:

 protected void btnExport_Click(object sender, EventArgs e)  
    {  
        try 
        {  
            rgScenario.ExportSettings.ExportOnlyData = true;  
            rgScenario.ExportSettings.IgnorePaging = true;  
            rgScenario.ExportSettings.OpenInNewWindow = true;  
 
            rgScenario.MasterTableView.HierarchyDefaultExpanded = true;  
            rgScenario.MasterTableView.Rebind();  
 
            rgScenario.MasterTableView.ExportToExcel();  
        }  
        catch(Exception ex)  
        {  
              
        } 

 

But I recieve the following runtime exception:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.GridTableView.PrepareExport() +47
   Telerik.Web.UI.Grid.Export.TableViewExporter.PrepareForExport() +340
   Telerik.Web.UI.Grid.Export.TableViewExporter.page_PreRender(Object sender, EventArgs e) +34
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +8679510
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

Is there anything I have missed?

Regards,
Saurabh

Saurabh Srivastava
Top achievements
Rank 1
 answered on 24 Aug 2009
4 answers
307 views
Hi,

I have a GridBoundColumn in my grid. The dataformatstring for this is specified as {0:#,###.##}.

This column does not display anything when my datatable has a value of 0. Could you please resolve?

Regards,
Saurabh
Saurabh Srivastava
Top achievements
Rank 1
 answered on 24 Aug 2009
1 answer
78 views
Hi,

I have a radMenu in a masterpage bound to an object datasource. When clicking on an menuitem in Internet Explorer 6 I get a full page refresh instead of just a contentpage refresh. This behavior is not the case in Internet Explorer 8, where only the contentpage is refreshed.

Any updates within the contentpage that have been AJAXified correctly only update the contentpage itself.

Any idea what could cause this behavior?

Cheers,
Roel
Paul
Telerik team
 answered on 24 Aug 2009
3 answers
182 views
Hi,

In the PagerStyle settings of RAD Grid Q2 2009 release version, a combo box is getting displayed to modify the page size dynamically. I don't want to show the combo box to the end-user. May i know how to show/hide that combo box using any available property or style sheet?

Thanks in advance.
Meenakshi Nagalingam
Top achievements
Rank 1
 answered on 24 Aug 2009
12 answers
167 views
Hi:

If I use the MarkFirstMatch feature in data entry (just typing a 1, 2 or 3) the SelectedIndexChange event does not seem to fire.  If I use the drop-down, then it fires.
<telerik:RadComboBox ID="classComboBox" runat="server"  
    Skin="Outlook" Width="90px" 
    MarkFirstMatch="True" AutoPostBack="True" 
    OnSelectedIndexChanged="classComboBox_SelectedIndexChanged" 
    > 
    <Items> 
        <telerik:radcomboboxitem Value="0" Text="0 None" /> 
        <telerik:radcomboboxitem Value="1" Text="1" /> 
        <telerik:radcomboboxitem Value="2" Text="2" /> 
        <telerik:radcomboboxitem Value="3" Text="3" /> 
    </Items> 
</telerik:RadComboBox> 
 

Thanks
Simon
Telerik team
 answered on 24 Aug 2009
2 answers
126 views
Hi all, I have created a custom skin for the color picker but when I run it I get the following problem

Telerik.Web.UI.RadSlider with ID='ctl07' was unable to find embedded skin with name 'Contentys'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.

I have set EnableEmbeddedSkins=false.  but it is obviously refering to the slider which is in the color picker.

I have also created a custom skin for the slider so how do access the slider control inside the color picker control to tell it to use the custom skin
Paul Taylor
Top achievements
Rank 1
 answered on 24 Aug 2009
5 answers
273 views
In this post http://www.telerik.com/community/forums/thread/b311D-ccdge.aspx made about 18 months ago I described how a callback was causing an object to lose its embedded CSS properties.  Finally coming back to this issue, I find that the new Ajax Prometheus causes the exact same behaviour.

The object is a 3rd party control, Datawindow.NET made by Sybase.  It's a sophisticated grid-like control made for displaying and updating data.  I set up a simple example with two controls - a dropdownlist and a webdatawindow.  Choosing an item from the dropdown causes the datawindow (dw) to refresh.  Upon page load, the dw retrieves data for the first item and displays properly.  I've set up AjaxManager thusly:

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" Style="z-index: 101;  
            left: 0px; position: absolute; top: 0px"><AjaxSettings>  
                <telerik:AjaxSetting AjaxControlID="ddl_products">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="dw_1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
</AjaxSettings> 
</telerik:RadAjaxManager> 

Changing the dropdown item results in an Ajax call but the resulting dw is devoid of any formatting.  I did a View Source on the HTML produced and the initially loaded page and a page which has lost formatting are exactly the same.
Kannan Karmegam
Top achievements
Rank 1
 answered on 24 Aug 2009
1 answer
73 views
I have a project that I have been developing for a while and it has a rotator at the top that scrolls user profiles from left to right at the top of the page.

I dont understand why about 2 months ago it started working wrong and since then I have never been able to correct the problem. it used to slide a a regular speed from and scroll but now it stops at every frame but bfore it stops at a frame it even seem like it is slowin down the speed at which it scrolls to slowly come to a stop for a fraction of a second and then it looks like it bounces back to life to just slowdown again to stop and make a breif paus for the next frame......

there are maybe 10 frames in view at any time from a collection of maybe 100 and they scroll from one side to the other.

So I went to your demo page and even there I cannot make the rotator scroll the images without stoping or varying the speed at the begining of each frame

at this demo page http://demos.telerik.com/aspnet-ajax/rotator/examples/default/defaultcs.aspx
even if I set the ScrollDuration to 3000 and the FrameDuration to 0 it still doe not scroll evenly like it used to before

whats up with that?
Fiko
Telerik team
 answered on 24 Aug 2009
3 answers
121 views
So you guys have this great MOSS editor as a custom field type--aside from the xhtml issues with sharepoint--and embedded in it is a pretty cool image manager.
Why not do a few tweaks and make that image manager available also as an alternative to the WSS picture field.
The OOTB WSS hyperlink/picture field is crap when it comes to giving the end user a way to get an image associated with their list item.

If there already is something out there please let me know. If not maybe you could put this on the wish list and let me know when it's available??

Thanks,
Georgi Tunev
Telerik team
 answered on 24 Aug 2009
2 answers
175 views
Dears,
I have a problem in the RadAlert, the scenario is that i have radAlert which must be modal over all my page and master page controls, but it is appeared behind the masterPage radMenu control.
i tried the z-Index but it is not worked.
Any help will be appreciated,

Regards,
Georgi Tunev
Telerik team
 answered on 24 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?