Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
82 views
Is it possible to have drag'n'drop rows as well as having grid grouping enabled?  I can't seem to get d'n'd to work when I turn on grouping.  If it is possible, is there a guide I could follow to see where I'm going wrong?
Konstantin Dikov
Telerik team
 answered on 17 Jun 2014
1 answer
90 views
Only loading....

​ <telerik:RadMediaPlayer ID="RadMediaPlayer1" HDActive="True" Width="640" Height="356" runat="server">
</telerik:RadMediaPlayer>

In code behind
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
    RadMediaPlayer1.Source = "~/presentvideo/dansskola.mp4"
    RadMediaPlayer1.HDSource = "~/presentvideo/dansskola_hd.mp4"
    RadMediaPlayer1.Poster = "~/posters/dansskola.jpg"
End Sub

http://www.junis.net/test2/

Kjell
Top achievements
Rank 1
Iron
Iron
 answered on 17 Jun 2014
3 answers
105 views
I am using the drag and drop feature of the RadGrid. I am attempting to determine where in the grid I am dragging and dropping a specific row. Say my grid has 4 rows. I attempt to move the first row to the last row. When I go into e.DraggedItems.DataItem(0).Row.newRecord I see that the newRecord number is the same as oldRecord. I also get an error saying that a non-negative number is required for parameter length if I attempt to do something like

If e.DraggedItems.DataItem(0).Row.newRecord = e.DraggedItems.DataItem(0).Row.oldRecord Then
 
End If


I am only attempting to get the first row that is dragged as I have multi drag turned off.

Am I going about getting the dropped location correctly? Or is there a better way?
Alexander
Top achievements
Rank 1
 answered on 17 Jun 2014
1 answer
82 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
111 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
168 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
124 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
93 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
532 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
175 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?