Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
49 views
Hello,
         I used Rad Scheduler So in calender show the same colour for Definition,Development,Testing,Retesting in selected date like screen shot of MyCalenderView. This is wrong. It should different-different colour for Definition,Development,Testing,Retesting in selected date like screen shot of Calender_View.
         Attach the screen shot.

<telerik:RadScheduler runat="server" ID="rscCalender"  
            
          GroupBy="ProjectID" GroupingDirection="Vertical"  
            DataSourceID="EventsDataSource" 
            DataKeyField="ProjectID"
            DataSubjectField="Stage" 
             FirstDayOfWeek="Monday" LastDayOfWeek="Friday"
              DataStartField="Phase_Start_Date" DataEndField="Phase_End_Date"
             SelectedView="MonthView" OnTimeSlotCreated="rscCalender_TimeSlotCreated"
            OnAppointmentInsert="rscCalender_AppointmentInsert" OnAppointmentUpdate="rscCalender_AppointmentUpdate" AllowDelete="false" AllowEdit="false" AllowInsert="false" >

            <MonthView FirstDayHeaderDateFormat="''d''" />
          
            <AdvancedForm Modal="false"></AdvancedForm>
           
            <ResourceHeaderTemplate >
                <asp:Panel ID="ResourceImageWrapper" runat="server">               
                    <asp:LinkButton ID="lnkProjectName" runat="server" ></asp:LinkButton>
                </asp:Panel>
            </ResourceHeaderTemplate>
            <ResourceTypes>
                <telerik:ResourceType KeyField="BuildID" Name="ProjectID" TextField="ProjectName" ForeignKeyField="BuildID"
                 DataSourceID="ProjectSource"  ></telerik:ResourceType>
            </ResourceTypes>
          <DayView  UserSelectable="false"/>
   
            <WeekView UserSelectable="false" />
    <TimelineView  UserSelectable="false"/>
        </telerik:RadScheduler>

Boyan Dimitrov
Telerik team
 answered on 14 Jan 2015
5 answers
280 views

Hello, i am sending the html code of a page to display it in a radeditor so i can export it to rtf or to pdf. However, i'm getting this error:


Invalid XHTML. RadEditor content should be correct XHTML in order to export to PDF.
Parse error:
Declaración DTD inesperada. Línea 674, posición 13.
at line:
<body><!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">



this is how my radeditor is defined:
<telerik:RadEditor ID="redCertificate" runat="server" Width="90%" Height="800px"
                Language="es-ES" onexportcontent="redCertificate_ExportContent">
                <exportsettings openinnewwindow="true" filename="Certificate">
                <Rtf PageHeader="RadEditor content" />
            </exportsettings>
                <content></content>
            </telerik:RadEditor>

and this is the code behind

protected void btnPDF_Click(object sender, EventArgs e)
        {
            redCertificate.ExportToPdf();
        }

Any ideas what could be causing this error?

thanks in advance
Ianko
Telerik team
 answered on 14 Jan 2015
1 answer
76 views
Currently have radEditors throughout our site and having difficulties pasting text into them and unsure of what is causing the problem.  The context menu appears and gives us the options of how to paste and clicking on those options nets us no results.  Any suggestions?

We use RadEditor in another project and pasting works fine.  Tried comparing just the controls between the sites and the differences were as follows: ContentAreaMode="Div" RenderMode="Native"

The site where pasting doesn't work is an intranet site where as the one that does work is an internet site.  Not sure if that makes a difference.
<telerik:RadEditor Width="75%" Height="150" ToolsFile="~/Common/ToolSetMinimal.xml" ID="_editCapComments" runat="server"  EditModes="Design" OnClientLoad="OnClientEditorLoad">
</telerik:RadEditor>
Ianko
Telerik team
 answered on 14 Jan 2015
1 answer
134 views
I am using API to set much of the properties of the series because they are dynamically build.
when I create a series / then add it to PlotArea the values of the colors are not set. I suppose they set when chart is bound / or rendered.
is there an early API way to tell the markers to just auto fill with whatever their color is going to be?

or will I need to explicitly set the marker color/style myself and rotate through a range of colors/shapes as I add series?
right now the system auto creates the colors.
Danail Vasilev
Telerik team
 answered on 14 Jan 2015
1 answer
397 views
how can I with API rotate the X-axis labels?
I tried Rad1.PlotArea.XAxis.StartAngle = 0
but that doesn't seem to be what I think it should be.

I want to rotate them as in my image
Doug
Top achievements
Rank 1
 answered on 14 Jan 2015
0 answers
47 views
I need to create a usercontrol in VS2013 with a RadHtmlChart
using a customised skin.
s
Top achievements
Rank 1
 asked on 13 Jan 2015
0 answers
69 views
Hi Rahul, I had a detailed discussion with Dave today regarding “Drag and Drop” functionality and functionality that Dave’s envision is along the lines of “User being able to select a nested/merge row and drop it. Some Examples eg.

[url=http://postimg.org/image/qkh9toniz/][img]http://s17.postimg.org/qkh9toniz/Pic_1.jpg[/img][/url]
Hercules
Top achievements
Rank 1
 asked on 13 Jan 2015
1 answer
43 views
Please help,

Unable to increase the width of the HoverBox which appear when selected the Menu.
Ivan Danchev
Telerik team
 answered on 13 Jan 2015
0 answers
70 views
I have 2 tables which are related - Clients and ClientContact.

Clients -
ClientID int32
Company varchar
Active bit

ClientContact
ClientID int32
ClientContact varchar

When I use the dropdownlist control on the contact page and set the data source to only show active clients, if the current company is not active it disappears in in edit mode - should I be adding the current value in programmatically or changing the list on insert mode?

 <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
                    AllowSorting="true" AllowAutomaticUpdates="True" AutoGenerateColumns="False" AllowFilteringByColumn="true"
                    DataSourceID="dsContacts" OnDataBound="RadGrid1_DataBound" ShowStatusBar="true" OnItemDataBound="RadGrid1_ItemDataBound" OnInsertCommand="RadGrid1_OnInsertCommand"
                    OnPreRender="RadGrid1_PreRender">
                    <PagerStyle Mode="NextPrevAndNumeric" />
                    <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="ClientContactID"
                        DataSourceID="dsContacts" HorizontalAlign="NotSet" Font-Names="Arial"   Font-Size="8" >
                        <CommandItemSettings AddNewRecordText="Add new contact" />
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton">
                                <HeaderStyle Width="20px" />
                                <ItemStyle CssClass="MyImageButton" />
                            </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn DataField="ClientContactID" DataType="System.Int32" HeaderText="ContactID"
                        ReadOnly="True" SortExpression="ClientContactID" UniqueName="ClientContactID" Display="False">
                    </telerik:GridBoundColumn>                    
                    <telerik:GridDropDownColumn DataField="ClientID" DataSourceID="dsClient" HeaderText="Client"
                        ListTextField="Company" ListValueField="ClientID" UniqueName="ClientID" Display="False">
                    </telerik:GridDropDownColumn>  
                    
                           
                            <telerik:GridTemplateColumn HeaderText="Name" SortExpression="ClientContact" UniqueName="TemplateColumn1"
                                Display="False" EditFormColumnIndex="0">
                                <EditItemTemplate>
                                    <br />
                                    <asp:TextBox runat="server" ID="tbName" Text='<%# Bind("ClientContact") %>' Width="400px"></asp:TextBox>
                                    <span style="color: Red">*</span>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="tbName"
                                        ErrorMessage="This field is required" runat="server">
                                    </asp:RequiredFieldValidator>
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="ClientContact" HeaderText="Client Contact" SortExpression="ClientContact"
                                UniqueName="ClientContact" ReadOnly="True">
                            </telerik:GridBoundColumn>
                             
                                           
                                                      
                        </Columns>
                         <EditFormSettings >
                        <EditColumn ButtonType="ImageButton" />
                    
                </EditFormSettings>
                    </MasterTableView>
                    <ValidationSettings CommandsToValidate="PerformInsert,Update" />
                </telerik:RadGrid>

                 <asp:SqlDataSource ID="dsClient" runat="server" ConnectionString="<%$ ConnectionStrings:connDatabase %>"
                    SelectCommand=" SELECT * FROM [Clients]   ORDER BY [Company] ">
                </asp:SqlDataSource>

Code Not Working
        protected void RadGrid1_OnInsertCommand(object sender, EventArgs e)
        {
            SqlConnection conn = null;

            //  Create a connection to the "pubs" database located
            // on the local computer.
            conn = new SqlConnection(ConfigurationManager.ConnectionStrings["connDatabase"].ConnectionString);

            // Connect to the SQL database using a SQL SELECT query to get
            // all the data from the "Titles" table.
            SqlDataAdapter myCommand = new SqlDataAdapter("SELECT * FROM Clients WHERE Active=1 ORDER BY Company", conn);
            // Create and fill a DataSet.
            DataSet ds = new DataSet();
            myCommand.Fill(ds);


            //GridEditableItem item = e.Item as GridEditableItem;
           // DropDownList list = item.FindControl("ClientID") as DropDownList;
           // list.DataSource = ds;
            //list.DataTextField = "Company";
            //list.DataValueField = "Company";
            //list.DataBind();


        }
Julie3
Top achievements
Rank 1
 asked on 13 Jan 2015
16 answers
699 views
Hello,

I have two problems with my RadComboBox :

1. The RadComboBox doesn't resize automatically when we resize the browser window.
2. When we open the RadComboBox we show the dropdown, so far all is well, but when we "scroll" on the page, the dropdown detach from the input field (as you can show in the two picture attached below).

Here is the ASP.NET code :
                                            
<telerik:RadComboBox ID="PrjComboBox" runat="server"
    AllowCustomText="true"    
    MaxLength="500"
    Width="80%"
    OnPreRender="PrjComboBox_PreRender">
    <ItemTemplate>
        <div>
            <asp:CheckBox runat="server" ID="PrjComboBoxItemCheckBox"
                Checked="false"
                onclick="onPrjComboBoxItemCheckBoxClick(this)"/>
            <asp:Label runat="server" ID="PrjComboBoxItemLabel"
                            AssociatedControlID="PrjComboBoxItemCheckBox"
                                Text='<%# DataBinder.Eval(Container, "Value") %>'>
                        </asp:Label>
                 </div>
    </ItemTemplate>                                                   
</telerik:RadComboBox>

Thanks for your help!

Anatoliy
Top achievements
Rank 2
 answered on 13 Jan 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?