Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
188 views

I am working with version 2011.3.1305.35 of the RadGrid. I have a wide grid with 19 columns. There is an additional field I need to add that contains comments, which by its self can be 1000 characters long. If I add that column to the end of the grid most of the data is cut off. What I want to do now is put that comments column in a details table so the user can click the expand icon and view the comments. I think I have it set up correctly however, there is code in the ItemCreated event that tries to run when the expand icon is clicked. What is the best way to determine if the item being created is part of the details table?

Here is how I have the set grid setup:

<telerik:RadGrid ID="tGrid" runat="server" AllowPaging="True" AllowCustomPaging="true"
                PageSize="500" AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0"
                OnNeedDataSource="tGrid_NeedDataSource" AllowMultiRowSelection="true" OnItemCreated="tGrid_ItemCreated"
                OnDataBound="tGrid_DataBound">
                <PagerStyle AlwaysVisible="True" Position="Top" />
                <MasterTableView Width="100%" DataKeyNames="schedID" ClientDataKeyNames="schedID">
                 <Columns> .... </Columns>
                    <DetailTables>
                        <telerik:GridTableView AdditionalDataFieldNames="schedComments" DataKeyNames="SchedID">
                            <Columns>
                                <telerik:GridBoundColumn DataField="schedComments" Display="true" UniqueName="schedComments"
                                    SortExpression="schedComments">
                                    <HeaderStyle Width="100%"></HeaderStyle>
                                    <ItemStyle Wrap="true" />
                                </telerik:GridBoundColumn>
                            </Columns>
                        </telerik:GridTableView>
                    </DetailTables>
                </MasterTableView>
</telerik:RadGrid>

dave
Top achievements
Rank 1
 answered on 06 Mar 2012
2 answers
97 views
Greetings,

I'm trying to open an a
<script type="text/javascript">
 
 
    function openRadWin() {
        radopen("Creation_Incident_Details.aspx","RadWindow1");
    }
    </script>
<asp:ImageButton ID="ImageButton8" runat="server" ImageUrl="~/img/dupliquer.jpg"
     CommandArgument='<%# Eval("idFamille") %>' ToolTip='<%# Eval("nomFamille") %>' OnClientClick="openRadWin(); return false;" />
  
       <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
<Windows>
    <telerik:RadWindow
        id="RadWindow1"
        runat="server"
        width="400px"
        height="400px"
        title="Telerik RadWindow">
    </telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>

The problem is my window appears with a huge bug: ( see attached file )



Please note i get this bug with all the browsers i'm using.
Do you know where this might come from ?

thank you in advance
Ronan BARRANGER
Top achievements
Rank 1
 answered on 06 Mar 2012
1 answer
89 views
The docs seem to be missing the classes EditorToolBaseCollection and EditorToolBase.

--
Stuart
Rumen
Telerik team
 answered on 06 Mar 2012
3 answers
105 views
There seems to be a lot of talk about widgets these days.
Any specific Telerik solutions ?
I was looking at using a rad dock project as the main window.
Also develop some server controls in separate projects and use them the the main project.
Add them as toolkit items perhaps.
The server control should be stand alone.
Is this possible
Is this the best solution
Any advise please.
Regards
Jim
Zdravko
Telerik team
 answered on 06 Mar 2012
4 answers
138 views
I'm implementing a mail for using RadEditor.

I need to be able to switch between Html and Plain Text.

I have a control on the page to do the switch, but I'm struggling with the code to actually update what the user sees in the editor.

Specifically, I'm trying to implement Outlook-like functionality so that, if they select Plain Text, all the formating is removed from any existing content and the font is switched to a non-proportional one.

I'm calling this when the format selection changes ...
setTimeout(function ()
{
    sender.fire('FontName', { value: 'Courier New' });
}, 300);
and whilst this changes the selected font, it doesn't change any existing text.

Is there a way for me to select all of the content before calling the .fire method?

--
Stuart

Rumen
Telerik team
 answered on 06 Mar 2012
8 answers
784 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
108 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
122 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
150 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
159 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
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?