Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
257 views
Hi,

I'm following this example http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/exporting/defaultcs.aspx#qsf-demo-source
and put the relevant code into my project.
I can't see the export buttons appearance!

I added this   
<script type="text/javascript">
        function onRequestStart(sender, args) {
            if (args.get_eventTarget().indexOf("ExportTo") >= 0) {
                args.set_enableAjax(false);
            }
        }
 </script>

and this in my Radgrid:

                <telerik:RadGrid ID="RadGrid3" runat="server" CellSpacing="0" AllowFilteringByColumn="True"
                    DataSourceID="dsMaterial" GridLines="None" AllowPaging="True" Skin="Default" AutoGenerateColumns="false" OnItemCommand="RadGrid3_ItemCommand">
                    <ClientSettings>
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                    </ClientSettings>
                    <ExportSettings IgnorePaging="true" OpenInNewWindow="true">
                    </ExportSettings>
                    <MasterTableView DataSourceID="dsMaterial" DataKeyNames="IDMaterial">
                        <DetailTables>
                            <telerik:GridTableView DataKeyNames="IDMaterial" DataSourceID="dsMaterialExtra" runat="server" AllowFilteringByColumn="false">
                                <ParentTableRelation>
                                    <telerik:GridRelationFields DetailKeyField="IDMaterial" MasterKeyField="IDMaterial">
                                    </telerik:GridRelationFields>
                                </ParentTableRelation>
                                <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true"
                                    ShowExportToCsvButton="true" ShowExportToPdfButton="true">
                                </CommandItemSettings>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="TopArticle" HeaderText="Top Article">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="MaterialGroup" HeaderText="Material Group">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Replaceability" HeaderText="Replaceability">
                                    </telerik:GridBoundColumn>
                                </Columns>
                            </telerik:GridTableView>
                        </DetailTables>
                        <CommandItemSettings ExportToPdfText="Export to PDF" ShowExportToPdfButton="true" ShowExportToCsvButton="true"
                            ShowExportToExcelButton="true" ShowExportToWordButton="true" />
                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True"
                            Created="True">
                            <HeaderStyle Width="20px" />
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridBoundColumn DataField="OldNumber" FilterControlAltText="Filter OldNumber column"
                                HeaderText="Old material number" SortExpression="OldNumber" UniqueName="OldNumber"
                                CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="NewNumber" FilterControlAltText="Filter NewNumber column"
                                HeaderText="New material number" SortExpression="NewNumber" UniqueName="NewNumber"
                                CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="TopArticle" FilterControlAltText="Filter TopArticle column"
                                HeaderText="Top article" SortExpression="TopArticle" UniqueName="TopArticle"
                                AllowFiltering="false">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="MaterialGroup" FilterControlAltText="Filter MaterialGroup column"
                                HeaderText="Group" SortExpression="MaterialGroup" UniqueName="MaterialGroup"
                                AllowFiltering="false">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Replaceability" FilterControlAltText="Filter Replaceability column"
                                HeaderText="Replaceability" SortExpression="Replaceability" UniqueName="Replaceability"
                                AllowFiltering="false">
                            </telerik:GridBoundColumn>
                        </Columns>
                        <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                            </EditColumn>
                        </EditFormSettings>
                        <PagerStyle PageSizeControlType="RadComboBox" />
                    </MasterTableView>
                    <PagerStyle PageSizeControlType="RadComboBox" />
                    <FilterMenu EnableImageSprites="False">
                    </FilterMenu>
                </telerik:RadGrid>

Code behind:

        protected void RadGrid3_ItemCommand(object sender, GridCommandEventArgs e)
        {
            if (e.CommandName == Telerik.Web.UI.RadGrid.ExportToExcelCommandName ||
                e.CommandName == Telerik.Web.UI.RadGrid.ExportToWordCommandName ||
                e.CommandName == Telerik.Web.UI.RadGrid.ExportToCsvCommandName ||
                e.CommandName == Telerik.Web.UI.RadGrid.ExportToPdfCommandName)
            {
                ConfigureExport();
            }
        }

        public void ConfigureExport()
        {
            //Do some further config here
        }



What is missing?

Cheers,
Per
Per
Top achievements
Rank 1
 answered on 13 Sep 2013
4 answers
229 views
QR
Hi,
I've tested your QR Code Generator.
If i set an ECI Encoding, the QR Code doesn't work on Windows Phone with standard bing QR Code Scanner. If i set ECI Encoding to None all works fine. On Android or IOS Devices there aren't any problems.
Windows Phone is supporting different Encoding Types. I testet it on http://zxing.appspot.com/generator/ and this is working fine (UTF-8, or ISO-8859-1).
Any idea why this is not working?

Is it also possible that you implement UTF-8 encoding?

BR

Marin
Telerik team
 answered on 13 Sep 2013
1 answer
253 views
Hi.

I having some troubles with the horizontal scrolling in IE 11 when using static headers (Column headers does not scroll but the grid content do). 
Everything works in IE 10, Chrome, Firefox etc. but IE 11 does not handle it correctly.
But since IE 11 is still not publicly available yet (Running Win 8.1 RTM from MSDN subscription), is there any known problems with RadGrid on IE 11 that you are aware of and that will be fixed in upcoming Telerik releases?

BR
Johan
Maria Ilieva
Telerik team
 answered on 13 Sep 2013
9 answers
183 views
Hi

I'm trying to add a chart title and show phase line for each series in a telerik chart. How do i do this?

I'm attaching a sample chart.

Thanks for your help!

Vasu
Vasu
Top achievements
Rank 1
 answered on 13 Sep 2013
2 answers
87 views

i have a radtilelist with the id of "RadTileList2".  the name of the tile is "Home" and i would like to set the title text server side.
i believe i have to find the tile first like so? 


RadTextTile tile = RadTileList2.GetTileByName("Home");
        tile.Text = "tree";
Cayetano Landeros
Top achievements
Rank 1
 answered on 13 Sep 2013
1 answer
76 views
There is a RadPanelBar with a number of RadPanelItems on the page.
I have setup all the properties using the smart tag and everything inside of the RadPanelBar itself looks completely fine.

However, when I open the RadAJAXManager and try to edit items through its smart tag, all of the items listed under the RadPanelBar are listed as "i0", i1" and "i2", ect.
(Attached is how I currently see the two screens)

Is there anyway to change how the names show up in the RadAJAXManager?  I would love to be able to view the items in the RadAJAXManager similar to how they are displayed in the RadPanelBar's Item Editor.


Thanks
Maria Ilieva
Telerik team
 answered on 13 Sep 2013
3 answers
143 views
So I recently updated to 2013.2.717 from 2013.2.611 in order to fix an issues with the RadMenus opening in the wrong direction when a RadDropDownList was on the page. While this did fix my issue, it created a far worse one! I have a grid that is using the OnNeedDataSource event. I can see that the server side code is being run, and my DataSource is being set appropriately, however the rows are never rendered?!?! This works 100% in 611, but something changed, and using 717 the grid will just not refresh. Can anyone give me some insight as to what changed that might have caused this to happen.

P.S. I tried the latest internal build 2013.2.806, but it did not remedy the problem.
Milena
Telerik team
 answered on 13 Sep 2013
1 answer
317 views
I need to be able to save the persistence data to a custom directory, 
other than the default: ~\AppData

RadPersistenceManager1.CustomLocation = ConfigurationManager.AppSettings["UserPersistenceData"];
RadPersistenceManager1.StorageProviderKey = SessionID.Value;        
RadPersistenceManager1.SaveState();
Peter Filipov
Telerik team
 answered on 13 Sep 2013
1 answer
215 views
I recently had a bug reported to me from a customer.  They said they were seeing record getting deleted when they didn't intend to delete them.  In my research, I found the following:

When the user would click the "Edit" icon to edit a particular row, they were able to perform all edit functions.  When they would click on a textbox and hit the "Delete" key on their keyboard, characters within the textbox would be deleted as expected.

When the user would double-click the row to edit it, however, and press of the delete key would remove the row.  Even if they were inside a textbox attempting to delete characters, pressing the delete key would remove the row.

I remedied the situation by disabling double-click editing but would really like to know why pressing the delete key while in double-click edit mode would remove the row, especially if the user was actively editing a textbox.

Thank you.
Marin
Telerik team
 answered on 13 Sep 2013
3 answers
501 views
Hi,

I have a RadNotification which uses a ContentTemplate. The title icon and title text sometimes defaults to the normal info "i" icon and nothing for the title text. These properties are set on the server on the Master page to be a custom image and text. The content in the template area always appears correctly but title icon and text sometimes don't work and it appears to be happening at random.

Thanks,
Dariaus
Slav
Telerik team
 answered on 13 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?