Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
2.2K+ views
I imagine someone else must have run into this problem in the past.  I have a radGrid that has a phone number column.  Sometimes the phone numbers are long - 12 digits with no dashes or spaces.  Exporting the grid to excel converts the number to scientific notation which obviously isn't going to work.

I've tried a couple things - setting the DataFormatString and DataType on the GridBoundColumn.

Is there a good way around this?  Changing the format of the phone numbers is not an option.

Thanks,
DJ
Daniel
Telerik team
 answered on 31 May 2016
0 answers
103 views

Hi Telerik

I Use IIS 8 and i want to enable RadCompression  in my application .

in App_Browsers

<browsers>
  <browser refID="Default">
    <controlAdapters>
      <adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadHiddenFieldPageStateCompression" />
      <adapter controlType="System.Web.UI.Page" adapterType="Telerik.Web.UI.RadSessionPageStateCompression" />
    </controlAdapters>
  </browser>
</browsers>

 

in web.config

<system.web
.
.
  
   
    <httpModules>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
    </httpModules>
  </system.web>

 

 

How can i  optimize viewstate and  compressing AJAX and Web Service responses  in my application ?

please help me ...

Thanks .

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

حمید
Top achievements
Rank 1
 asked on 31 May 2016
0 answers
193 views

Hi Telerik

I  want to customize ErrorMessage and EmptyMessage for each controls but when set ErrorMessage , that apply for all controls in <TargetControls > .

1) How can i customize for each controls ?

2) I want to after validate the message errors apear in ValidationSummary and ErrorMessage not show in controls !

3) How can i hise ErrorMessage after validating in control ?

please help me 

Thanks.

<telerik:RadInputManager ID="RadInputManager1"  runat="server">       
        <telerik:RegExpTextBoxSetting BehaviorID="Setting3"  EmptyMessage="..... how can customize this message for any controls ..." 
            ErrorMessage="..... how can customize this message for any controls ..." Validation-IsRequired="true" Validation-ValidationGroup="Search">
                <TargetControls >
                    <telerik:TargetInput ControlID="txtFirstName"  />
                    <telerik:TargetInput ControlID="txtLastName"  />
                    <telerik:TargetInput ControlID="txtEmail"  />
                    <telerik:TargetInput ControlID="txtZipCode"  />
                </TargetControls>
            </telerik:RegExpTextBoxSetting
    </telerik:RadInputManager>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

حمید
Top achievements
Rank 1
 asked on 31 May 2016
2 answers
97 views

I am pulling in dates from a database to highlight holidays in RadCalendar1_DayRender.  When I mouseover a highlighted date, the highlight disappears.  Is there a setting I need to keep the highlight date highlighted?

Thank you

Jeff
Top achievements
Rank 1
 answered on 31 May 2016
2 answers
97 views

Hi

The below renders inside a usercontrol with the label on initial load, but on postback, the button disappears.  The source info of the browser still contains the control, however.  The same happens for any control put into the LeftPane.

Am i doing something wrong or a bug?

Thanks

J

 

<telerik:RadSplitter RenderMode="Lightweight" ID="RadSplitter1" runat="server" Width="100%" Height="100%">

            <telerik:RadPane ID="LeftPane" runat="server" Width="200px">

            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

            </telerik:RadPane>

            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward">
            </telerik:RadSplitBar>

            <telerik:RadPane ID="EndPane" runat="server" Height="500px">

                    <div id="mapcanvas" style="height: 500px">
                    </div>

            </telerik:RadPane>

        </telerik:RadSplitter>

Vessy
Telerik team
 answered on 31 May 2016
4 answers
404 views
I have a grid Static headers and AllowScroll set to true. When I scroll all the way down the last row is not completely visible. And worse, if you edit the row you can't see the edit controls at all. I am using the latest UI version and the latest IE. Please see the attached screen shot. How do I fix this?

Thanks.

Charles

​
<telerik:RadGrid ID="rgNotifications" runat="server" AutoGenerateColumns="False" CellSpacing="0"  AllowPaging="false" AllowSorting="true" Width="920px" Skin="Windows7"
    Height="265px" >
    <ClientSettings EnableRowHoverStyle="true">
        <Scrolling AllowScroll="True" UseStaticHeaders="true" />
    </ClientSettings>
    <MasterTableView  DataSourceID="sqldsNotificationAddresses" ShowGroupFooter="false" DataKeyNames="NotificationAddressID" Width="820px"
        EditMode="InPlace" CommandItemDisplay="Top"
        CommandItemSettings-AddNewRecordText="Add Employee Notification"
        AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowAutomaticDeletes="true" >
                                                                 
    <CommandItemSettings ShowRefreshButton="false" />
    <NoRecordsTemplate>
        <div class="ACHD1">There are no Employee Notifications.</div>
    </NoRecordsTemplate>
    <ColumnGroups>
        <telerik:GridColumnGroup HeaderText="Send Notification For:" Name="Notify">
            <HeaderStyle HorizontalAlign="Center" />
        </telerik:GridColumnGroup>
    </ColumnGroups>
                                                             
    <Columns>
        <telerik:GridTemplateColumn HeaderText="Always<br />Notify on<br />Round Robin" UniqueName="NotifyRoundRobin">
            <ItemTemplate>
                <asp:CheckBox ID="cbAlwaysNotifyOnRoundRobin" runat="server" Checked='<%# Eval("AlwaysNotifyOnRoundRobin")%>' AutoPostBack="true" OnCheckedChanged="cbAlwaysNotifyOnRoundRobin_CheckChanged" />
            </ItemTemplate>
            <EditItemTemplate>
            </EditItemTemplate>
            <InsertItemTemplate>
            </InsertItemTemplate>
            <ItemStyle Width="55px" />
        </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn HeaderText="Employee Name" DataField="EmployeeName">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn HeaderText="Email Address" DataField="EmailAddress">
        </telerik:GridBoundColumn>
        <telerik:GridMaskedColumn HeaderText="SMS Text Number" DataField="SMSPhoneNumber" Mask="(###) ###-####">
        </telerik:GridMaskedColumn>
        <telerik:GridTemplateColumn HeaderText="Contact-Us Lead" ColumnGroupName="Notify">
            <ItemTemplate>
                <asp:CheckBox ID="cbNotifyContactUsLead" runat="server" Checked='<%# Eval("NotifyContactUsLead")%>' AutoPostBack="true" OnCheckedChanged="cbNotifyContactUsLead_CheckChanged" />
            </ItemTemplate>
            <EditItemTemplate>
            </EditItemTemplate>
            <InsertItemTemplate>
            </InsertItemTemplate>
            <ItemStyle Width="55px" />
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn HeaderText="Credit App" ColumnGroupName="Notify">
            <ItemTemplate>
                <asp:CheckBox ID="cbNotifyCreditApp" runat="server" Checked='<%# Eval("NotifyCreditApp")%>' AutoPostBack="true" OnCheckedChanged="cbNotifyCreditApp_CheckChanged" />
            </ItemTemplate>
            <EditItemTemplate>
            </EditItemTemplate>
            <InsertItemTemplate>
            </InsertItemTemplate>
            <ItemStyle Width="55px" />
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn HeaderText="3rd Party Lead" ColumnGroupName="Notify">
            <ItemTemplate>
                <asp:CheckBox ID="cbNotifyEmailParserLead" runat="server" Checked='<%# Eval("NotifyEmailParserLead")%>' AutoPostBack="true" OnCheckedChanged="cbNotifyEmailParserLead_CheckChanged" />
            </ItemTemplate>
            <EditItemTemplate>
            </EditItemTemplate>
            <InsertItemTemplate>
            </InsertItemTemplate>
            <ItemStyle Width="55px" />
        </telerik:GridTemplateColumn>
        <telerik:GridButtonColumn ConfirmText="Delete this EmployeeNotification?" ConfirmDialogType="RadWindow"
            ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" UniqueName="DeleteColumn">
            <ItemStyle Width="30px" />
        </telerik:GridButtonColumn>
        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditColumn">
            <ItemStyle Width="65px" />
        </telerik:GridEditCommandColumn>
                                                                 
    </Columns>
    </MasterTableView>
</telerik:RadGrid>
Martin
Top achievements
Rank 1
 answered on 31 May 2016
3 answers
121 views
I have no idea what a g tag is, but somehow it's getting added to my content when I click save. I attached a screenshot of the HTML view of the editor we are using to show the classes, etc. that are being added. Can someone please help? I'm not sure what to do.
Jamie
Top achievements
Rank 2
 answered on 31 May 2016
2 answers
159 views

Hi

Please help me out!

I have recently purchased a licence for the Q2 2016 devcraft tools and I am working on a website update...

I have a database in which numeric values have been recorded historically in an nvarchar column. I can't readily change the column type as it is in production and has several years of data in it.

However I would now like to use the aggregate function to put sum totals in a footer.  How can I achieve this from where we are now - i.e. with a non-numeric data column? Obviously I get an error just adding aggregate="Sum" ( 'Sum is not supported for type system.object').

I tried cheating by just changing the column from gridbound to gridnumeric but it is not so easily fooled!

Can you suggest what is the best way to get from the nvarchar database column I have now,  to getting an aggregate sum in the footer?

Thanks

Clive

Using Q2 2016 controls in VS 2015

 

Viktor Tachev
Telerik team
 answered on 31 May 2016
1 answer
84 views

I have a grid with two datetime column.

 

When i export this  to Excel the time part of the date is not getting exported. only the date exported.

Pavlina
Telerik team
 answered on 31 May 2016
5 answers
364 views

Hi,

How do I get RadImageGallery to restart the slideshow again, once it has finishes cycling through the images?

Thanks.

 

An

Viktor Tachev
Telerik team
 answered on 31 May 2016
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?