Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
281 views
When I display the grid the page size DDL is not displaying correctly - see attachment

What can I do to fix this?

Thanks in advance
Mark
Top achievements
Rank 1
 answered on 21 Jan 2015
1 answer
385 views
Hello

I need to use .net framework 3.5 in a project.

I'm trying to add this assembly:
<add assembly="Telerik.Web.UI, Version=2013.2.717.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>

Gives this warning and error:
---------------------------

Warning    101    The following assembly has dependencies on a version of the .NET Framework that is higher than the target and might not load correctly during runtime causing a failure: Telerik.Web.UI, Version=2013.2.717.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4. The dependencies are: System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. You should either ensure that the dependent assembly is correct for the target framework, or ensure that the target framework you are addressing is that of the dependent assembly.    

Error    104    The type 'System.Web.UI.IScriptControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

---------------------------

* System.Web.Extensions is already referenced.

Thanks.

regards, Nakori

Pavlina
Telerik team
 answered on 21 Jan 2015
1 answer
83 views
i tried the demo of radsheduler http://demos.telerik.com/aspnet-ajax/scheduler/examples/overview/defaultcs.aspx here we can press on a specific hour of exemple 8.00am and if continuing pressing til 11.00h if gets the blue colour , but on iphone 6 i tried the demo and i cant get the same behaviour so if i press one hour then still pressing til 11 it get the calendar down and not selecting the event time, so what may i'm doing wrong
Boyan Dimitrov
Telerik team
 answered on 21 Jan 2015
2 answers
248 views
Can some one please tel me if there is a way (java) to get the currently selected tab?

cheers,

Jeanne Kornkven
Top achievements
Rank 1
 answered on 21 Jan 2015
2 answers
161 views
Hello Team,

I want to add the checkbox to the gridview. Here the gridview is the user control. I tired to add the checkbox as usual for the grid. But it was showing the error. Am i I missing anything while adding. 

This is my user control.ascx code. I have not added the checkbox. Please suggest me where to add. I used the <asp: checkbox....</asp>. This method gave the error.
<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="LocationGrid.ascx.cs"
    Inherits="Unisys.AppointmentManager.UserInterface.LocationGrid" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<table cellpadding="0" cellspacing="0">
    <tr runat="server" id="channelTypeRow" visible="false">
        <td style="width: 450px">
            <telerik:RadComboBox ID="cbChannelType" runat="server" AllowCustomText="True" Width="200px"
                OnSelectedIndexChanged="cbChannelType_SelectedIndexChanged" AutoPostBack="True" meta:resourcekey="cbChannelTypeResource1">
            </telerik:RadComboBox>
        </td>
        <td></td>
    </tr>
    <tr>
        <td style="width: 450px">
            <telerik:RadGrid ID="rgLocations" runat="server" AutoGenerateColumns="False"
                Height="100%" Width="100px" Culture="en-GB" GridLines="None" CellSpacing="0"
                ShowHeader="False" ViewStateMode="Enabled" BorderColor="#C3D9F9" BorderWidth="1px" meta:resourcekey="rgLocationsResource1">
                <ClientSettings>
                    <Selecting CellSelectionMode="None"></Selecting>
                </ClientSettings>
                <ExportSettings>
                    <Pdf>
                        <PageHeader>
                            <LeftCell Text=""></LeftCell>
                            <MiddleCell Text=""></MiddleCell>
                            <RightCell Text=""></RightCell>
                        </PageHeader>
                       <PageFooter>
                            <LeftCell Text=""></LeftCell>
                            <MiddleCell Text=""></MiddleCell>
                            <RightCell Text=""></RightCell>
                        </PageFooter>
                    </Pdf>
                </ExportSettings>
                <MasterTableView AllowAutomaticInserts="false" Width="100%" CommandItemDisplay="None"
                    CommandItemSettings-AddNewRecordText="Add a location" CommandItemSettings-ShowRefreshButton="False"
                    DataKeyNames="Id" NoMasterRecordsText="optional" ViewStateMode="Enabled"
                    GridLines="None" EditMode="InPlace" ShowHeadersWhenNoRecords="False">
                    <NoRecordsTemplate>
                        <div id="locationContainer" style="height: 24px; font-style: italic; font-family: Segoe UI, Arial, sans-serif; font-size: 12px;" onclick="CallChangeLocation();">
                            <span style="position: relative; left: 5px; top: 3px;"></span>
                        </div>
                    </NoRecordsTemplate>
                    <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="Id" UniqueName="Id" HeaderText="No" Display="false" meta:resourcekey="GridBoundColumnResource1"
                           <ColumnValidationSettings>
                                <ModelErrorMessage Text=""></ModelErrorMessage>
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Name" HeaderText="Location" UniqueName="Name"
                            HeaderStyle-HorizontalAlign="Left" meta:resourcekey="GridBoundColumnResource2">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text=""></ModelErrorMessage>
                            </ColumnValidationSettings>
                            <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Left" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="CTID" HeaderText="No" Display="false" meta:resourcekey="GridBoundColumnResource3">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text=""></ModelErrorMessage>
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="CTName" HeaderText="No" Display="false" meta:resourcekey="GridBoundColumnResource4">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text=""></ModelErrorMessage>
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                          <telerik:GridTemplateColumn>
                        <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" CausesValidation="false"
                        OnCheckedChanged="CheckBox1_CheckedChanged" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    </Columns>
                    <EditFormSettings>
                        <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                    </EditFormSettings>
                    <BatchEditingSettings EditType="Cell"></BatchEditingSettings>
                    <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
                </MasterTableView>
            </telerik:RadGrid>
        </td>
        <td>
            <a id="changeLocationLink" class="actionlink" href="javascript:CallChangeLocation()"
                runat="server" title="<%$Resources: , Change_The_Locations%>">Change the location(s)</a>
        </td>
    </tr>
</table>



 












sharath
Top achievements
Rank 1
 answered on 21 Jan 2015
2 answers
187 views
I have a RadToolTipManager setup like this:

<telerik:RadToolTipManager
    runat="server"
    ID="ttChart"
    Position="BottomCenter"
    OffsetY="-10"
    RenderMode="Lightweight"
    EnableRoundedCorners="False"
    RelativeTo="Element"
    Width="435"
    Height="350"
    HideEvent="ManualClose"
    HideDelay="800" 
    ContentScrolling="Y"
    Skin="Default"="3450
    ShowDelay="0" 
    Modal="True"
    ShowEvent="OnClick"
    Animation="resize"
    OnAjaxUpdate="updateChart"
    RenderInPageRoot="true">
</telerik:RadToolTipManager>

In my RadGrid I insert Cells with dymanic tooltip references - using OnAjaxLoad to load an ASCX.  Works great.

Problem is that the Loading image does not show - unless I remove ContentScrolling="Y", or Height="350".  Either of those seem to make the loading image come back when removed.  

Trouble is I would like to use both of these features.  Is this a bug?  (Using 2014.3.1209.45)



Dan
Top achievements
Rank 1
 answered on 21 Jan 2015
3 answers
343 views
Hi i am having issues while implementing the "Go to page" in Telerik grid, i tried using  http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/paging/basic-paging/defaultcs.aspx. 

I tested by checking different modes like PageStyle Mode to "Slider" , "Numeric"  , "NextPrevious" which are working fine . But when it comes to "Advanced" and "NextPrevNumericAndAdvanced" i am not able to see the "Go to page" option in grid. Even i tried setting Enable view state of grid to "true" .

You can See my design here:

    <telerik:RadGrid ID="grdResFaxes" runat="server" EnableViewState="true" AllowSorting="True"
                                            AllowFilteringByColumn="False" OnNeedDataSource="grdResFaxes_NeedDataSource"
                                            Skin="Metro" CellSpacing="0" GridLines="None" Width="99%" PageSize="12" OnItemCommand="grdResFaxes_ItemCommand">
                                           <%-- <PagerStyle Mode="Slider" AlwaysVisible="true" Position="Bottom"></PagerStyle>--%>
                                            <ExportSettings IgnorePaging="true" Excel-FileExtension="xls" FileName="Faxes" OpenInNewWindow="true">
                                                <Excel Format="Biff" />
                                            </ExportSettings>
                                            <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" DataKeyNames="DocumentId,NonAdhererId"
                                                AllowNaturalSort="false" AllowPaging="true" CommandItemSettings-ShowExportToExcelButton="true"
                                                CommandItemSettings-ShowAddNewRecordButton="false" PagerStyle-Mode="Slider"
                                                PagerStyle-Position="Bottom">
                                                <Columns>
                                                    <telerik:GridBoundColumn DataField="RecDate" FilterControlAltText="Filter ReceivedDate column"
                                                        HeaderText="Received Date" SortExpression="RecDate" UniqueName="RecDate" ItemStyle-Width="20%"
                                                        FilterControlWidth="75px">
                                                      .
                                                      .
                                                      .
                                                      .

                                                   </telerik:RadGrid>
 

Pavlina
Telerik team
 answered on 21 Jan 2015
1 answer
305 views
Hi 

I am facing reference issue with RadGantt, i am using Telerik.Web.UI, Version=2013.3.1015.45

Error 85 The type or namespace name 'RadGantt' does not exist in the namespace 'Telerik.Web.UI' (are you missing an assembly reference?) F:\Magazine Web\Code\CAMWeb\WebFormsApp\WebTest.aspx.designer.cs 22 42 WebFormsApp

Using this demo code

<telerik:RadGantt ID="RadGantt1" 
            runat="server" 
            DataSourceID="SqlDataSource1" 
            DependenciesDataSourceID="SqlDataSource2" 
            ReadOnly="true" 
            SelectedView="WeekView">
             <DataBindings>
                <TasksDataBindings IdField="ID" ParentIdField="ParentID" StartField="Start" OrderIdField="OrderID" SummaryField="Summary" ExpandedField="Expanded" EndField="End" TitleField="Title"
                    PercentCompleteField="PercentComplete" />
                <DependenciesDataBindings TypeField="Type" IdField="ID" PredecessorIdField="PredecessorID" SuccessorIdField="SuccessorID" />
             </DataBindings>
        </telerik:RadGantt>

Ivan Danchev
Telerik team
 answered on 21 Jan 2015
1 answer
134 views
I am wanting to track the time it takes a user to begin the edit process when they click on a edit button (ImageButtonEdit)  in a editCommandColumn,
This is the eqatec code I want to inject on the server side via register script when the button is clicked... 

// Tracking timing
g._eqatecmonitor.trackFeatureStart("SomeLongOperation");


When they click on the save command.. I want to insert the stop monitoring code..

someLongOperation();
g._eqatecmonitor.trackFeatureStop("SomeLongOperation");


Has anyone done this?  I am using the eqatec javascript side of this to track client behavior, not the server side options.





01.<Columns>
02.    <telerik:GridTemplateColumn UniqueName="EditCommandColumn" AllowFiltering="false">
03.        <ItemTemplate>
04.            <div style="width: 50px">
05.                <asp:ImageButton ID="ImageButtonEdit" runat="server" CommandName="Edit" ImageUrl='<%# string.Format("~/App_Themes/{0}/Grid/Edit.gif", Page.Theme) %>'
06.                    AlternateText="Edit" ToolTip="Edit" />
07.                  
08.                <asp:ImageButton ID="ImageButtonDuplicate" runat="server" CommandName="Duplicate"
09.                    ImageUrl='<%# string.Format("~/App_Themes/{0}/Images/Copy_16.gif", Page.Theme) %>'
10.                    AlternateText="Duplicate" ToolTip="Duplicate" />
11.            </div>
12.        </ItemTemplate>
13.        <ItemStyle HorizontalAlign="Center" />
14.    </telerik:GridTemplateColumn>
Richard Flamsholt
Telerik team
 answered on 21 Jan 2015
6 answers
507 views
I need to be able to occasionally span a Text value across 3 NumericColumns when those columns are not relevant. I have attached a screenshot where I have cleared the appropriate columns and added the Text info. Now I need to know how to span the text from Column 1 into Column 2 and 3 without affecting the column headers or the data in other rows.

Here are a few snippets of my code to show what I'm working with:

CODE-BEHIND (ItemDataBound)
If Not IsDBNull(dataRow("span_data")) Then
  For Each col As GridColumn In TryCast(sender, RadGrid).MasterTableView.RenderColumns
    Select Case col.UniqueName
      Case "column1"
        col.ItemStyle.HorizontalAlign = HorizontalAlign.Leftrow("column1_data").Text = CStr(dataRow("span_data"))
      Case "column2"
        row("column2_data").Text = " "
      Case "column3"
        row("column3_data").Text = " "
    End Select
  Next
End If


FRONT-END
<telerik:GridNumericColumn HeaderText="Column 1" HeaderStyle-Width="80px" ItemStyle-HorizontalAlign="Right" DataField="column1" UniqueName="column1" SortExpression="column1" DataFormatString="{0:$#,##0;($#,##0);$#,##0}" />

<
telerik:GridNumericColumn HeaderText="Column 2" HeaderStyle-Width="80px" ItemStyle-HorizontalAlign="Right" DataField="column2" UniqueName="column2" SortExpression="column2" DataFormatString="{0:$#,##0;($#,##0);$#,##0}" />

<
telerik:GridNumericColumn HeaderText="Column 3" HeaderStyle-Width="80px" ItemStyle-HorizontalAlign="Right" DataField="column3" UniqueName="column3" SortExpression="column3" DataFormatString="{0:$#,##0;($#,##0);$#,##0}" />

License
Top achievements
Rank 1
 answered on 21 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?