Telerik Forums
UI for ASP.NET AJAX Forum
14 answers
340 views
Hello,

I am doing some functionality with drag & drop effect in which I have to drag from one listview to another listview and also in the same listview for reordering purposes. What happens is that I can't capture the drop when user drops inside the listview but outside an html element (LinkButton, Label, etc).

What I tried to do was to put in my ItemTemplate a div running at server and then tried with a Panel containing the data I'm showing in the ListView, so my codebehind could capture this as a htmlElement, but it won't, DestinationHtmlElement is an empty element.

What should I do??

I was looking the ListBox aproximation and the drag & drop example is more or less what I am looking for, but I did not use that because I have to customize the List content as a Link followed by a Label and also it shouldn't have a scroll but it should have a variable height depending on the ammount of data it has

Hope you can help me soon, and if you didn't understand me just let me know

Thanks in advance,

Camilo
Pavlina
Telerik team
 answered on 02 Feb 2015
4 answers
2.2K+ views
Hi,

I am using RadToolTipManager control and displaying tooltip. Tooltip text i am reading from the database.
for normal text i am able to display tooltip with no problem, but in my text there are carriage return characters (like \n \r),
that causes problem and does not display and gives me error.

Please see code:

 

private void PopulateQuestion()

 

{

lblSectionName.Text =

this.Question.PageTitle;

 

divSection.Visible = (

this.Question.PageTitle != string.Empty);

 

lblQuestionSequence.Text =

"Q." + this.Question.Sequence.ToString() + " - ";

 

lblQuestionText.Text =

this.Question.QuestionText;

 

 

// Set help icon alt text

 

 

//imgHelp.AlternateText = this.Question.AdditionalContent;

 

 

//imgHelp.Attributes.Add("title", this.Question.AdditionalContent); // For FireFox

 

 

// string s = "Khwaja \n saiyed";

 

 

// string newstr = s.Replace("\n", "<br/>");

 

 

//this.RadToolTipManager1.TargetControls.Add(imgHelp.ClientID, s.ToString(), true);

 

 

this.RadToolTipManager1.TargetControls.Add(imgHelp.ClientID, this.Question.AdditionalContent.ToString(), true);

 

 

}


 

 

protected void RadToolTipManager1_AjaxUpdate(object sender, Telerik.Web.UI.ToolTipUpdateEventArgs e)

 

{

 

Label lblInsideToolTip = new Label();

 

lblInsideToolTip.Text = e.Value;

e.UpdatePanel.ContentTemplateContainer.Controls.Add(lblInsideToolTip);

 

 

 

 

}


I hope this makes sense to all of you.

Thanks
Khwaja

Nicolaï
Top achievements
Rank 2
 answered on 02 Feb 2015
1 answer
115 views
Hi,
I' working with the version 2014.2.724.45 and our standard is IE9 and I have problems with the clientPasteHtml.  My test page is very simple:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TelerikRadEditorPaste.Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <script type="text/javascript">
            function onClientPasteHtml(editor, args) {
                var commandName = args.get_commandName();
                if (commandName == "Paste") {
                    alert('OK --> CommandName = ' + commandName);
                } else {
                    alert('NOT OK --> CommandName = ' + commandName);
                }
            }
        </script>
         
        <asp:ScriptManager runat="server"></asp:ScriptManager>
 
        <telerik:RadEditor ID="radEditorMandate" runat="server" Width="856px" Height="590px" StripFormattingOptions="NoneSupressCleanMessage, ConvertWordLists, MSWordNoMargins" OnClientPasteHtml="onClientPasteHtml">
            <ContextMenus>
                <telerik:EditorContextMenu TagName="*">
                    <telerik:EditorTool Name="Paste" />
                </telerik:EditorContextMenu>
            </ContextMenus>
            <Tools>
                <telerik:EditorToolGroup>
                    <telerik:EditorTool Name="Paste" />                   
                </telerik:EditorToolGroup>
            </Tools>
            <CssFiles>
                <telerik:EditorCssFile Value="~/RadEditor.css" />
            </CssFiles>
        </telerik:RadEditor>
    </form>
</body>
</html>

If we use the keyboard to paste text (ctrl+v), the command name is OK (Paste), but if we use the toolbar or the context menu, the command name is not OK (undefined)

Could you help to solve this problem??

I tested with IE11 and I meet the same behavior.

Thank you and have a nice day.

Steeve
Ianko
Telerik team
 answered on 02 Feb 2015
1 answer
97 views
Hi there,

I am using a custom skin build with the Visual Style Builder and I am having trouble implementing the following scenario:

When I hover over a main item the color of the main item changes from Red to White, which is OK (see Main item hover.png)
When I hover over a sub item I want the color of the Main text item still be White. Now it changes back to Red (see Sub item hover.png).

Anybody any idea?Thanx!

Marcel
Ivan Danchev
Telerik team
 answered on 02 Feb 2015
6 answers
724 views

I drag a RadScheduler to my webform, and start debug, then I get an error message as following. Please tell me how to solve the problem. Thank you very much for your helping.

DataKeyField, DataSubjectField, DataStartField and DataEndField are required for databinding

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: DataKeyField, DataSubjectField, DataStartField and DataEndField are required for databinding

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: DataKeyField, DataSubjectField, DataStartField and DataEndField are required for databinding]
Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.EnsureDataFieldsAreSet() +205
Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.GetAppointments(RadScheduler owner) +130
Telerik.Web.UI.RadScheduler.PerformSelect() +240
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
Telerik.Web.UI.RadScheduler.EnsureDataBound() +116
Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +144
Telerik.Web.UI.RadScheduler.CreateChildControls() +47
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +41
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360


Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
Boyan Dimitrov
Telerik team
 answered on 02 Feb 2015
1 answer
204 views
Hi All,

Very odd behaviour here...pretty basic radwindow.  Opens based on Hyperlink ElementOpenerID.
See the page here: http://dcmapsa.azurewebsites.net/map.aspx

Bottom left under Help, there are 3 links. They should open 3 different windows.  Simply does not work.  My guess is code conflict somewhere.

Odd thing is that it works on this page without issue...
http://dcmapsa.azurewebsites.net/default.aspx

Anybody got any ideas on this glitch?

Thanks
Brett

​
Marin Bratanov
Telerik team
 answered on 02 Feb 2015
1 answer
115 views
Hi,

I have a grid I am converting from an Infragistics WebGrid to a Telerik RadGrid.  It is a relatively simple grid.  I need to submit the rows after an entire form is filled out.  There can be one to many rows.  I have tried this in a sub that gets called when entire form is submitted:

  For Each row As GridDataItem In RadGrid1.MasterTableView.Items

but it always returns false

Am I doing this correctly?  Does it actually have to be done as a grid event somehow?  How would I do that if I don't want to submit it until a user clicks an asp submit button.  I'm using vb.net by the way.

Thanks for your help!

Julie
Eyup
Telerik team
 answered on 02 Feb 2015
7 answers
207 views
Hi,

I have a question about the RadGrid when you use both paging and grouping. If all the groups are expanded it works fine. But if i collapse a couple of groups, the rowcount of the group are still counted as if they where expanded?

For instance if I have 5 groups with 10 rows each and a pagesize of 20. When I start the page all the groups are expanded, and the first page is shown with 2 groups of 10 rows each. That is good beacuse I want to show 20 rows on each page. But then if I have a "Collapse All"-button that I press, there is only 2 rows showing on my first page? The 2 groups collapsed is only 2 rows but is counted as if thay where expanded?

Is there any way to solve this? I want the page to show as much data as I have set in the pagesize.

This is my grid (I have tried both Client and Server GroupLoadMode):

 

 

<telerik:RadGrid ID="RadGridBuyWarrants" runat="server"

 

 

 

 

OnNeedDataSource="RadGridBuyWarrants_NeedDataSource" AutoGenerateColumns="false"

 

 

 

 

AllowSorting="true" AllowPaging="true" PageSize="20"

 

 

 

 

ShowGroupPanel="false" onitemcommand="RadGridBuyWarrants_ItemCommand"

 

 

 

 

onitemdatabound="RadGridBuyWarrants_ItemDataBound">

 

 

 

<PagerStyle Mode="NumericPages" />

 

 

 

 

<ClientSettings AllowGroupExpandCollapse="True" AllowDragToGroup="True" AllowColumnsReorder="True"/>

 

 

 

<MasterTableView Width="100%" GroupLoadMode="Server">

 


This is my expand/collapse all code:

 

 

foreach (GridItem item in RadGridBuyWarrants.MasterTableView.Controls[0].Controls)

 

 

{

 

 

 

if (item is GridGroupHeaderItem)

 

 

{

 

item.Expanded =

 

true;

 

 

}

 

}


Would be very greatful if anyone could help me solve this.
Pavlina
Telerik team
 answered on 02 Feb 2015
1 answer
96 views
Hi,

I have setting RadScritManager and RadTabStrip controls at the ASP.NET page. I just have added following codes to the web user control under RabTableStrip for word document by using Word API library. However, I received an error that said

response.Clear();
response.AddHeader("content-disposition", "inline; filename=\"" + "VADS_Cost_Estimate" + ".doc\"");
response.ContentType = "application/msword";
doc.SaveAs(response.OutputStream);
response.end();

Please let me know if you assit me with that.

Thanks,
Chi Ming 

 

 

 

 

​
Boyan Dimitrov
Telerik team
 answered on 02 Feb 2015
5 answers
75 views
RadEditor  v.21014.3.1024.40

I am having an issue with the Text Align Buttons.  

I am loading some html with <p align=''>  tags.  When I use the editor to change the alignment I am getting the original align element and a style element.  Which is causing some bad rendering when I use the html elsewhere.   


Original editor Content
<p align=\"center\">TEL: XXX-XXX-3465 &bull; WEB: <a href=\"http://www.wxxxxxxxxxxl.com\">www.wxxxxxxxxxx.com</a></p>



Editor Content after changing alignment to Left
<p align=\"center\" style=\"text-align: left;\">TEL: XXX-XXX-3465 &bull; WEB: <a href=\"http://www.wxxxxxxxxxx.com\">www.wxxxxxxxxxx.com</a></p>

See how it keep the align='center' and added style='text-align: left'  


I have the following Filters disabled.  
RadEditor2x.DisableFilter(EditorFilters.ConvertTags);
        RadEditor2x.DisableFilter(EditorFilters.ConvertFontToSpan);
        RadEditor2x.DisableFilter(EditorFilters.ConvertToXhtml);
        RadEditor2x.DisableFilter(EditorFilters.FixUlBoldItalic);
        RadEditor2x.DisableFilter(EditorFilters.MozEmStrong);
        RadEditor2x.DisableFilter(EditorFilters.ConvertInlineStylesToAttributes);



Is the a filter that i need to enable or disable that will correct this?  

Additionally, I would prefer that the alignments render as align = ' ' not style = ' '  

















Ianko
Telerik team
 answered on 02 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?