Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views

My Unique customer ID is: WT370784

Hello,
how can i disabled DragAndDrop in the scheduler?


Best Regards.

Veselin Vasilev
Telerik team
 answered on 17 Mar 2010
1 answer
113 views
Why do these help docs indicate that in order to load data using a WCF service you must choose an Ajax-enabled WCF service? As far as I can tell, the only difference between that template and the regular WCF template item is that the former adds the AspNetCompatibilityRequirements attribute to the generate service. I've looked through the code extensively and cannot see why ASP.NET compatibility must be enabled in order to use this feature. Have I missed something, or do the docs just need to be updated?

Thanks!

--Kevin
Veselin Vasilev
Telerik team
 answered on 17 Mar 2010
2 answers
88 views
Hi,
I have a Nested Rad Grid which works exactly expected in IE but the problem comes when I test that page on Firefox. When I Expand the master record, it become smaller in width and display child records ... this behavior is OK. but when I collapsed the master record it should go back to the original width but it is remain smaller in width.

This behavior is in Fire Fox, in Internet explorer every thing is going good. Can you please look into it. ? I have some more problem with other controls as well ... which I will post later. Can you tell me do you support Cross Browsers ? 
Yavor
Telerik team
 answered on 17 Mar 2010
2 answers
330 views

Hi Everyone

I'm having an issue deleting a row in the radgrid.  I have gone through the samples, but they don't help...

My javaScript for the delete (which happens on 'RowSelect') is:

function RowSelected(sender, args) {

var DocumentManagementID = args.getDataKeyValue("DocumentManagementID");
var SCID = args.getDataKeyValue("SCID");
var table = sender.get_masterTableView().get_element();
var currentRowIndex = args.get_gridDataItem().get_element().rowIndex;
var row = table.rows[currentRowIndex];
table.deleteRow(currentRowIndex);
var tURL = 'frmSingleCapture_SupervisorVerification_ViewApp.aspx?DocumentManagementID=' + DocumentManagementID + '&SCID=' + SCID + '&SC=Yes'
window.open(tURL);

}

if you add alerts to the various var declarations, they all return items (table returns an [object] message) until current row.

agrs.get_gridDataItem() is null and the currentRowIndex therefore does not populate...

What am i doing wrong?

My grid itself looks as follows:

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="dsApproveCapture" GridLines="None" Skin="Sunset">
 <ClientSettings>
  <Selecting AllowRowSelect="true" />
  <Scrolling AllowScroll="true" />
  <ClientEvents OnRowSelected="RowSelected" />
 </ClientSettings>
 <PagerStyle Mode="Advanced" />
 <MasterTableView DataKeyNames="DocumentManagementID" DataSourceID="dsApproveCapture" ClientDataKeyNames="DocumentManagementID, SCID">
  <RowIndicatorColumn>
   <HeaderStyle Width="20px"></HeaderStyle>
  </RowIndicatorColumn>
  <ExpandCollapseColumn>
   <HeaderStyle Width="20px"></HeaderStyle>
  </ExpandCollapseColumn>
  <Columns>
   <telerik:GridBoundColumn DataField="DocumentManagementID" DataType="System.Int32" HeaderText="Doc ID" ReadOnly="True" SortExpression="DocumentManagementID" UniqueName="DocumentManagementID">
   </telerik:GridBoundColumn>
   <telerik:GridBoundColumn DataField="SCID" DataType="System.Int32" HeaderText="Capture ID" ReadOnly="True" SortExpression="SCID" UniqueName="SCID">
   </telerik:GridBoundColumn>
   <telerik:GridBoundColumn DataField="FirstInsertedDate" DataType="System.DateTime" HeaderText="First inserted date" SortExpression="FirstInsertedDate" UniqueName="FirstInsertedDate" DataFormatString="{0:dd MMM yyyy, HH:mm:ss}">
   </telerik:GridBoundColumn>
   <telerik:GridBoundColumn DataField="SchemeName" HeaderText="Scheme name" SortExpression="SchemeName" UniqueName="SchemeName">
   </telerik:GridBoundColumn>
   <telerik:GridBoundColumn DataField="ApplicationReference" HeaderText="Application reference" SortExpression="ApplicationReference" UniqueName="ApplicationReference">
   </telerik:GridBoundColumn>
   <telerik:GridBoundColumn DataField="FullName" HeaderText="Capturer" SortExpression="FullName" UniqueName="FullName">
   </telerik:GridBoundColumn>
  </Columns>
 </MasterTableView>
</telerik:RadGrid>

Mark
Top achievements
Rank 1
 answered on 17 Mar 2010
3 answers
1.0K+ views

I've recently upgraded from VWD 2008 Express to Visual Studio 2008 Professional edition, and installed Telerik's RadControls.

Now, when I create a new Telerik project, I get the following errors:

  • Namespace or type specified in the project-level Imports 'System.Xml.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
  • Namespace or type specified in the project-level Imports 'System.Linq' doesn't contain any public member [etc...]

The Web.config file contains the following:

    <compilation debug="false" strict="false" explicit="true">  
        <assemblies> 
            <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
            [etc...]  
        </assemblies> 
    </compilation> 
    <pages> 
        <namespaces> 
            <clear /> 
            [etc...]  
            <add namespace="System.Linq" /> 
            <add namespace="System.Xml.Linq" /> 
            [etc...]  
        </namespaces> 
        <controls> 
            [etc...]  
        </controls> 
    </pages> 
 
 

I can fix one error if I right-click on my references folder, select "Add Reference...", select the ".NET" tab, and find System.Xml.Linq, but System.Linq isn't there, or anywhere else that I can see.

Does anybody see what I'm doing wrong?

WombatEd
Top achievements
Rank 1
 answered on 17 Mar 2010
1 answer
79 views
I changed the language of the editor and put the files in the App_GlobalResources.
It worked perfectly.
Gerei deployed and put to the test server. It did not work.

So I took the language of the editor to be the default and rename the files from the App_GlobalResources taking the name of the language to be like the standard.

I tried and it worked.
Gerei deployed and put to the test server (Windows Server 2008). It worked perfectly.
Then tested on another server put the final (Windows Server 2003). It did not work.

Now I do not know how to solve.

What can be?
Rudá Cunha
Top achievements
Rank 2
 answered on 17 Mar 2010
1 answer
151 views
I want to add a time column in DialogOpener window, how can i do? current column only contain name column and size column. But it does't enough in some scene.

Best Regards
Rumen
Telerik team
 answered on 17 Mar 2010
2 answers
74 views
Hello,

I encountered a regression with the RadScheduler control when updating the dll's from Q3 2009 to Q1 2010.
I am using Prototype too (and cannot remove it).

So the problem occurs only with Q1 2010 and IE8.
I tested it with IE7, FireFox 3.6 & Chrome 5.0 and it works normally.

I created a very simple test page so you can reproduce this bug.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TelerikRegression.aspx.cs" Inherits="TelerikRegression" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<!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></title>  
    <script type="text/javascript" src="prototype.js"></script> 
</head> 
<body> 
    <form id="form1" runat="server">  
      
        <asp:ScriptManager ID="ScriptManager" runat="server"></asp:ScriptManager> 
          
        <telerik:RadScheduler runat="server" ID="RadScheduler" ShowFullTime="True" OverflowBehavior="Expand" 
            DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" >                      
        </telerik:RadScheduler> 
 
    </form> 
</body> 
</html> 

Thanks
Kamen Bundev
Telerik team
 answered on 17 Mar 2010
1 answer
325 views
I have a couple of examples of how to change the cursor for certain actions but, I can't seem to get it to work.

Here is what I am trying to do:
I am using a web service to populate my treenodes on demand. It work wonderfully.
To allow the user to copy one node (and its children) to another node, I have created a context menu for the nodes. When the user selects the "cut" option, I am disabling the node they just chose to cut, and I want to change the cursor to a "cut" cursor (I have an image for that cursor").

I tried change the document.body.style.cursor attribute in my OnClientContextMenuItemClicking event. But that would change the cursor for everywhere EXCEPT over the treeview. So, I figured the cursor is being changed/set at the node level.

So, I have tried this code for the OnClientMouseOver event of the nodes:

        function OnClientMouseOver(sender, args) { 
            var pasteType = document.getElementById('<%= hdnPasteOperationType.ClientID %>'); 
            switch(pasteType.value) 
            { 
                case "cut"
                    if (args.get_node()) { 
                        sender.trackChanges(); 
                        args.get_node().set_cssClass("copyCursor"); 
                        sender.commitChanges(); 
                    } 
                    break
                case "copy""copyAll"
                 
                    break
            } 
        } 
The code runs without any errors but, nothing happens. I originally did not have the trackChanges() and commitChanges() bit in there but, I thought it might help. It does not.

Can you advise me on the best way to handle what I am trying to accomplish.

When user selects "Cut", "Copy", or "Copy All" from the context menu, I want to change the cursor to an appropriate image, until they paste the nodes they just acted on to a new location.

Thanks for any advice you can give.






Veronica
Telerik team
 answered on 17 Mar 2010
1 answer
155 views
Hi All,

I gave a RadGrid with AddNewRecord option and edit option.

How can i cancel the editmode when i click on AddNewRecord and vice versa.

My senario is, if i click on edit grid will show edit mode, now with out canceling the edit mode, i will click on addnewrecord, then i want to cancel the edit mode and show insert mode.

How can i achieve this. Please help me regarding this.
Shinu
Top achievements
Rank 2
 answered on 17 Mar 2010
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?