Telerik Forums
UI for ASP.NET AJAX Forum
17 answers
305 views
I have 2 grids that I'm able to drop rows between. My issue is that when dragging from one to the other, the record has to be dropped on top of an existing record and not in the open area underneath of it (between the existing records and the footer). If I drop into that "open area", the RowDrop event never fires and the move never takes place.

When there are no records in the grid to be dropped into, I have a "NoRecordsTemplate" and a drop occurs without any issues.

Is there a way to make this open area between the last record and the footer a "droppable" area? Do I have to display an image there of some sort (to mock the Recycle Bin functionality in the sample)? If so, how would I do that? Is there javascript somewhere that is cancelling this drop so that the AJAX RowDrop event is never firing?

Note, the drag/drop sample has the same issue.

Thanks!
Doug Beard
Top achievements
Rank 1
 answered on 07 Oct 2009
1 answer
163 views
I currently have a usercontrol that is loaded into my tooltip. The UC needs to have our product rating script on it that comes from power reviews. This is an inline JS thats placed in the code where we want the rating stars to appear.
<asp:Literal ID="ltrCustomerReviewSnippet" runat="server" Visible="false"> 
  <div class="pr_snippet_category" > 
    <span id="pr_snippet_headertxt" class="bv-light-grey">Product Rating</span> 
    <script type="text/javascript"> 
       var pr_snippet_min_reviews=0; POWERREVIEWS.display.snippet(document, { pr_page_id : "PAGE_ID" });  
    </script> 
  </div> 
</asp:Literal> 

I know there are issues with JS running with Ajax, as per this thread, but I can't understand how to use RegisterStartupScripts or anything else of that sort to perform inline JS such as this. Can anyone explain this, maybe with some code snippets?

Thx!
Tsvetie
Telerik team
 answered on 07 Oct 2009
3 answers
303 views
I created a simple 1 page web that uses the radwindowmanager and the radOpen call. I have place this in a javascript function as shown in examples applications. I can not get the page to compile in order to test this. Any suggestions as to why is will not compile?

This is my aspx code:

<%

@ Page Language="vb" AutoEventWireup="false" CodeBehind="Telerik.aspx.vb" Inherits="WebApplication1.Telerik" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml" >

 

<

 

head runat="server">

 

 

<title>WebForm1</title>

 

 

<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"/>

 

 

<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1"/>

 

 

<meta name="vs_defaultClientScript" content="JavaScript"/>

 

 

<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"/>

 

 

<script type="text/javascript" language="javascript">

 

 

function openRadWin() {

 

radopen(

"http://www.microsoft.com", "RadWindow1");

 

}

 

</script>

 

</

 

head>

 

<

 

body ms_positioning="GridLayout">

 

 

<form id="Form1" method="post" runat="server">

 

 

<telerik:RadScriptManager ID="ScriptManager" runat="server"></telerik:RadScriptManager>

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">

 

 

<Windows>

 

 

<telerik:RadWindow ID="RadWindow1" runat="server" Behavior="Maximize"></telerik:RadWindow>

 

 

</Windows>

 

 

</telerik:RadWindowManager>

 

 

<asp:Button ID="btn" runat="server" OnClick="openRadWin()" Text="test" />

 

 

</form>

 

</

 

body>

 

</

 

html>

This is the compiler error description:

 

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30456: 'openRadWin' is not a member of 'ASP.telerik_aspx'.

Source Error:

Line 26:     </Windows>
Line 27:     </telerik:RadWindowManager>
Line 28: <asp:Button ID="btn" runat="server" OnClick="openRadWin()" Text="test" />Line 29:     </form>
Line 30: </body>

Source File: C:\inetpub\wwwroot\WebApplication1\Telerik.aspx    Line: 28


 


c:\windows\system32\inetsrv> "c:\Windows\Microsoft.NET\Framework\v3.5\vbc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webapplication1\12e8b908\160a3c8c\App_global.asax.sebioeuu.dll" /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\assembly\GAC_MSIL\Telerik.Reporting\3.1.9.807__a9d7983dfcc261be\Telerik.Reporting.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webapplication1\12e8b908\160a3c8c\assembly\dl3\7cc3adc9\008d8bdb_d825ca01\Telerik.Web.UI.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webapplication1\12e8b908\160a3c8c\assembly\dl3\05c6249e\a66de186_bf46ca01\WebApplication1.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing.Design\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.Design.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\assembly\GAC_MSIL\Telerik.ReportViewer.WebForms\3.1.9.807__a9d7983dfcc261be\Telerik.ReportViewer.WebForms.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webapplication1\12e8b908\160a3c8c\App_Web_zyabhy9q.dll" /D:DEBUG=1 /debug+ /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls /warnaserror- /optionInfer+  "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webapplication1\12e8b908\160a3c8c\App_Web_zyabhy9q.0.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\webapplication1\12e8b908\160a3c8c\App_Web_zyabhy9q.1.vb"


Microsoft (R) Visual Basic Compiler version 9.0.30729.1
Copyright (c) Microsoft Corporation.  All rights reserved.

C:\inetpub\wwwroot\WebApplication1\Telerik.aspx(25) : warning BC40000: 'Public Property Behavior() As Telerik.Web.UI.WindowBehaviors' is obsolete: 'This property is obsolete. Please use Behaviors instead.'.

            __ctrl.Behavior = Telerik.Web.UI.WindowBehaviors.Maximize
            ~~~~~~~~~~~~~~~                                          
C:\inetpub\wwwroot\WebApplication1\Telerik.aspx(28) : error BC30456: 'openRadWin' is not a member of 'ASP.telerik_aspx'.

            AddHandler __ctrl.Click, AddressOf Me.openRadWin()
                                               ~~~~~~~~~~~~~  
C:\inetpub\wwwroot\WebApplication1\Telerik.aspx(28) : error BC30456: 'openRadWin' is not a member of 'ASP.telerik_aspx'.

            RemoveHandler __ctrl.Click, AddressOf Me.openRadWin()
                                                  ~~~~~~~~~~~~~  

dhuss
Top achievements
Rank 1
 answered on 07 Oct 2009
1 answer
87 views
Hello,

I've looked through the existing threads and couldn't find an answer to my question.

I've got a page with a number of fields (textarea, input text, rad editor). At the bottom of the page I have placed the rad spell control to spellcheck all the fields above. It does it - no complains. The only issue I have come across here is that when I have got about 10 fields on the page its really hard to understand which of them is being checked at the moment.
Is there any way to move the focus from one field to another while doing the spell check? Or any other suggestion?

Thank you

Dima
Rumen
Telerik team
 answered on 07 Oct 2009
1 answer
94 views
I am loading user controls dynamically when user clicks on each tab.
Button click event in the user control seems not to be firing. any idea?
Paul
Telerik team
 answered on 07 Oct 2009
4 answers
177 views
My product makes use of the splitter control. Navigation is a thin pane on the left and the main content is on the right.

The thin navigation pane has a menu on it. Since the menu is in its own iframe, submenus expand down instead of right, simply because there is no room in the frame to expand right.

I was given a request to make the menu expand right instead of down, which would require it to expand outside of the radsplitter pane that it's in. Is this even possible? If so, how do I do it?
Jeffrey Sylvan
Top achievements
Rank 1
 answered on 07 Oct 2009
8 answers
229 views
I am displaying multiple appointments in a timeslot. I want to show some spacing between two slots but unfortunately no way I could get that. It always displays all timeslots together.

I tried different ways and one was to set margin-left for the following:

.rsApt.PencilPage
{
    margin-left: 5px;
}
.rsApt.PencilPage .rsWrap
{
    border: 0;
    margin-left: 0px;
}
.rsApt.PencilPage .rsAptInner
{
    border: 0;
    margin-left: 0px;
}


I tried margin-left for all 3 of above one after another but none works. Finally I did following:

.rsApt.PencilPage div
{
    margin-left: 5px;
}

that affects all divs within - so it worked but still this is not ideal solution. It displays the bottom border with some margin with left border.

Please let me know how should I do this?


Thanks,
Piyush
Peter
Telerik team
 answered on 07 Oct 2009
7 answers
493 views
We want to hide/remove "Show 24 hours..../Show business hours..." link from bottom/left side of the control. Is their a property to hide it?

One more thing, we are showing all 24 hours, but when the scheduler opens up, we need "06:00 AM" as the first row at the top. Is their a way to scroll the control to a specific time?

Please let me know.

Thanks.
Rana.
Peter
Telerik team
 answered on 07 Oct 2009
1 answer
92 views
Hello,
this is probably easy and I'm missing something simple. I have small CMS web app that uses editor control.  My question is how do I link to a page in a current web application?  I tried Hyperlink Manager, Document Manager without  much success.

Thank you!
Rumen
Telerik team
 answered on 07 Oct 2009
3 answers
192 views
Hello,

I want to extend linkmanager usercontrol dialog of radeditor.
I have added a button control in LinkManager.ascx. by setting the title etc as done for 'Insert button'....

<input type="text" id="LinkURL" style="width: 222px;" />
<button type="button" id="CustomButton" style="min-width: 80px; _width: 80px; margin-left: 8px;">
<script type="text/javascript">
setInnerHtml("CustomButton", localization["Custom"]); 
</script> 
</button>

but when dialog opened the button's title is set as 'undefined'. How can this be acheived?

Also, I want to pass some value to the usercontrol to decide whether to show or hide this new 'custom button'.
I tried something in 'Page_PreRenderComplete' in which I have my RadEditor like ..

 Dim showcustom As Boolean = True
Dim linkManager As Telerik.Web.UI.DialogDefinition = radEHtmlContent.GetDialogDefinition("LinkManager")
linkManager.Width = "500"
linkManager.Height = "300"
linkManager.ClientCallbackFunction = ""... here can I pass the value of showcustom and how to read that in LinkManager.ascx to show/hide the 'custombutton'

Quick reply will be of great help.

Thanks  in advance.
skelkar
Rumen
Telerik team
 answered on 07 Oct 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?