Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
723 views
Hi,

I am using Rad Scheduler to show appointments, but i don't want to provide drag and drop of appointments option. Can you please tell me how can i disable drag and drop option for Rad Scheduler.

Thanks,
Maddela.
Peter
Telerik team
 answered on 06 Mar 2012
1 answer
70 views
hi

I have this
<telerik:ResourceType DataSourceID="sdsResourceItem" KeyField="Resource_ID" 
    Name="ResourceGroup" TextField="Resource_Name" ForeignKeyField="Resource_ID" />
</ResourceTypes>

How do i redirect to another page if no Resources are found or empty? Right now i am getting "System.NullReferenceException: Object reference not set to an instance of an object"

Thanks a lot.
Peter
Telerik team
 answered on 06 Mar 2012
1 answer
89 views

I have a contact us form that has been built and uses a RadInputManager to validate the input client side. The JavaScript that is created by the Input Manager seems to be invalid JavaScript as the variable name it uses are just numbers, e.g. var 0 = ...., and var 1 = ...

I have put a test page together which just includes two textboxes and a submit button to demostrate this. To view the page see http://learnbigteachbig.rocktime.net/test.aspx. The HTML for the page is also below.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>
 
<!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">
    <div>
 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadInputManager ID="RadInputManager1" runat="server" EnableEmbeddedSkins="True"
            EnableEmbeddedBaseStylesheet="False">
            <telerik:TextBoxSetting ClearValueOnError="False" EmptyMessage="Full name"
                ErrorMessage="Your full name is required">
                <TargetControls>
                    <telerik:TargetInput ControlID="fdFullName" />
                </TargetControls>
                <Validation IsRequired="True" ValidationGroup="ContactUs" />
            </telerik:TextBoxSetting>
            <telerik:RegExpTextBoxSetting ClearValueOnError="False" EmptyMessage="Please enter your email address"
                ErrorMessage="A valid email address is required" ValidationExpression="[^@]+@[^\.]+\..+">
                <TargetControls>
                    <telerik:TargetInput ControlID="fdEmailAddress" />
                </TargetControls>
                <Validation IsRequired="True" ValidationGroup="ContactUs" />
            </telerik:RegExpTextBoxSetting>
        </telerik:RadInputManager>   
 
        <asp:TextBox ID="fdFullName" runat="server" ValidationGroup="ContactUs"></asp:TextBox>
        <br /><br />
        <asp:TextBox ID="fdEmailAddress" runat="server" ValidationGroup="ContactUs"></asp:TextBox>
 
        <asp:Button ID="btnSubmit" runat="server" Text="Submit" ValidationGroup="ContactUs" />
    </div>
    </form>
</body>
</html>


The Javascript error that I get is

Error: missing variable name
Source File: http://learnbigteachbig.rocktime.net/test.aspx
Line: 79, Column: 4
Source Code:
var 0 = document.all ? document.all["0"] : document.getElementById("0");

I believe this is because variable names in JavaScript must begin with a letter, $ or _ to be valid. Is there something I need to add to the Input Manager to fix the problem?

Guy
Top achievements
Rank 1
 answered on 06 Mar 2012
7 answers
124 views
Hi, 

It's really simple, in a RadScheduler, in the methode AppointmentDataBound is it possible to add an icone before the text?

I done this for example : 
e.Appointment.Font.Bold = true;
e.Appointment.ForeColor = Color.Green;

But I would like to put an icone at the same time.

Thank you

Peter
Telerik team
 answered on 06 Mar 2012
2 answers
118 views
IE9 seems to be ignoring the style sheets from RadStyleSheet for a custom skin if it is not running in compatibility mode. I have a custom skin from the Visual Style Builder that I made into an assembly and added as a DLL to my website. I tested it on a sample page and this is the error that IE gives me:

SEC7113: CSS was ignored due to mime type mismatch
Telerik.Web.UI.WebResource.axd?compress=1&_TSM_CombinedScripts_=%3b%3bMySkin%3aen-US%3a759be785-708d-4ffb-9221-0edb1548ff41%3a7d6cac8e%3bTelerik.Web.UI%2c+Version%3d2012.1.215.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ab29b07e8-2c1e-44e5-9e1b-59bb6459fb01%3afe53831e

I'd prefer to keep away from compatibility mode. Thanks for the help.
Kei
Top achievements
Rank 1
 answered on 06 Mar 2012
6 answers
210 views
Is there a way to get the same look and feel of radtoolbar for the first level of menu items? What I mean is to have Images on the top of text with proper alignment. In the drop downs I can live with images on the side. I saw a reply to similar question in the thread http://www.telerik.com/community/forums/aspnet/toolbar/radtoolbar-dopdown-menu.aspx. This fix will not work for me. What I really want to achieve is posted in the picture

Suraj
Kate
Telerik team
 answered on 06 Mar 2012
1 answer
201 views
Hi, 

I have a radgrid within a multiPage interface. The grid populates fine. Here is the Aspx definition on this

<telerik:RadGrid ID="RadGrid1" runat="server" AllowCustomPaging="True" 

                    AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" 

                   GridLines="None" Skin="WebBlue">


I have an imagebutton that when clicked does this 

 Dim filename As String =  "whatever.xls"

        RadGrid1.ExportSettings.OpenInNewWindow = True

        RadGrid1.ExportSettings.FileName = filename

        RadGrid1.ExportSettings.ExportOnlyData = True

        RadGrid1.ExportSettings.IgnorePaging = True

        RadGrid1.ExportSettings.OpenInNewWindow = True

No matter what, the resulting excel only contains the first 25 rows. I have also tried forcing the above code by adding the following

  RadGrid1.MasterTableView.AllowPaging = false

        RadGrid1.Rebind()

'... the above code here and then..

 RadGrid1.MasterTableView.AllowPaging = true

        RadGrid1.Rebind()

No approach seems to work. There is no AjaxManager involved, and the grid itself is not ajaxified. Anyone out there have any ideas? The only complication in all of this is that the grid resides in a multipage / tabbed interface, but the export to Excel button resides outside of the multipiage. Also, I am using MasterPages - pretty simple there - no AjaxManager there either. Any thoughts appreciated.

      

Andrey
Telerik team
 answered on 06 Mar 2012
1 answer
85 views
Hi,
I would like to know if Radgrid would help me accomplish my task in an easy and efficient manner. I'am giving a lengthy description.
I have a ArrayList of StudentGroupOrder as datasource.

  • I would like to have grid that should look like the one in attachments.
  • Each StudentGroupOrder has propertes - ID, ArrayList of BookOrder, StudentCount (Fill the first row only)
  • Each BookOrder object has Decription, Rules, Price, Quantity properties that should be used to fill the grid.
  • Each StudentGroupOrder should populate 1 column. i.e. instead of populating by row, I want it to populate by column.
  • For more information, all the BookOrder objects will have same values for all properties but ID, Quantity.
  • I need paging.
  • Each page should have set 4 columns per page. If there are no objects to fill all the columns, empty columns should be created, for user to create new objects.

Can we accomplish it with RadGrid.

Andrey
Telerik team
 answered on 06 Mar 2012
1 answer
98 views
Hi,
I am using a css file to assign the style of rad controls in page, i call this css in all pages as below
<LINK rel="stylesheet" type="text/css" href="~/_layouts/My_Project_Folder/Style/Styles.css"/>
i have set the width of radtextbox in this css. and this works when using telerik Q3 2009, but when i change to Q1 2012, the width of textbox not showing as mentioned in this css file.
how can i fix this issue.

thanks in advance.
Jiju
Galin
Telerik team
 answered on 06 Mar 2012
2 answers
85 views
Dear all,

Just starting using the Telerik Commercial Components our company did buy.

After successfully using the RadGrid I found that all but the navigation arrows at the bottom are working was expected.
When you have multiple pages you van click the page number to navigate to the respective page, this is working flawless.

When you try to use the arrows next to the page numbers there is a post-back but the page viewed is still the samen.
Also the >> and << to jump to the last and first page give a post-back but the page viewed remains the same.

For clarification, the highlighted page number also remains the same, so not the data shown in the viable grid is the correct one for the highlighted page-number.

When anyone would like to have more information, please ask.

    <telerik:RadGrid ID="RapportGrid" runat="server"  CellSpacing="0" 
        GridLines="Horizontal" AllowPaging="True" Height="447px" Culture="nl-NL">
        <ClientSettings>
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
        </ClientSettings>
        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
    </telerik:RadGrid>
Zeo
Top achievements
Rank 1
 answered on 06 Mar 2012
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?