Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
162 views

On the admin form how does one set the date format? The US date format is about the stupidest date format and illogical of all and yet it seems to be the default everywhere.

I want my dates formatted as dd/MM/yyyy not MM/dd/yyyy

Regards

Jon

 

 

Bozhidar
Telerik team
 answered on 07 Oct 2015
15 answers
760 views
I am trying to display a detail view of an appointment on double click, while edit is disabled.  Disabling edit on the appointment seems to be disabling the double click server event.  I would like the edit to be disabled but still have the ajax call to the server double click event so that I can switch to the detail view.  What is the best way to accomplish this?

Thanks,

Will
Neha
Top achievements
Rank 1
 answered on 07 Oct 2015
1 answer
149 views

Hi,

A few days my application began to show the following message: Thank you for using the Trial version of RadControls for ASP.NET Ajax ....

As if I've been using a trial version.
But I have a license.

Anyone know how to resolve this problem ????

 

I have attached a picture with the message.

Marin Bratanov
Telerik team
 answered on 07 Oct 2015
2 answers
188 views

 Hi Team,

 

 In the RadGrid, I have to do drag and drop option as well as edit the row using batch edit mode. If I set the clientIDMode = "Static" while click on the edit buttonI can see the Update and Cancel button. But I cann't do drag and drop. So I changed the ClientIDMode="AutoID" now drag and drop is working fine but in edit mode the Update and Cancel button in the batch it is not displaying.

Please let me know how to resolve this issue.

 

Regards,

Rajesh

 

 

<telerik:RadGrid ID="Parts" runat="server" ClientIDMode="AutoID" AllowPaging="True" AllowSorting="True" ClientSettings-AllowAutoScrollOnDragDrop="true"
AutoGenerateColumns="False" GridLines="None" ShowStatusBar="True" CssClass="Parts" ClientSettings-AllowDragToGroup="true" ClientSettings-AllowRowsDragDrop="true">
<ClientSettings AllowRowsDragDrop="True" AllowColumnsReorder="true" ReorderColumnsOnClient="true">
<Selecting AllowRowSelect="True" EnableDragToSelectRows="false"></Selecting>
<ClientEvents OnRowDropping="onRowDropping"></ClientEvents>
<Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling>
</ClientSettings>
<MasterTableView Name="PartsTableView" DataKeyNames="InventoryID" AllowSorting="True" NoDetailRecordsText="No Items" HierarchyLoadMode="ServerBind"
NoMasterRecordsText="No Items Added" CommandItemDisplay="Bottom" EditMode="Batch">
<CommandItemSettings ShowAddNewRecordButton="false" />
<BatchEditingSettings EditType="Cell" />
<DetailTables>
<telerik:GridTableView Name="ComponentDetails" Caption="Component Details" DataKeyNames="InventoryID"
runat="server">
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="ParentID" MasterKeyField="InventoryID" />
</ParentTableRelation>
<Columns>
<telerik:GridBoundColumn DataField="ParentID" Display="false" UniqueName="ParentID" />
<telerik:GridBoundColumn DataField="InventoryID" HeaderText="InventoryID" ReadOnly="true"
UniqueName="InventoryID" />
<telerik:GridBoundColumn DataField="FormNumber" HeaderText="Form #" UniqueName="FormNumber" />
<telerik:GridBoundColumn DataField="Description" HeaderText="Description" ReadOnly="true"
UniqueName="Description" Display="True" />
</Columns>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridTemplateColumn UniqueName="ThumbNail">
<ItemTemplate>
<asp:Image ID="imgThumbNail" runat="server" ImageUrl='<%#Eval("ImageUrl")%>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="InventoryID" UniqueName="FormNumber" Display="false" />
<telerik:GridBoundColumn DataField="Text" ItemStyle-Width="150px" HeaderText="Product Code" />
<telerik:GridBoundColumn DataField="Description" Display="false" />
<telerik:GridTemplateColumn UniqueName="Description" HeaderText="Title">
<ItemTemplate>
<asp:Label ID="lblDescription" runat="server" Text='<%#Eval("Description") %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtDescription" runat="server" Text='<%#Eval("Description") %>'>
</asp:TextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="Type" Display="false" />
<telerik:GridEditCommandColumn ButtonType="ImageButton" EditText="Edit" UniqueName="EditCommandColumn">
</telerik:GridEditCommandColumn>
<telerik:GridButtonColumn ButtonType="ImageButton"
CommandName="DeleteInventory" Text="Remove" UniqueName="Delete">
<ItemStyle HorizontalAlign="Center" CssClass="MyImageButton"></ItemStyle>
<HeaderStyle ></HeaderStyle>
</telerik:GridButtonColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
<asp:XmlDataSource ID="XMLBookBuilderSource" runat="server" EnableCaching="false">
</asp:XmlDataSource>
<telerik:GridTextBoxColumnEditor ID="GridTextBoxEditor" runat="server" TextBoxStyle-Width="230px"></telerik:GridTextBoxColumnEditor>

Rajesh
Top achievements
Rank 1
 answered on 06 Oct 2015
6 answers
343 views
Hello guys,
I have a problem clicking on the horizontal scrollbar ( instead of dragging it to the right ) when frozen columns are present.
The problem is all about a difference in behaviour of the grid between clicking and dragging the horizontal scrollbar.
Some customers of mine are complaining about disappearing columns.

You can encounter the same problem on your radgrid frozen columns demo in your demo page located in:
http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/scrolling/scrolling/defaultcs.aspx

as you can see in your grid you show 2 frozen columns ("CUSTOMER ID", "COMPANY NAME")
followed by "CONTACT NAME", "CONTACT TITLE",  "ADDRESS", "CITY", "POSTAL CODE" and other columns.

If you slowly drag the horizontal scrollbar to the right, you can see all columns one after another.

If you instead click on the scrollbar,

starting from the initially displayed columns ("CUSTOMER ID", "COMPANY NAME", "CONTACT NAME", "CONTACT TITLE") ( scrollbarclick_01.PNG )

the grid will display the following columns "CUSTOMER ID", "COMPANY NAME", "CITY", "POSTAL CODE" ( scrollbarclick_02.PNG)

the problem is that a column is skipped: we are not able to see the column "ADDRESS" between "CONTACT TITLE" and "CITY". ( scrollbarclick_03.png )



Any suggestion or solution?

Luca
Manoj
Top achievements
Rank 1
 answered on 06 Oct 2015
0 answers
95 views

Hello Team,

We are using telerik control for one of the product, application is  hosted at client end and some external users uses the application from their environment using some kind of VPN. recently one of the client's contractor reported the issue that application is not loading properly  ,where I find the telerik control CSS is not getting load only for certain user who are using the application through some kind of VPN.

Could you please help me out ,what can be the reason ,why CSS for telerik control is not getting load.

Note : Application is running on IE 9 and issue is appearing only for certain user 

 

 

 

 

Afroz khan
Top achievements
Rank 1
 asked on 06 Oct 2015
2 answers
95 views

Hi guys. 

 I'm trying to hide the content's area tooltip of radeditor.

Doing some research in the forum I found the following links

http://www.telerik.com/forums/disable-title-on-content-area

 ​http://www.telerik.com/forums/hiding-radeditor-tooltip

But when I run my project it throws javascript error editorLoad is undefined

Here's the declaration of the editor:​

01.  <telerik:RadEditor runat="server" ID="desc" MaxTextLength="1500"   Language="es-ES" EditModes="Design, Preview" Content='<%# DataBinder.Eval(Container, "DataItem.Descripcion") %>' OnClientLoad="editorLoad">
02. 
03.                                        <CssFiles>
04.                                             <telerik:EditorCssFile  Value="~/SalaPrensaAdmin.css"/>
05.                                        </CssFiles>
06.                                            <Languages>
07.                                                <telerik:SpellCheckerLanguage Code="es-ES" Title="Español"  />
08.                                            </Languages>
09.                                        <Tools>
10.                                            <telerik:EditorToolGroup>
11.                                                <telerik:EditorTool Name="InsertLink"  Text="Insertar vínculo"/>
12.                                                <telerik:EditorTool Name="ApplyClass"  Text="Elegir clase"/>
13.                                                <telerik:EditorTool Name="AjaxSpellCheck" Text="Verificar ortografía" />
14.                                                <telerik:EditorTool Name="FormatBlock" Text="Elegir formato" />
15.                                                <telerik:EditorTool Name="InsertParagraph" Text="Insertar párrafo"/>
16.                                            </telerik:EditorToolGroup>
17.                                        </Tools>
18. 
19. 
20.<TrackChangesSettings CanAcceptTrackChanges="False"></TrackChangesSettings>
21.                                    </telerik:RadEditor>
22.                                    <script type="text/javascript">
23.                                        function editorLoad(editor) {
24.                                            var contentAreaEl = editor.get_contentAreaElement();
25.                                            contentAreaEl.removeAttribute("title");
26.                                        }
27.</script>

Can you please help me with this.

Hope your help.

 Best regards.

Cristian

 

 

Cristian
Top achievements
Rank 1
 answered on 06 Oct 2015
1 answer
97 views

hi ! I´m new in this forum but I use Telerik by many years ago...
I changed by other computer my desktop, and install VS with Telerik, but this dont work in the designer of VB.. so sorry by my english.
this is the problem:

I add by reference
img1

I add the instance in the top of the page
img2

I add in the web.config
img3

but I can see the result in the browser, but dont work in the designer.

I upgraded my computer to windows 10, and I have VS 2012, and  Ajax Control Tool Kit

Vessy
Telerik team
 answered on 06 Oct 2015
1 answer
926 views

Hi all,
I've a RadComboBox inside EditItemTemplate

1.<telerik:RadComboBox Skin="Silk" ID="cognome_sostituto_combo" runat="server" DataSourceID="SqlDataSourceGiocatori1" DataTextField="Cognome" DataValueField="Cognome" DropDownWidth="200px" MinFilterLength="2" Filter="StartsWith" AllowCustomText="false" Text='<%# Bind("Cognome_sostituto")%>' >

(NOTE: this code is inside a GridView with <Columns><TemplateField>)

My scope is:

- populate combo with items from SqlDataSourceGiocatori1 (that has a query like select cognome from ....) --> done
- set selected item from SqlDataSource connected to GridView --> not working using Text='<%# Bind... --> not working

If I use, for example, a TextBox and bind Text with Text='<%# Bind("Cognome_sostituto")%>' everything is ok but there's no autocomplete.

The error I get is "Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control"  

Any ideas?

Thanks for your help

Keiichi-kun
Top achievements
Rank 1
 answered on 06 Oct 2015
1 answer
265 views

Hello!

 

I have a problem with horizontal scroll in grid. I generete programmatically columns with fixed width in HeaderStyle.Width on OnInit event, and this grid

 

<div style="width: 100%; display: block;">
<telerik:RadGrid ID="gvMain" Width="100%" runat="server" OnNeedDataSource="gvMain_OnNeedDataSource" OnBatchEditCommand="gvMain_OnBatchEditCommand"
     AutoGenerateColumns="False" AllowPaging="True" PageSize="100" AllowSorting="True" AllowFilteringByColumn="True" Skin="Metro" Culture="ru-Ru">
    <MasterTableView CommandItemDisplay="TopAndBottom" AllowAutomaticUpdates="True" EditMode="Batch" AllowAutomaticDeletes="False"
        AllowAutomaticInserts="False" DataKeyNames="PersonId" TableLayout="Fixed">
        <BatchEditingSettings EditType="Cell"></BatchEditingSettings>
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                    <SelectFields>
                        <telerik:GridGroupByField FieldAlias="FacultyName" HeaderText="Факультет" FieldName="FacultyName" />
                    </SelectFields>
                    <GroupByFields>
                        <telerik:GridGroupByField FieldName="FacultyName" />
                    </GroupByFields>                           
                </telerik:GridGroupByExpression>
            </GroupByExpressions>
        <CommandItemSettings ShowAddNewRecordButton="False" SaveChangesText="Сохранить" CancelChangesText="Отменить изменения" RefreshText="Обновить"></CommandItemSettings>
    </MasterTableView>
    <PagerStyle AlwaysVisible="True"></PagerStyle>
    <ClientSettings AllowKeyboardNavigation="True">
        <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="5"></Scrolling>
    </ClientSettings>
     
</telerik:RadGrid>
     
</div>

 

When sum of columns width  exceed the page width, I have the Page horizontal scroll instead grid scrolling. How can I fit Grid into parent div? (It's normally work with PivotGrid, but not with a Grid)

 

 

Pavlina
Telerik team
 answered on 06 Oct 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?