Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
251 views
I want to implement something similar to

http://www.extjs.com/deploy/dev/examples/grid/property-grid.html

Do we have any equivalent control in Telerik?
Rumen
Telerik team
 answered on 04 May 2015
1 answer
140 views

I have read, searched and tried different things but cannot get this to work. I have a lot of resources and when you scroll down, the alignment gets more and more off with the appointment rows. So much that you cannot tell where the appointment goes (see attached image). I have my doctype at <!DOCTYPE xhtml strict>. I have removed all styles and css at this point, as nothing was working. I'm trying to start fresh. My RadScheduler is :

 

<telerik:RadScheduler runat="server" ID="RadScheduler1" GroupBy="FacilityName" GroupingDirection="Vertical"
AppointmentStyleMode="Default" DataKeyField="FacilityReservationKey"
FirstDayOfWeek="Sunday" LastDayOfWeek="Saturday" DataSubjectField="FacilitySubject"
DataStartField="StartTimeOfEvent" DataEndField="EndTimeOfEvent" ShowAllDayRow="false"
SelectedView="TimelineView" Skin="Simple" Height="500px" RowHeight="50px"
OnClientFormCreated="schedulerFormCreated"
CustomAttributeNames="Contact" OnFormCreated="RadScheduler1_FormCreated"
StartEditingInAdvancedForm="true" StartInsertingInAdvancedForm="true">

<TimelineView ColumnHeaderDateFormat="h:mm tt" NumberOfSlots="32" SlotDuration="00:30:00" TimeLabelSpan="2" StartTime="07:00:00" ShowInsertArea="false" />
<Reminders Enabled="false" />

<MonthView UserSelectable="false" />
<DayView UserSelectable="false" />
<WeekView UserSelectable="false" />
<TimelineView UserSelectable="false" />

 Thanks so much.

Bozhidar
Telerik team
 answered on 04 May 2015
3 answers
152 views

Hello,

I have a radgrid with Batch Edit Mode activated, i have 5 columns: two with one comboBox and three with textBox. I need that one of the radComboBox bind the datasource of the other one attending at the value of the first radcomboBox:

 

ROW [ txtEtiqueta    TextBoxFormato    TextBoxAncho      RadComboBoxAlineacion       RadComboBoxMostrarTipo ]

 

This is the structure:

 

<telerik:RadGrid ID="RadGridPropiedadesMostrar" runat="server"
                                    Height="245px" Width="99%" Culture="es-ES" Visible="true"
                                    OnNeedDataSource="RadGridPropiedadesMostrar_NeedDataSource"
                                    OnBatchEditCommand="RadGridPropiedadesMostrar_BatchEditCommand"
                                    OnItemDataBound="RadGridPropiedadesMostrar_OnItemDataBound"
                                    OnPreRender="RadGridPropiedadesMostrar_PreRender"
                                    HeaderStyle-Font-Size="Small" HeaderStyle-ForeColor="Black"
                                    MasterTableView-NoMasterRecordsText="Sin registros">
                                    <ClientSettings>
                                        <Scrolling AllowScroll="True" />
                                        <Resizing ResizeGridOnColumnResize="false" AllowColumnResize="false" AllowResizeToFit="true" EnableRealTimeResize="true"></Resizing>
                                        <Selecting AllowRowSelect="true" />
                                    </ClientSettings>
                                    <MasterTableView EditMode="Batch" AutoGenerateColumns="False" ShowHeadersWhenNoRecords="true">
                                        <BatchEditingSettings EditType="Cell" OpenEditingEvent="Click" />
                                        <Columns>
                                            <telerik:GridBoundColumn UniqueName="CODIGOMOSTRAR" DataField="CODIGOMOSTRAR" HeaderText="CODIGOMOSTRAR" Visible="false" />
                                            <telerik:GridBoundColumn UniqueName="CODIGOINFORME" DataField="CODIGOINFORME" HeaderText="CODIGOINFORME" Visible="false" />
                                            <telerik:GridBoundColumn UniqueName="MOS_NOMBRE" DataField="MOS_NOMBRE" HeaderText="Nombre" Visible="false">
                                                <ColumnValidationSettings EnableRequiredFieldValidation="true">
                                                    <RequiredFieldValidator ForeColor="Red" Text="*This field is required" Display="Dynamic">
                                                    </RequiredFieldValidator>
                                                </ColumnValidationSettings>
                                            </telerik:GridBoundColumn>
                                            <telerik:GridTemplateColumn UniqueName="MOS_ETIQUETA" DataField="MOS_ETIQUETA" HeaderText="Campo" Visible="true" ItemStyle-Width="35%">
 
                                                <ItemTemplate>
                                                    <%#DataBinder.Eval(Container.DataItem, "MOS_ETIQUETA")%>
                                                </ItemTemplate>
 
                                                <EditItemTemplate>
                                                    <telerik:RadTextBox ID="txtEtiqueta" runat="server" Width="85%"></telerik:RadTextBox>
                                                </EditItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridBoundColumn UniqueName="MOS_VISIBLE" DataField="MOS_VISIBLE" HeaderText="Visible" Visible="false" />
                                            <telerik:GridTemplateColumn UniqueName="MOS_FORMATO" DataField="MOS_FORMATO" HeaderText="Formato" Visible="true" ItemStyle-Width="15%">
                                                <ItemTemplate>
                                                    <%#DataBinder.Eval(Container.DataItem, "MOS_FORMATO")%>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <telerik:RadTextBox ID="txtFormato" runat="server" Width="85%"></telerik:RadTextBox>
                                                </EditItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn UniqueName="MOS_ANCHO" DataField="MOS_ANCHO" HeaderText="Ancho" Visible="true" ItemStyle-Width="15%">
                                                <ItemTemplate>
                                                    <%#DataBinder.Eval(Container.DataItem, "MOS_ANCHO")%>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <telerik:RadTextBox ID="txtAncho" runat="server" Width="85%"></telerik:RadTextBox>
                                                </EditItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn UniqueName="MOS_AINEACION" DataField="MOS_AINEACION" HeaderText="Alineación" Visible="true" ItemStyle-Width="15%">
                                                <ItemTemplate>
                                                    <%#DataBinder.Eval(Container.DataItem, "MOS_AINEACION")%>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <telerik:RadComboBox runat="server" ID="RadComboBoxAlineacion" HighlightTemplatedItems="true" Width="85%">
                                                    </telerik:RadComboBox>
                                                </EditItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn UniqueName="MOS_TIPO" DataField="MOS_TIPO" HeaderText="Tipo" Visible="true" ItemStyle-Width="15%">
                                                <ItemTemplate>
                                                    <%#DataBinder.Eval(Container.DataItem, "MOS_TIPO")%>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <telerik:RadComboBox runat="server" ID="RadComboBoxMostrarTipo" HighlightTemplatedItems="true" Width="85%">
                                                    </telerik:RadComboBox>
                                                </EditItemTemplate>
                                            </telerik:GridTemplateColumn>
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>

 

I create the datasource of the RadComboBoxMostrarTipo in PRERENDER like this:

 

protected void RadGridPropiedadesMostrar_PreRender(object sender, EventArgs e)
{
    RadGridPropiedadesMostrar.Rebind();
 
    RadComboBox combo2 = (RadGridPropiedadesMostrar.MasterTableView.GetBatchEditorContainer("MOS_TIPO") as Panel).FindControl("RadComboBoxMostrarTipo") as RadComboBox;
 
    DataTable table2 = new DataTable();
    table2.Columns.Add("MOS_TIPO", typeof(int));
    table2.Columns.Add("TIPO", typeof(string));
    string[] tipos = {"Texto", "Entero", "Doble", "Fecha", "Booleano" };
     
    DataRow row2 = null;
    for (int i = 0; i < tipos.Length; i++)
    {
        row2 = table2.NewRow();
        row2["MOS_TIPO"] = i.ToString();
        row2["TIPO"] = tipos[i];
 
        table2.Rows.Add(row2);
    }
    combo2.DataTextField = "TIPO";
    combo2.DataValueField = "MOS_TIPO";
    combo2.DataSource = table2;
    combo2.DataBind();
}

 

I need to bind the RadComboBoxAlineacion  depending of the data loaded in RadComboBoxMostrarTipo when i load each row

 

Any idea? Thanks!

Pavlina
Telerik team
 answered on 04 May 2015
5 answers
336 views

I have an issue with a Radcombobox. I am trying to set the height of the radcombobox on ClientSelectedIndexChanged, but I am getting a rendering issue and I cannot see where the problem is.

 Below, you will find my code;

 CSS:

div.RadComboBox_Windows7 .rcbInputCell INPUT.rcbInput

{

height: 37px;

}

ASPX:

<telerik:RadComboBox ID="RCB_Test" runat="server" Width="340px" OnClientSelectedIndexChanged="OnClientSelectedIndexChangedHandler">

<Items>

<telerik:RadComboBoxItem runat="server" Text="Testing please" Value="Testing please" />

<telerik:RadComboBoxItem runat="server" Text="Testing please" Value="Testing please" />

<telerik:RadComboBoxItem runat="server" Text="Testing please" Value="Testing please" />

</Items>

</telerik:RadComboBox>

 

JavaScript:

function OnClientSelectedIndexChangedHandler(sender, eventArgs) {

var item = sender.get_inputDomElement();

item.style.height = "37px";

 

I have also attached an image of the problem.

 

Any help would be appreciated.

}

 

 

Magdalena
Telerik team
 answered on 04 May 2015
1 answer
166 views

Hi,
I've implemented the imagegallery in lightbox mode on one of our site and it work fine except when I click on the same image twice, then the image just won't load. 

I went to look if it was working on your demo and it doesn't work either.

- Go to : http://demos.telerik.com/aspnet-ajax/image-gallery/examples/functionality/modes/defaultcs.aspx

- Select the LightBox mode. 

- Click on an image

- Close the lightbox window with the X in the top right corner

- Click on the same image

The image just don't show up and the loading take forever.

 

 

Dimitar
Telerik team
 answered on 04 May 2015
2 answers
278 views

I just want to set the Cache Header "max-age" of ".axd" resources like "Telerik.Web.UI.WebResource.axd","ScriptResource.axd" etc.

So for achieving that I just implemented the IHttpModule and used corresponding Event as in the following code-

"

 So just want to know that is this the correct approach or there are some other ways to set Cache Header "max-age" of "axd" resources.

ankur
Top achievements
Rank 1
 answered on 04 May 2015
3 answers
101 views
When will be public available new Visual Style Builder tool for developers? In a few days, weeks or months?
Dimitar
Telerik team
 answered on 04 May 2015
3 answers
344 views
Typing in the RadEditor in Chrome always adds the <p></p> HTML tags to the first row.  I can remove the tags and then I am able to type in the first row. But I cannot do it by default. I have attached two screen shots that shows this behavior in chrome.

It works fine in IE and Firefox. Is there a way to remove the <p> tag inserted by default in Chrome browser?

I'm using version 2014.2.618.45


















�3�-h�
















�3�-h�

Ianko
Telerik team
 answered on 04 May 2015
3 answers
167 views
It's possible this should go under the RadSpell control, but...

In IE11, if the next wrong word doesn't have any suggestions, the spell check doesn't open the commands window (the one with Ignore/Ignore All/Change Manually/etc), and the spell check can't continue.  This happens in both iframe and div modes.  No errors are thrown.

Also, in IE11, when the RadEditor is set to ContentAreaMode="Div" and contained inside an iframe, clicking on the spell check commands window for the first misspelled word results in the following JavaScript error:

Object doesn't support property or method 'createTextRange'.

Screenshot attached.
Ianko
Telerik team
 answered on 04 May 2015
3 answers
168 views
Hi All,

I have a RadEditor on my ASP.NET page.
I want to get the number of lines users have entered and want to restrict users to enter more than X lines.

Is there are property of RADEditor using which I can achieve this ?

Thanks
Bharani
Top achievements
Rank 1
 answered on 03 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?