Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
209 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
82 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
143 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
309 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
274 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
81 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
457 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
8 answers
229 views
After setting the back color of the treelist,, the alternating row selection color only covers half the row. How can I remove this behavior?
Pavlina
Telerik team
 answered on 21 Jan 2015
1 answer
319 views
We are using a third party tool to monitor our web application and log exceptions.  That tool is showing "The Pattern constraint failed" (class: XmlSchemaException) exceptions within RadMenu_Load event. I tried to identify the possible cause, but I did not make it.  Are you aware of this exception in RadMenu ? Is there any possibility in getting this exception in RadMenu ?
Boyan Dimitrov
Telerik team
 answered on 21 Jan 2015
1 answer
130 views
We had recently updated from 2012 - Q2 to 2013 - Q3 . We have come across an issue where url encodes with %20 (aka a space in the name of the image) causes a RadButton with an image to change the url on mouse over / hover and make the image disappear / lose it's original URL because the encoding is changing.

For example, the original url for an image will load and display as:

http://8f2270e13c3e0703baa2-6c2aaf386ecfc7423d48bccd1a997322.r2.cf1.rackcdn.com/Public-Personal/Who%20We%20Are/Our%20Mission/plumpy-updated.jpg

When hovered, it is changed to:

http://8f2270e13c3e0703baa2-6c2aaf386ecfc7423d48bccd1a997322.r2.cf1.rackcdn.com/Public-Personal/Who%2520We%2520Are/Our%2520Mission/plumpy-updated.jpg

The url returned back that then does not display is encoding my %20 (a space) now to a %2520 (%25 is a %) and the added 20 goes no where causing a dead link. 

Is there a simple solution to prevent the automatic encoding from happening? I would prefer to not go through a 4 year old project and change every image that could potentially have this happening. 

We have typically tried to keep spacing out of our url's as a best practice, but it does not always happen that way.

Thanks
Danail Vasilev
Telerik team
 answered on 21 Jan 2015
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?