Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
109 views
Currently files start uploading as soon and you finish selecting them or when you drop one in the drag and drop area. Is there any way to defer the uploading of the files until a button is pressed?

A second, perhaps dumber question, is there any way to continue uploading files during or after a partial postback? Currently partial postbacks appear to cancel the upload.

Thanks
Hristo Valyavicharski
Telerik team
 answered on 17 Jun 2014
2 answers
153 views
Hello,
I'm having an issue with the number and bullet list setting the bullet to the previous line. Here's my steps:

1. Navigate to the demo. http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx
2. Click on the HTML tab and remove all the HTML.
3. Click back on the Design tab.
4. Type in "Hello There." Press Enter key.
5. Type in "Hello There Again" 
6. Cursor is now on the second line. Click either the number list button or the bullet list button on the toolbar.
7. Bullet or Number goes to the first line, not the second line and both lines are indented.

It should have just set the second line. Is this a known bug?

Thanks,
Scott
Scott Michetti
Top achievements
Rank 1
Iron
 answered on 17 Jun 2014
4 answers
202 views
Hi guys,

In a very simplistic overview, we've got a form which includes a couple of textbox fields and a combobox, which in basic terms are used for the following purposes:

The textbox fields are used for entering HTML script, which is escaped/encoded before any postback - it is then decoded server-side.
The Combobox makes use of EnableLoadOnDemand and MarkFirstMatch to perform a lookup

Everything seems to work perfectly when first open a blank form, populate, and save. The problem comes when editing previously saved data; the textbox fields on the form get populated with HTML as expected (the same escaping/encoding script will be used before any update gets saved) - but when the Combobox causes any postback it seems to hold the original HTML data which was populated at form load - causing a "500" error behind the scenes because "potentially dangerous Request.Form"

We've tried calling every clientEvent (and even wrapping the combobox with a DIV which has a mouse-over etc) to encode the fields appropriately, or even simply clear the form all together... but it seems that no matter what we do the original HTML gets sent back as part of the combobox ajax (assuming part of the original viewstate).

We have tried plugging into every postback handler we could find, the telerik ajaxmanager onRequestStart, and even the form.onsubmit - but as none of the form changes make it into the returned postback content, nothing we do seems to have any effect.

Please let us know if there's anything we can do to fix this.
Cheers








Michael
Top achievements
Rank 1
 answered on 17 Jun 2014
6 answers
145 views
An extra column, or what seems to be a column, is being rendered on the far left...This could be a css issue perhaps? I am fairly new and an Intern. Check out the screen shot I have provided.

Any help is greatly appreciated! 
Daniel
Top achievements
Rank 1
 answered on 17 Jun 2014
2 answers
129 views
Hi guys,
I have node editing enabled on my treeview. Is there any way to disable editing on clicking the node itself.
I have editing working as standard and with a button at the moment but I want it working with the button only.
Thanks,
Tommy
Princy
Top achievements
Rank 2
 answered on 17 Jun 2014
10 answers
699 views
Hello:

I have a fairly simple page which pulls the MasterTableView data from one dataset and the DetailTables data from another dataset.

Exporting to Excel with hierarchy works in normal Excel mode. However, a new requirement is that the parent headers have background shading. Using ExcelML will not export with the hierarchy; only the parent rows get exported.

I am using version 2008.01.0618.20 currently after upgrading from 2008.01.0415.20.

The ASPX page looks like this:
<MasterTableView DataKeyNames="fooData" Name="fooName" HierarchyLoadMode="ServerBind" HierarchyDefaultExpanded="true" AllowPaging="true" UseAllDataFields="true" CanRetrieveAllData="true"
  <DetailTables> 
    <telerik:GridTableView runat="server" Name="Details" DataKeyNames="fooDetail" Width="100%" HierarchyDefaultExpanded="true"
      <ParentTableRelation> 
        <telerik:GridRelationFields DetailKeyField="fooDetail" MasterKeyField="fooData" /> 
      </ParentTableRelation> 
      <Columns> 
 
Etc...



And, in the code-behind:

RadGrid.ExportSettings.FileName = "fooData" 
RadGrid.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML 
RadGrid.ExportSettings.IgnorePaging = "true" 
RadGrid.ExportSettings.ExportOnlyData = "true" 
 
'This code block worked for regular Excel export 
For Each gi As GridItem In RadGrid.Items 
  gi.Expanded = True 
Next 
 
RadGrid.MasterTableView.ExportToExcel() 

This code worked perfectly for regular Excel but not for ExcelML.
The only difference is that I added the following line, which is required:
RadGrid.ExportSettings.ExportOnlyData = "true"

Thank You,
Romany
Asutosh
Top achievements
Rank 1
 answered on 17 Jun 2014
3 answers
242 views
Hi.

I have stumbled over a bug (Atleast i think its one).
I want to expert my nested table view into excel. (excel-format: ExcelML)
Word, CSV and Excel with format Html works fine.

But ExcelML crashes with a null exception.

ASPX.Page:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestGrid.aspx.cs" Inherits="TestGrid" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="ScriptManager" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadGrid runat="server" ID="RadGrid1" OnNeedDataSource="RadGrid1_NeedDataSource"
        EnableLinqExpressions="false">
        <ExportSettings HideStructureColumns="true" ExportOnlyData="true" IgnorePaging="true"
            Excel-Format="ExcelML" />
        <PagerStyle Mode="NumericPages" AlwaysVisible="true" />
        <GroupingSettings CaseSensitive="false" />
        <MasterTableView ShowHeader="true" AutoGenerateColumns="False" AllowPaging="true"
            DataKeyNames="ID, PARENT_ID" CommandItemDisplay="Top" AllowMultiColumnSorting="True"
            EditMode="InPlace" HierarchyLoadMode="Client" FilterExpression="PARENT_ID = 0 or PARENT_ID IS NULL">
            <CommandItemTemplate>
                <asp:Button  ID="ExportToExcelButton" runat="server"
                    CommandName="ExportToExcel" Text="Export to Excel" />
                <asp:Button  ID="ExportToWordButton" runat="server"
                    CommandName="ExportToWord" Text="Export to Word" />
                <asp:Button  ID="ExportToCsvButton" runat="server"
                    CommandName="ExportToCsv" Text="Export to Csv" />
            </CommandItemTemplate>
            <SelfHierarchySettings ParentKeyName="PARENT_ID" KeyName="ID" MaximumDepth="0" />
            <Columns>
                <telerik:GridBoundColumn DataField="ID" />
                <telerik:GridBoundColumn DataField="PARENT_ID" />
                <telerik:GridBoundColumn DataField="NAME" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    </form>
</body>
</html>

ASPX.CS Code Page:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Telerik.Web.UI;
 
    public partial class TestGrid : System.Web.UI.Page
    {
 
        protected void Page_Load(object sender, EventArgs e)
        {
 
        }
 
        private DataTable GetDataTable()
        {
            DataTable returnValue = new DataTable();
 
            returnValue.Columns.Add("ID");
            returnValue.Columns.Add("PARENT_ID");
            returnValue.Columns.Add("NAME");
 
            DataRow row = returnValue.NewRow();
            row["ID"] = 1;
            row["PARENT_ID"] = 0;
            row["NAME"] = "Parent A";
            returnValue.Rows.Add(row);
 
            row = returnValue.NewRow();
            row["ID"] = 2;
            row["PARENT_ID"] = 1;
            row["NAME"] = "Child A";
            returnValue.Rows.Add(row);
 
            row = returnValue.NewRow();
            row["ID"] = 3;
            row["PARENT_ID"] = 1;
            row["NAME"] = "Child B";
            returnValue.Rows.Add(row);
 
            row = returnValue.NewRow();
            row["ID"] = 4;
            row["PARENT_ID"] = 1;
            row["NAME"] = "Child C";
            returnValue.Rows.Add(row);
 
            row = returnValue.NewRow();
            row["ID"] = 5;
            row["PARENT_ID"] = 0;
            row["NAME"] = "Parent B";
            returnValue.Rows.Add(row);
 
            return returnValue;
        }
 
        protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            RadGrid1.DataSource = GetDataTable();
        }
    }

Asutosh
Top achievements
Rank 1
 answered on 17 Jun 2014
1 answer
222 views
I have a RadPanel on my page:

            <telerik:RadPanelBar runat="server" ID="RadPanelBar1" ExpandMode="MultipleExpandedItems" Width="95%">
            </telerik:RadPanelBar>        

I dynamically add RadPanelItems to it in code behind that have a custom user control in it:
   foreach(xxx)
  {
                    RadPanelItem newPanelItem = new RadPanelItem("Header Text");
                    RadPanelItem childPanelItem = new RadPanelItem();

                    childPanelItem.Controls.Add(LoadControl("xxx.ascx"));
                    ctrl.LoadData();

                    newPanelItem.Items.Add(childPanelItem);
                    newPanelItem.Width = Unit.Percentage(100);
                    RadPanelBar1.Items.Add(newPanelItem);
  }

The LoadData method fills a grid in the user control. In my development this creates 5 collapsible RadPaneltems as expected. However, the width of the PanelBar isn't working correctly. As you can see it's set to 95% but when I run it seems to collapse down to the size of the header text. When I expand on of the panel items, the width indeed increases to the size of the panel item content (based on the grid). It's like the PanelBar can't figure out it's width based on its PanelItems because they are dynamically added.

Without setting the width to a fixed size, how can I get the PanelBar to fill 95% of its container so it doesn't shrink?
Nencho
Telerik team
 answered on 17 Jun 2014
1 answer
161 views
HI,

IS there any way to download rad chart and HTML chart in Excel using Rad grid 
Danail Vasilev
Telerik team
 answered on 17 Jun 2014
1 answer
89 views
Hi,
I am new to RAD controls, I have to create application having bellow functinality
1. RAD grid having 4 RAD combo columns and 1 Lable columns
2. RAD combo of column 2 will depend on value selected in RAD combo of column 1 and Column 3 will depend on value selected in column 1 & 2 
3. User should be able to add new row (single row) and should be able to do batch update
4. Databinding will be done on code behind.

Please let me know how to do this.


Shinu
Top achievements
Rank 2
 answered on 17 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?