Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
83 views
Hi All,

I'm trying to use the StyleBuilder website to stylise the telerik controls/skins. What I'm finding is the "Colorise" functionality works but "Fine Tune" doesn't. Is anyone else seeing this problem? Or is this a known problem?

Kind regards
Sidharth
Bozhidar
Telerik team
 answered on 14 Apr 2014
1 answer
165 views
hi,
 i want to use a cache on grid server side with web service. how can implement it in asp.net please provide demo or example.

Thanks,
Rahul
Kostadin
Telerik team
 answered on 14 Apr 2014
1 answer
405 views
Hi,

I have grid which contains 3 columns, when I resize first column remaining 2 column width also gets changed.

I am using below client setting for my grid

<Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" />

I don't want to change width of others column.

Currently grid has 100% width & only last column has fixed width.

If I set grid width fixed as well as those of 3 columns, then resizing works fine.

Is it bug in RadGrid resize functionality if we set grid width to 100%?
Konstantin Dikov
Telerik team
 answered on 14 Apr 2014
2 answers
278 views
Hi,

I am using a Telerik chart as follows:

    @(Html.Telerik().Chart(Model.Items)
    ....
    .Series(series => series.Column(s => s.Property1).Name(constantValue1).Color("Red").Axis(constantValue2))
    ...
    
Each item contains 2 properties: Property1, which is the column height and Property2, which is the column color.
I would like to be able to display for each column the corresponding color (instead of the single color for all columns).
Can you please help me with this issue?
Thank you.
Gabriela
Top achievements
Rank 1
 answered on 14 Apr 2014
5 answers
570 views
I have a repeater with a textbox (TextBox1) and a label in each item. I added a TextChanged event handler to the textbox and set autopostback to true. I want to change the value of the label based on what's typed into the textbox. I also have a textbox outside the repeater (TextBox2) that should also change the value in the label inside the repeater.

I used a RadAjaxManger control and told it that TextBox2 should update the repeater and it works perfectly.

The issue is that TextBox1 (the one inside the repeater) always does a full postback when I don't want it to. I tried using the RadAjaxManager and setting the repeater able to update the repeater and I tried programatically adding the specific textbox and label to the RadAjaxManager in the handler for the repeater's ItemDataBound event and I tried wrapping the entire repeater in a RadAjaxPanel all to no avail.

On another page I have a dropdownlist in a repeater that works perfectly, but this textbox just won't cooperate.

Any suggestions would be great, thanks!
Angel Petrov
Telerik team
 answered on 14 Apr 2014
3 answers
175 views
So I have several RadComboBoxes in my site that work perfectly fine in IE on the desktop, Chrome on the desktop, etc. ... but when I test them on an iOS device or Windows Phone (possibly Android, too ... haven't had a chance to test yet) they appear to render as native dropdown controls, but they don't have any data in them.

I'm defining RenderMode in the web.config as "Auto":

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

Here's the definition of one of the comboboxes:

<telerik:RadComboBox ID="ddlUserGroups" Width="200px" MaxHeight="300px"
    DataValueField="UserPermissionGroupID" DataTextField="Name" runat="server"
    EnableEmbeddedSkins="false" AllowCustomText="false" MarkFirstMatch="true">
</telerik:RadComboBox>

I'm then databinding from code behind.

Any help would be appreciated.


George
Dimitar
Telerik team
 answered on 14 Apr 2014
1 answer
92 views

Hello Guys,
Recently i faced the issue with telerik control , my published application was working fine, when i publish the new application , i found UI was not getting load properly, there was also issue coming, tabs images were not showing and there was log getting write in application

Error Log
This is an invalid webresource request. at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)

at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Aneliya Petkova
Telerik team
 answered on 14 Apr 2014
2 answers
355 views
Asp.net Ajax in an asp page, I am on Q1 2014 update.
I have this page with a radpicker in the editForm template (radDatePicker1):
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="members_Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
    </style>
</head>
<body>
 
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>
            </Scripts>
        </telerik:RadScriptManager>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:WTAConnectionString %>" DeleteCommand="DELETE FROM [Tempi] WHERE [Id] = @Id" InsertCommand="INSERT INTO [Tempi] ([Date], [Pnum], [WorkedTime], [Note], [Week], [hours], [minutes]) VALUES (@Date, @Pnum, @WorkedTime, @Note, @Week, @hours, @minutes)" SelectCommand="SELECT * FROM [Tempi]" UpdateCommand="UPDATE [Tempi] SET [Date] = @Date, [Pnum] = @Pnum, [WorkedTime] = @WorkedTime, [Note] = @Note, [Week] = @Week, [hours] = @hours, [minutes] = @minutes WHERE [Id] = @Id">
            <DeleteParameters>
                <asp:Parameter Name="Id" Type="Int32" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter DbType="Date" Name="Date" />
                <asp:Parameter Name="Pnum" Type="String" />
                <asp:Parameter DbType="Time" Name="WorkedTime" />
                <asp:Parameter Name="Note" Type="String" />
                <asp:Parameter Name="Week" Type="String" />
                <asp:Parameter Name="hours" Type="Int32" />
                <asp:Parameter Name="minutes" Type="Int32" />
            </InsertParameters>
            <UpdateParameters>
                <asp:Parameter DbType="Date" Name="Date" />
                <asp:Parameter Name="Pnum" Type="String" />
                <asp:Parameter DbType="Time" Name="WorkedTime" />
                <asp:Parameter Name="Note" Type="String" />
                <asp:Parameter Name="Week" Type="String" />
                <asp:Parameter Name="hours" Type="Int32" />
                <asp:Parameter Name="minutes" Type="Int32" />
                <asp:Parameter Name="Id" Type="Int32" />
            </UpdateParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:WTAConnectionString %>" SelectCommand="SELECT [Pnum] FROM [Pnum]"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:WTAConnectionString %>" SelectCommand="SELECT [minutes] FROM [helper]"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:WTAConnectionString %>" SelectCommand="SELECT [hours] FROM [helper]"></asp:SqlDataSource>
        <link href="../css/StyleSheet.css" rel="stylesheet" />
        <div>
            Time Management - Registered Users
        </div>
        <table class="auto-style1">
            <tr>
                <td class="left"></td>
                <td class="center"></td>
                <td class="right"></td>
            </tr>
            <tr>
                <td></td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td> </td>
                <td>
                    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" Culture="it-IT" DataSourceID="SqlDataSource1" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowPaging="True" Skin="Outlook" CellSpacing="-1" GridLines="Both">
                        <ExportSettings>
                            <Pdf PageWidth="">
                            </Pdf>
                        </ExportSettings>
                        <ClientSettings>
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                        </ClientSettings>
                        <MasterTableView DataKeyNames="Id" DataSourceID="SqlDataSource1" CommandItemDisplay="Top">
                            <RowIndicatorColumn Visible="False">
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Created="True">
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridEditCommandColumn ButtonType="ImageButton">
                                    <HeaderStyle Width="35px" />
                                </telerik:GridEditCommandColumn>
                                <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" FilterControlAltText="Filter Id column" HeaderText="Id" ReadOnly="True" SortExpression="Id" UniqueName="Id">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                    <HeaderStyle Width="60px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="Date" DataType="System.DateTime" FilterControlAltText="Filter Date column" HeaderText="Date" SortExpression="Date" UniqueName="Date" DataFormatString="{0:dd/MM/yyyy}">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                    <HeaderStyle Width="80px" />
                                </telerik:GridDateTimeColumn>
                                <telerik:GridDropDownColumn DataField="Pnum" DataSourceID="SqlDataSource2" ListTextField="Pnum" ListValueField="Pnum" FilterControlAltText="Filter column column" UniqueName="column" HeaderText="P-Number">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                    <HeaderStyle Width="80px" />
                                </telerik:GridDropDownColumn>
                                <telerik:GridBoundColumn DataField="WorkedTime" DataType="System.TimeSpan" FilterControlAltText="Filter WorkedTime column" HeaderText="Worked Time" SortExpression="WorkedTime" UniqueName="WorkedTime">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                    <HeaderStyle Width="90px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Week" FilterControlAltText="Filter Week column" HeaderText="Week" SortExpression="Week" UniqueName="Week">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                    <HeaderStyle Width="60px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridDropDownColumn DataField="minutes" DataSourceID="SqlDataSource3" ListTextField="minutes" ListValueField="minutes" FilterControlAltText="Filter minutes column" UniqueName="minutes" HeaderText="Minutes" DataType="System.Int16">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                    <HeaderStyle Width="80px" />
                                </telerik:GridDropDownColumn>
                                <telerik:GridDropDownColumn DataField="hours" DataSourceID="SqlDataSource4" ListTextField="hours" ListValueField="hours" FilterControlAltText="Filter hours column" UniqueName="hours" HeaderText="Hours" DataType="System.Int16">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                    <HeaderStyle Width="80px" />
                                </telerik:GridDropDownColumn>
                                <telerik:GridBoundColumn DataField="Note" FilterControlAltText="Filter Note column" HeaderText="Note" SortExpression="Note" UniqueName="Note">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                </telerik:GridBoundColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" Text="Delete" CommandName="Delete" FilterControlAltText="Filter column1 column" ConfirmDialogType="RadWindow" ConfirmText="Do you really want to delete this project and all its content?" UniqueName="column1">
                                    <HeaderStyle Width="30px" />
                                </telerik:GridButtonColumn>
                            </Columns>
                            <EditFormSettings EditFormType="Template">
                                <EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"></EditColumn>
                                <FormTemplate>
                                    <table class="table">
                                        <tr>
                                            <td class="left"></td>
                                            <td class="center" colspan="2"></td>
                                            <td class="right"></td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td class="topBorder">
                                                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                                            </td>
                                            <td class="topBorder"> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td class="centerLeft">
                                                <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Culture="it-IT"  MaxDate="2020-12-31" MinDate="2013-01-01" Skin="Outlook" Calendar-CultureInfo="it-IT">
                                                    <Calendar UseRowHeadersAsSelectors="False" runat="server" UseColumnHeadersAsSelectors="False" EnableWeekends="True" Culture="it-IT" FastNavigationNextText="&lt;&lt;" Skin="Outlook"></Calendar>
 
                                                    <DateInput runat="server" DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" LabelWidth="40%">
                                                        <EmptyMessageStyle Resize="None"></EmptyMessageStyle>
 
                                                        <ReadOnlyStyle Resize="None"></ReadOnlyStyle>
 
                                                        <FocusedStyle Resize="None"></FocusedStyle>
 
                                                        <DisabledStyle Resize="None"></DisabledStyle>
 
                                                        <InvalidStyle Resize="None"></InvalidStyle>
 
                                                        <HoveredStyle Resize="None"></HoveredStyle>
 
                                                        <EnabledStyle Resize="None"></EnabledStyle>
                                                    </DateInput>
 
 
                                                </telerik:RadDatePicker>
                                            </td>
                                            <td class="centerRight">
                                                <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
                                            </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td> </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td >
                                                <telerik:RadDropDownList ID="RadDropDownList1" runat="server" Skin="Outlook">
                                                </telerik:RadDropDownList>
                                            </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td > </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td>
                                                <telerik:RadDropDownList ID="RadDropDownList2" runat="server" Skin="Outlook">
                                                </telerik:RadDropDownList>
                                            </td>
                                            <td >
                                                <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
                                            </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td> </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td>
                                                <telerik:RadDropDownList ID="RadDropDownList3" runat="server" Skin="Outlook">
                                                </telerik:RadDropDownList>
                                            </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td> </td>
                                            <td> </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td >
                                                <telerik:RadTextBox ID="RadTextBox1" runat="server" Height="45px" Width="100%" Skin="Outlook">
                                                </telerik:RadTextBox>
                                            </td>
                                            <td> </td>
                                        </tr>
                                    </table>
                                </FormTemplate>
 
 
 
                            </EditFormSettings>
                        </MasterTableView>
                    </telerik:RadGrid>
                </td>
                <td> </td>
            </tr>
            <tr>
                <td> </td>
                <td> </td>
                <td> </td>
            </tr>
            <tr>
                <td> </td>
                <td> </td>
                <td> </td>
            </tr>
        </table>
    </form>
</body>
</html>

I am trying to set today date as default using this code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
public partial class members_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        RadDatePicker1.SelectedDate = DateTime.Now.Date;   
   
    }
     
}
I get the error message "Unknown entity RadDatePicker1". So basically it is not reachable in code behind.
I saved, rebuild, rebooted, update, but the problem is still there. I can I solve this problem?
Felice
Top achievements
Rank 1
 answered on 14 Apr 2014
3 answers
58 views
I need to add RadAsyncUpload as an item to RadContextMenu, but it should not be a button, should be a regular text menu item....how can i do this? if not possible, is there a way i can force RadAsyncUpload client side, so that i can have RadAsyncUpload hidden on the page somewhere and i can force it in the OnClientItemClicked of the RadContextMenu??
Thanks
-Samir
Shinu
Top achievements
Rank 2
 answered on 14 Apr 2014
1 answer
94 views
Good morning,
I downloaded a latest Telerik.dll files(Q1 14 release)  into my Web application and when I am running application I received javascript error:
Object required                                                                                        Line:4597
Telerik.Web.UI.WebResource.axd                                                        Char:1
Code:0                                                   
URL:http://10.2.54.98/applications/eisportal/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_...

But I do have this in web config file in two places:


<httpHandlers>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
</httpHandlers>



<handlers>
<add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
</handlers>
Please help me with this issue.

Thanks so much
Danail Vasilev
Telerik team
 answered on 14 Apr 2014
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?