Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
139 views
I have several Rad Controls on a Web form including a RadComboBox that initially works correctly.  After clicking a button to export data to an excel spreadsheet the RadComboBox quits responding.  Clicking the arrow to dropdown the list does nothing while all other controls appear to work just fine.

The code I am useing for the expot is as follows:

            DataView detailDT = (DataView)detailGridView.DataSource;

            string filename = String.Format("{0}.csv", "ExportDetails");

            Response.Clear();
            Response.AddHeader("Content-Disposition", "attachment;filename=" + filename);
            Response.Charset = "";
            Response.ContentType = "application/vnd.xls";

            StringWriter stringWriter = new StringWriter();
            ArrayList colHeaders = new ArrayList();
            ArrayList dataRow = new ArrayList();

            //handle forcing Excel from treating file as an "sylk" file
            stringWriter.Write("  ");

            foreach (DataControlField dataCol in detailGridView.Columns)
            {
                colHeaders.Add(dataCol.HeaderText);
            }

            stringWriter.WriteLine(string.Join(",", (string[])colHeaders.ToArray(typeof(string))));

            foreach (DataRow dr in detailDT.Table.Rows)
            {
                foreach (DataColumn dataCol in detailDT.Table.Columns)
                {
                    dataRow.Add(dr[dataCol]);
                }

                stringWriter.WriteLine(string.Join(",", (string[])dataRow.ToArray(typeof(string))));

                dataRow.Clear();
            }

            Response.Write(stringWriter.ToString());
            Response.End();


Thanks

Simon
Telerik team
 answered on 09 Nov 2009
1 answer
38 views
Hi

I've spent several days trying to recreate the "Grid / Hierarchy with Templates" demo at http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx from the example code, but I just can't get it to work. Is there a tutorial covering these tasks available that can show me a more step by step approach?

TIA

Re
Dennis
Pavlina
Telerik team
 answered on 09 Nov 2009
3 answers
77 views
Hello,

We are using the the sample code from the demo: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

The drag and drop is working for us.  However the loading panel only shows up for the first drag/drop in Firefox.  (same issue exists on your demo page as well.)  It works correctly on google-chrome.

Can someone advise as we can resolve this issue?

Thanks,
Amish
Pavlina
Telerik team
 answered on 09 Nov 2009
1 answer
1.5K+ views
Hello
  1. I have two RadListBoxes linked to two different ObjectDataSource objects RadListBox1 and RadListBox2.  (Markup below)
  2. My project uses an SQL Server 2005 database using SQL to Linq. 
  3. When I attempt to Transfer items from RadListBox1 to RadListBox2 I receive a javascript error: "Error: Sys.WebForms.PageRequestManagerServerErrorException: Object of type 'System.Int32' cannot be converted to type 'System.String'."
  4. When I clcik the trasnfer button, the "Deleted" event is fired for the first list box, but for some reason the Insert event for the second listbox is not being triggered. 

List Box Markup:
<td> 
                        <h2>Available Features</h2> 
                        <telerik:RadListBox ID="RadListBox1"  
                            runat="server"  
                            AllowTransfer="True"                              
                            DataKeyField="FeatureId"  
                            DataSortField="FeatureId"  
                            DataSourceID="FeatureDS"  
                            DataTextField="FeatureDescription"  
                            DataValueField="FeatureId"  
                            TransferToID="RadListBox2"  
                            AllowAutomaticUpdates="True"  
                            AutoPostBackOnTransfer="True"  
                            EmptyMessage="There are no available features."  
                            Skin="Office2007"  
                            Width="250px"> 
                            <ButtonSettings ShowTransferAll="False" /> 
                            <EmptyMessageTemplate> 
                                There are no available features. 
                            </EmptyMessageTemplate> 
                        </telerik:RadListBox> 
                    </td> 
                    <td> 
                        <h2>Competitor Features</h2> 
                        <telerik:RadListBox  
                            runat="server"  
                            ID="RadListBox2"  
                            DataKeyField="FeatureId"  
                            DataSortField="FeatureDescription"  
                            DataSourceID="CompetitorFeatureDS"  
                            DataTextField="FeatureDescription"  
                            AllowAutomaticUpdates="True"  
                            EmptyMessage="This competitor has no features assigned."  
                            Skin="Office2007"  
                            Width="250px"> 
                            <ButtonSettings ShowTransferAll="False" /> 
                            <EmptyMessageTemplate> 
                                This competitor has no features assigned. 
                            </EmptyMessageTemplate> 
                        </telerik:RadListBox> 
                    </td> 

DataSources:
<%--**************************************************--%> 
<%--DATA SOURCES--%> 
<%--**************************************************--%> 
<pp:ObjectContainerDataSource ID="CompetitorDS"              
    DataObjectTypeName="MagicMindsCRM.Modules.Competitors.BusinessEntities.Competitor" 
    OnUpdated="CompetitorDS_Updated"  
    runat="server" /> 
        
     
    <pp:ObjectContainerDataSource ID="CompetitorFeatureDS"              
    DataObjectTypeName="MagicMindsCRM.Modules.Competitors.BusinessEntities.CompetitorFeature" 
    OnDeleted="CompetitorFeatureDS_Deleted"  
    OnInserted="CompetitorFeatureDS_Inserted"      
    runat="server" /> 
     
    <pp:ObjectContainerDataSource ID="FeatureDS" DataObjectTypeName="MagicMindsCRM.Modules.Competitors.BusinessEntities.Feature" runat="server"  
    OnDeleted="FeatureDS_Deleted"  
    OnInserted="FeatureDS_Inserted" /> 
     
    <pp:ObjectContainerDataSource ID="CompetitorStatusDS" DataObjectTypeName="MagicMindsCRM.Modules.Competitors.BusinessEntities.CompetitorStatus" runat="server" />     
     

Screenshot attached.

Many thanks for your help.
Simon
Telerik team
 answered on 09 Nov 2009
3 answers
187 views
Hi
          I am facing the problem in binding the detail table which is under nested view grid.
I used RadGrid1_preRender event to bind the nestedview grid. But the problem arised during  i called the Nested grid's 

 

'DetailTableDataBind' event it goes againg to 'RadGrid1_preRender' event and bind the nested grid again, so as a result i could not see the detail table data after i expanding the nested grid row.

Please guide me at what solution help to overcome this problem

-Thanks

Veli
Telerik team
 answered on 09 Nov 2009
1 answer
150 views
Admin ,

i have fileexplorer inside the telerik:RadPageView , i have totally have 4 telerik:RadPageView , in which first and fourth has file explorer,when page loads the first telerik:RadPageView is loaded where the configuration paths are given from code behind and works fine as expected , the issue comes when i click the fourth telerik:RadPageView where the control gets loaded and the configuration path is given from the code behind but the file explorer does not show me any path its jus shows only the control on first time and when i go to other telerik:RadPageView and come back here to the fourth telerik:RadPageView it shows me the path with expected result ,

the html is as follows,

<telerik:RadTabStrip runat="server" BackColor="#C9D9ED" BorderWidth="0px" ID="RadTabReport"
    OnTabClick="RadTabReport_TabClick" Skin="Office2007" ShowBaseLine="True" SelectedIndex="0"
    MultiPageID="RadMultiPageReport" CausesValidation="false" Height="110px" Width="100%">
    <Tabs>
        <telerik:RadTab Text="Plans and Reports" runat="server" SelectedIndex="0" Selected="True">
            <Tabs>
                <telerik:RadTab CssClass="icon_padd" PageViewID="SelectReport" Text="Select Report"
                    runat="server" Selected="true">
                </telerik:RadTab>
                <telerik:RadTab CssClass="icon_padd" PageViewID="ViewReport" Text="View Report" runat="server">
                </telerik:RadTab>
                <telerik:RadTab CssClass="icon_padd" PageViewID="ReportHistory" Text="Report History"
                    runat="server">
                </telerik:RadTab>
                <telerik:RadTab CssClass="icon_padd" PageViewID="SendReport" Text="Send Report" runat="server">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPageReport" runat="server" SelectedIndex="0" Width="100%">
    <telerik:RadPageView ID="SelectReport" runat="server" BackColor="#C9D9ED">
        <div>
            <telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Width="575px" Skin="Office2007"
                BackColor="white" Height="375px" EnableOpenFile="false">
            </telerik:RadFileExplorer>
        </div>
    </telerik:RadPageView>
    <telerik:RadPageView ID="ViewReport" runat="server" BackColor="#C9D9ED">
        <div>
            ViewReport
        </div>
    </telerik:RadPageView>
    <telerik:RadPageView ID="ReportHistory" runat="server" BackColor="#C9D9ED">
        <div>
            ReportHistory
        </div>
    </telerik:RadPageView>
    <telerik:RadPageView ID="SendReport" runat="server" BackColor="#C9D9ED">
        <div>
            Select Report :
            <br />
            Note : This report will be send as attachment
            <br />
        </div>
        <div>
            <telerik:RadFileExplorer runat="server" ID="RadFileExplorer2" Width="575px" Skin="Office2007"
                BackColor="white" Height="375px" EnableOpenFile="false">
            </telerik:RadFileExplorer>
        </div>
        <div>
            <table>
                <tr>
                    <td>
                        Email Subject :
                    </td>
                    <td>
                        <asp:TextBox ID="txtEmailSubject" runat="server" Width="250px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Receipients :
                    </td>
                    <td>
                        <asp:TextBox ID="txtReceipients" runat="server" Width="250px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        Seperate multiple receipents by commas
                    </td>
                </tr>
                <tr>
                    <td>
                        Message:
                    </td>
                    <td>
                        <asp:TextBox ID="txtMessage" runat="server" Width="250px" TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td align="right">
                        <asp:Button ID="btnPreview" runat="server" Text="Preview"></asp:Button>
                        <asp:Button ID="btnSend" runat="server" Text="Send"></asp:Button>
                    </td>
                </tr>
            </table>
        </div>
    </telerik:RadPageView>
</telerik:RadMultiPage>

Please Advice me , thanks in advance :)

Regards,

Ashok.c
Fiko
Telerik team
 answered on 09 Nov 2009
6 answers
144 views
Hi there,
     I can't seem to see any event that is raised when the Cancel button is pressed on the RadProgressArea.  How can I perform a ClientSide action when the Cancel button in the RadProgressArea is pressed?

Regards,

        Scott.
Vesko
Top achievements
Rank 2
 answered on 09 Nov 2009
3 answers
242 views
I'm trying to use the ComboBox to allow a user to pick a shipping method based on their address.  I am populating the ComboBox's context with address information on the page using the OnClientItemsRequesting event, and then calling a server side OnItemsRequested event.  This works the first time, but has inconsistent behavior every time after that.  Since the user can change their address on the page, the shipping costs might need to be recalculated after the initial ItemsRequested event.  However, the event will not fire unless I select the text and clear it out.  I want the ItemsRequested event to fire every time the dropdown is opened (is caching possible in this situation in case they just want to change their shipping method without changing their address?).  Also, it would be great if the textbox could be disabled, since there is no real purpose for it.  I'll post a code example if necessary.

Thanks.
Veselin Vasilev
Telerik team
 answered on 09 Nov 2009
2 answers
214 views
The following piece of code does not render properly in Internet Explorer, but it works fine in Firefox. I have attached the screenshots IEPanelBar.jpg and FirefoxPanelBar.jpg.  I would like to have the first Panel Item Expanded and the second Panel Item collapsed as shown in the screenshot FirefoxPanelBar.jpg. I would like to have the second PanelItem collapsed by default as show in the screenshot FirefoxPanelBar.jpg. Please let me know of any fix for this issue.
<telerik:RadPageView ID="radPageViewAdvancedSearch" runat="server" Width="100%">  
                <telerik:RadPanelBar ID="radPanelBarAssetListFilter" runat="server" Width="100%">  
                    <Items> 
                        <telerik:RadPanelItem Text="Valuation Queue Filter " Expanded="True" PostBack="false">  
                            <Items> 
                                <telerik:RadPanelItem runat="server" BackColor="#E7F1FF" Text="">  
                                    <ItemTemplate> 
                                            <div class="span-24 height-1">  
                                            <runway:AssetListSearchFilter ID="runwayAssetListSearchFilter" runat="server"   
                                            FilterLabelCssClass="span-4 color-a-4 basic-filter-label" 
                                            FilterFirstColumnCssClass="span-12 last advanced-search-filter" 
                                            FilterSecondColumnCssClass="span-12 last advanced-search-filter" 
                                            FilterEmptyName="AssetSearchParamWide" 
                                            FilterDateTimeToLabelCssClass="color-a-4 datetime-label" 
                                            FilterContainerCssClass="span-8 last"   
                                            FilterFromTextBoxCssClass="AdvancedSearchText" 
                                            FilterToTextBoxCssClass="AdvancedSearchText"/>  
                                            </div> 
                                    </ItemTemplate> 
                                </telerik:RadPanelItem> 
                            </Items> 
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelBar> 
                <br /> 
                <telerik:RadPanelBar ID="radPanelBarAssetFilter" runat="server" Width="100%">  
                    <Items> 
                        <telerik:RadPanelItem Text="Asset Filter" Expanded="False"  PostBack="false">  
                            <Items> 
                                <telerik:RadPanelItem runat="server" BackColor="#E7F1FF" Text="">  
                                    <ItemTemplate> 
                                            <div class="span-24 height-1">  
                                            <runway:AssetSearchFilter ID="runwayAssetSearchFilter" runat="server"   
                                            FilterLabelCssClass="span-4 color-a-4 basic-filter-label" 
                                            FilterFirstColumnCssClass="span-12 advanced-search-filter" 
                                            FilterSecondColumnCssClass="span-12 last advanced-search-filter" 
                                            FilterEmptyName="AssetSearchParamWide" 
                                            FilterDateTimeToLabelCssClass="color-a-4 datetime-label" 
                                            FilterContainerCssClass="span-8 last"   
                                            FilterFromTextBoxCssClass="AdvancedSearchText" 
                                            FilterToTextBoxCssClass="AdvancedSearchText"/>  
                                        </div> 
                                    </ItemTemplate> 
                                </telerik:RadPanelItem> 
                            </Items> 
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelBar> 
        </telerik:RadPageView> 

Thanks
Satyaprakash J
Satyaprakash J
Top achievements
Rank 1
 answered on 09 Nov 2009
2 answers
162 views

vs2008

q2 2009


hiya,

 

I’m using the binaryImage column in the samples:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=grid


When the user edits a row, the “image name”, and “description” are correctly assigned.

 

However, the “Image” GridBinaryImageColumn contains nothing…This is counter intuitive.

How can I assign the current value to this GridBinaryImageColumn, so that the user can save the record without having to manually browse for the image?

 

Many thanks,

 

yogi

Chris Yoker
Top achievements
Rank 1
 answered on 09 Nov 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?