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

Is it possible to use ColumnValidation and EditFormIndexColumnIndex index together?  

I  have a grid where the validation was working as expected.  Added editformcolumnindex and now it cannot "find" those columns. 

 

Example following works fine without EditFormIndexColumnIndex

 

<telerik:GridDropDownColumn DataField="itemManager" UniqueName="editManager" HeaderText="Manager"
    DataSourceID="sqlDataSource6" ListValueField="adId" ListTextField="adName" EditFormColumnIndex="2"
    EnableEmptyListItem="true" EmptyListItemText="Select" DropDownControlType="RadComboBox">
    <ColumnValidationSettings EnableRequiredFieldValidation="true" EnableModelErrorMessageValidation="true">
        <RequiredFieldValidator ForeColor="Red" ErrorMessage="  Required Field"></RequiredFieldValidator>
        <ModelErrorMessage BackColor="Red" />
    </ColumnValidationSettings>
</telerik:GridDropDownColumn>
Peter Milchev
Telerik team
 answered on 13 Aug 2018
0 answers
66 views

Hi

I bind Appointments manually with resources, but i can't see the added appointment in radscheudler.

 

RadScheduler1.Resources.Clear();
RadScheduler1.ResourceTypes.Clear();
ResourceType UserName = new ResourceType("User");
UserName.ForeignKeyField = "TEILNEHMERID";
UserName.KeyField = "TEILNEHMERID";
UserName.TextField = "NACHNAME";
UserName.DataSource = dsTLNINGRP_VIEW.Tables[0].DefaultView;
RadScheduler1.ResourceTypes.Add(UserName);
RadScheduler1.GroupBy = "User";
//RadScheduler1.GroupingDirection = GroupingDirection.Vertical;
RadScheduler1.DataSource = ds.Tables[0].DefaultView;
bindHolidays(dsTLNINGRP_VIEW);
RadScheduler1.DataBind();

Here is the bindHolidays Method

 

 

Appointment appointment = new Appointment();
appointment.ID = ds.Tables[0].Rows[i]["TEILNEHMERID"].ToString();
appointment.Subject = WAMResource.Abwesend;
appointment.Attributes["TYP"] = "A"; //Abwesend Custom Attributes
appointment.Attributes["BACKCOLOR"] = Color.Red.ToString();
appointment.BackColor = Color.Red;
appointment.Resources.Add(new Telerik.Web.UI.Resource("User", ds.Tables[0].Rows[i]["TEILNEHMERID"].ToString(), "Toprak"));
appointment.Start = DateTime.Parse(ds.Tables[0].Rows[i]["STARTTIME"].ToString());
appointment.End = DateTime.Parse(ds.Tables[0].Rows[i]["ENDTIME"].ToString());
RadScheduler1.InsertAppointment(appointment);

 

Support ATT
Top achievements
Rank 1
 asked on 13 Aug 2018
1 answer
232 views

Hi,

We have some columns one decimal and some are two decimals. When we export to excel one decimal column values exported to two decimals and hide the last "o" digit. For example, we have a value in a grid 10.20 while export to excel showing 10.2. How to fix the decimal value issues? Any sample application would be appreciated.

Eyup
Telerik team
 answered on 13 Aug 2018
1 answer
969 views

Hi,

We need to set the column width in export to excel file. Currently, its fit the width by using its Header Text. We need to customize it like in grid we have 50px column width but when we export to excel we want to set 20px. How can we achieve the goal? Any sample application would be appreciated.

Eyup
Telerik team
 answered on 13 Aug 2018
2 answers
221 views

Hi All,

Have  RadGrid, which works fine.

I want data Loadding  in RadGrid

It Works fine in FireFox and IE

But Google Chrome RadGrid is not Full displayed. 

Have attached the screen shot.

Is there any option to rectify this

 

 

Thanking You


Eyup
Telerik team
 answered on 13 Aug 2018
3 answers
546 views

I need to retrieve the value of the docTitle GridTemplateColumn, but I'm not having any luck.  How can I modify my code to get the docTitle value of the selected row:

 

Here's the grid markup:

<telerik:RadGrid ID="rgVenDocs" runat="server" DataSourceID="sdsRgVenDocs" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" ShowGroupPanel="True" Skin="Office2010Black" OnPreRender="rgVenDocs_PreRender" OnItemCommand="rgVenDocs_ItemCommand" OnSelectedIndexChanged="rgVenDocs_SelectedIndexChanged" ShowStatusBar="true" ViewStateMode="Enabled">
    <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True" ReorderColumnsOnClient="True" >
    </ClientSettings>
    <MasterTableView DataKeyNames="docIdPk" DataSourceID="sdsRgVenDocs" PagerStyle-AlwaysVisible="true">
        <Columns>
            <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Select" Text="Select"></telerik:GridButtonColumn>
            <telerik:GridBoundColumn DataField="docIdPk" ReadOnly="True" HeaderText="docIdPk" SortExpression="docIdPk" UniqueName="docIdPk" DataType="System.Int32" FilterControlAltText="Filter docIdPk column"></telerik:GridBoundColumn>                            
            <telerik:GridBoundColumn DataField="docFileName" HeaderText="docFileName" SortExpression="docFileName" UniqueName="docFileName" FilterControlAltText="Filter docFileName column"></telerik:GridBoundColumn>        
            <telerik:GridTemplateColumn DataField="docTitle" HeaderText="Document" UniqueName="docTitle" SortExpression="docTitle" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Font-Bold="true">
                <ItemTemplate>
                    <asp:LinkButton ID="lnkDownload" Text='<%# Eval("docTitle") %>' CommandArgument='<%# Eval("docPath") %>' runat="server" OnClick="lnkDownload_Click"></asp:LinkButton>              
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

 

Here's the SelectedIndexChanged code:

protected void rgVenDocs_SelectedIndexChanged(object sender, EventArgs e)
{  
    foreach (GridDataItem item in rgVenDocs.SelectedItems)
{  
doctitletest.Text = item["docTitle"].Text;
}
}

 

 

Jerald
Top achievements
Rank 1
 answered on 10 Aug 2018
5 answers
228 views

Requirements

Telerik Product and Version

2014.1.410.0

Supported Browsers and Platforms

Windows 7 - Internet Explorer 11, Chrome Version 34.0.1847.131 m, Firefox v28.0

Components/Widgets used (JS frameworks, etc.)

PHP, Javascript, JQuery, HTML, CSS

PROJECT DESCRIPTION 
Problem: Setting up automation for clicking calendar drop down datepicker the tools supplied cannot click the date picker selection.

What about setting up a automated input for the date picker, by which selecting? I have the following value I am trying to input a value automatically...the Mouse Left Click does not work. OnClick doesn't seems to work with Java selection as well...

I am new to this Telerik. How would I go about making this automated (selecting any date and that date populating)?


Here are the screen shots of the Date picker I have...
http://content.screencast.com/users/Sam.Dawson/folders/Jing/media/3a5acdf1-eb31-47cf-bb5f-ef8497f49c5a/2014-04-25_1141_001.png


Here is the HTML I am trying to change the (RED arrows) value with individual Names (Green arrows)
http://content.screencast.com/users/Sam.Dawson/folders/Jing/media/e6f4c5cf-d6c8-4751-bd72-6eb89d25ead1/2014-04-25_1140.png

 

 Note: I have also asked this on the datepicker forum prior but need a response to get past this roadblock asap (http://www.telerik.com/forums/datepicker-calendar-popup#bRJpiHAOnka99DPfKX0mlQ)


Karthika
Top achievements
Rank 1
 answered on 10 Aug 2018
4 answers
277 views
How can I handle the selected event to fire the corresponding operation. Assume I have two Menu items namely Edit and Delete when I select edit and update the record I would like to fire the RadGrid_UpdateCommand event and when I select Delete I would like to fire RadGrid_DeleteCommand
Marin Bratanov
Telerik team
 answered on 10 Aug 2018
2 answers
167 views

[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See  https://www.chromestatus.com/features/5093566007214080. I get 1 error message for every pixel the grid scrolls. 

 

What causes this and how can i prevent it?

Rumen
Telerik team
 answered on 10 Aug 2018
1 answer
116 views

i followed the doc of telerik

create new material theme in theme builder, download, unzip to App_themes -> MyTheme folder

Added a MySkin.skin file and add <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 

in web.config, add app settings

<add key="Telerik.Skin" value="MySkin"/>
<add key="Telerik.EnableEmbeddedSkins" value="false" />
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />

<add key="Telerik.Web.UI.RenderMode" value="lightweight"/>

Create a new aspx page, add a telerik button control, but skin not implement

I tried add skin="MySkin" on the control, not working

i saw the source code, the button already have "RadButton_MySkin" class there

 

do i missing anything?

Please help

Thx

 

 

 

 

 

Vessy
Telerik team
 answered on 10 Aug 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?