Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
69 views
Hi,

We were using telerik Rad Controls for ASP.NET AJAX Q3 2012 ,then upgraded telerik version to 2013.2.717.45.After this upgrading we are getting some kind of flickering effect in all the pages were we used  rad date pickers on postback  of any controls in IE 11 browser.
Do i have to change anything in my configuration in web config to migrate to q2 2013.Any assistance will be appreciated. 
Viktor Tachev
Telerik team
 answered on 22 Oct 2014
1 answer
160 views
Hello,

I have come across a strange issue in the Radeditor, which would randomly turns part of the text into partial hyperlink (a HTML anchor tag without url link) during text editing with shift key and other key entry movement (enter key, mouse click or cursor move).  I tried the Telerik Radeditor demo site and I can re-produce the same issue. (see attachments). Is this a known issue? Is that any patch available to resolve the problem?

Thanks,
Chuck Wan
Ianko
Telerik team
 answered on 22 Oct 2014
3 answers
241 views
        Hello!
I have RadGrid which is bound to DataSource, and one of my column (GridCheckBoColumn) is unbound.
I want to to get column value on client side:

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" PageSize="40"  CellSpacing="0" DataSourceID="entityDsAutoJoinLog" GridLines="None" Height="100%"  OnItemDataBound="RadGrid1_ItemDataBound"
         AllowAutomaticUpdates="true" >
<ClientSettings EnableRowHoverStyle="true" >
    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
</ClientSettings>
          
<MasterTableView AutoGenerateColumns="False" DataKeyNames="CLIENT_CLASS, KEY_VALUE" DataSourceID="entityDsAutoJoinLog" >
    <Columns>  
 <telerik:GridCheckBoxColumn UniqueName="Parent"  />
...


protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                CheckBox chkBoxParent = (CheckBox)dataBoundItem["Parent"].Controls[0];
                chkBoxParent.Enabled = true;
                int index = dataBoundItem.ItemIndex;
                chkBoxParent.Attributes.Add("onclick", "check('" + index + "')");
 
            }
        }

function check(index) {
    var grid = $find("<%= RadGrid1.ClientID %>");
                var MasterTable = grid.get_masterTableView();
                var row = MasterTable.get_dataItems()[index];
                var cell = MasterTable.getCellByColumnUniqueName(row, "Parent");
                if (cell.innerHTML == "True") {
                    alert('TRUE');
                }
            }



But cell.innerHTML return something like this:

<INPUT id=ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl08_ctl00 onclick="check('2');" type=checkbox name=ctl00$ContentPlaceHolder1$RadGrid1$ctl00$ctl08$ctl00>
Peter
Top achievements
Rank 1
 answered on 22 Oct 2014
2 answers
287 views
Hello!

Whatever I do I just can't get changed values from fields which I'm editing.

Column in RadGrid:

<telerik:GridCheckBoxColumn HeaderText="Truck" DataField="Truck_" DataType="System.Boolean"
</telerik:GridCheckBoxColumn> 

Codebehind (taken from here: http://www.telerik.com/help/radcontrols/prometheus/grdInsertUpdateDeleteAtDatabaseLevel.html):

GridEditableItem editedItem = e.Item as GridEditableItem; 
bool TruckCheckBox = ((CheckBox)editedItem["Truck_"].Controls[0]).Checked;   

Thanks in advance
Peter
Top achievements
Rank 1
 answered on 22 Oct 2014
5 answers
79 views
I am using version 2013.2.717.35 and on initial load the dropdown aligns properly. When I scroll however the dropdown no longer appears below the combobox. I have set properties oRadCombo.EnableScreenBoundaryDetection = False and  oRadCombo.ExpandDirection = RadComboBoxExpandDirection.Down. I have attached pictures showing the problem. Some of our users are forced to use IE9 only. Thanks for your consideration.
Joel
Top achievements
Rank 1
 answered on 21 Oct 2014
1 answer
177 views
Hi,

I have run into a bit of a problem with Sorting my grid and it seems to be related to the datasource, but I can't see why.

Originally in the code behind I had in the NeedDatasource event for my grid:
Dim lnqMerchSellers = db.usp_MER_Sellers_GetAll(drpStatus.SelectedValue, iSelectedCountryGroup, PageHelper.getUserAccessLevel(Profile.License, HttpContext.Current.User.Identity.Name, "Merchandise").ToString())
rgdMerchSellerList.DataSource = lnqMerchSellers

Sorting works.

I've now removed the sproc (usp_MER_Sellers_GetAll) from my DAL and access it using a SQL Datasource object on my aspx page.
<asp:SqlDataSource ID="sqlUserList" runat="server" ConnectionString="<%$ ConnectionStrings:AU_Deals_ConnectionString %>" SelectCommand="usp_MER_Sellers_GetAll" SelectCommandType="StoredProcedure" />

Then in the codebehind's NeedDatasource for my grid I use:
sqlUserList.SelectParameters.Clear()
sqlUserList.SelectParameters.Add("filter", DbType.Int32, drpStatus.SelectedValue)
sqlUserList.SelectParameters.Add("countryGroupID", DbType.Int32, iSelectedCountryGroup.ToString())
sqlUserList.SelectParameters.Add("accessLevel", DbType.String, PageHelper.getUserAccessLevel(Profile.License, HttpContext.Current.User.Identity.Name, "Merchandise").ToString())
 
rgdMerchSellerList.DataSource = lnqMerchSellers

Sorting on my grid, now doesn't work and I don't see why.

Any help would be greatly appreciated.

Thanks.
Konstantin Dikov
Telerik team
 answered on 21 Oct 2014
4 answers
409 views
Hi,

I have a window A with a button in it.
That window is open from my Main page as a modal.
When I click on the button in A, it opens another modal window B using
B is declared in Main.

The problem is that B appears behind A.
So I have to move A aside to be able to click on B for get it to come in front.

Is there a way to force the Z index of B to be in front of A.

Also it looks like the modality is not applied.
I mean I see the gray modal background.
But I can click on A or B without any problem when they should both be modal (meaning I should not be able to click on the other one)

Maybe I am doing something wrong.

In Main:

<telerik:RadWindow
    ID="RdWndw_AddEdit"
    runat="server"
    AutoSizeBehaviors="Width, Height"
    CssClass="Styles/Window.css"
    AutoSize="true"
    VisibleStatusbar="false"
    Behaviors="Move"
    VisibleOnPageLoad="false"
    ReloadOnShow="true"
    Modal="true"
    NavigateUrl="Popup_Add.aspx"
    OnClientClose="OnAddEditClose"
    EnableShadow="true">
</telerik:RadWindow>
 
<telerik:RadWindow
    ID="RdWndw_AddNewExtra"
    runat="server"
    AutoSizeBehaviors="Width, Height"
    AutoSize="true"
    VisibleStatusbar="false"
    Behaviors="Move"
    VisibleOnPageLoad="false"
    ReloadOnShow="true"
    Modal="true"
    NavigateUrl="Popup_AddNewExtra.aspx"
    OnClientClose="OnAddNewExtraClose"
    EnableShadow="true">
</telerik:RadWindow>

function OpenAddEdit() {
    var wnd = $find("<%=RdWndw_AddEdit.ClientID %>");
    wnd.show();
}
  
function OpenAddExtraField() {
    var wnd = $find("<%=RdWndw_AddNewExtra.ClientID %>");
    wnd.show();
}

In Popup A:

<telerik:RadButton
    ID="RadButton3"
    runat="server"
    Text="Add new field"
    OnClientClicked="CallOpenAddExtraFieldOnParent"
    CommandName="newField">
</telerik:RadButton>

function CallOpenAddExtraFieldOnParent(sender, args) {
    PageMethods.SetAddNewTypeFlag(sender.get_commandName());
    GetRadWindow().BrowserWindow.OpenAddExtraField();
}




Mickael
Top achievements
Rank 1
 answered on 21 Oct 2014
1 answer
168 views
Hello. Does Telerik have a control that shows tank levels? I attached an example image. It's basically just an ellipse that shows a percentage of how much liquid is in a tank. Thanks.
Marin Bratanov
Telerik team
 answered on 21 Oct 2014
2 answers
98 views
When utilizing the context menu filtering it works fine for adding 1 filter. If you do another action, like sort or add another filter, it keeps the previous filter but doesn't show it in the menu. If you click "Clear Filter" it does clear the filter that you don't see and refreshes the grid as you would expect. It doesn't do this in the Telerik demo, so I'm thinking there's something wrong with my code or there's been a fix since the Telerik build we're using (2013.2.717.35). Any ideas? Thanks.

<
telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        var cancelAjax = false;
 
        function RequestStart(sender, eventArgs) {
            if ((eventArgs.get_eventTarget() == "ctl00$ContentPlaceHolder1$ShipClassGridView$ctl00$ctl02$ctl00$WirsRadToolBar") &&
           (cancelAjax)) {
                eventArgs.set_enableAjax(false);
            }
            else eventArgs.set_enableAjax(true);
        }
 
        function OnClientButtonClickingHandler(sender, eventArgs) {
            if (eventArgs.get_item().get_value() == "NoAjax") {
                cancelAjax = true;
            }
        }
 
        function ShowColumnHeaderMenu(ev, columnName) {
            var grid = window.$find("<%=ShipClassGridView.ID %>");
            var columns = grid.get_masterTableView().get_columns();
 
            for (var i = 0; i < columns.length; i++) {
                if (columns[i].get_uniqueName() == columnName) {
                    columns[i].showHeaderMenu(ev, 75, 20);
                }
            }
        }
    </script>
</telerik:RadCodeBlock>
<telerik:RadGrid ID="ShipClassGridView" runat="server" AllowAutomaticDeletes="false"
    EnableViewState="false" Visible="true" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"
    EnableAJAX="true" GroupingEnabled="false" Skin="WIRS" EnableEmbeddedSkins="false"
    GridLines="None" OnItemCommand="ShipClassGridView_ItemCommand" OnNeedDataSource="ShipClassGridView_NeedDataSource"
    GroupingSettings-CaseSensitive="false" AllowSorting="True" EnableHeaderContextMenu="true"
    EnableHeaderContextFilterMenu="true" AllowFilteringByColumn="true" EnableLinqExpressions="false"
    OnItemDataBound="ShipClassGridView_OnItemDataBound" AutoGenerateColumns="False">
    <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true">
        <Excel Format="Biff" />
    </ExportSettings>
    <MasterTableView DataKeyNames="Id" IsFilterItemExpanded="false" AllowFilteringByColumn="true"
        CommandItemDisplay="Top" EnableNoRecordsTemplate="true">
        <NoRecordsTemplate>
            No results found for the selected ship class.</NoRecordsTemplate>
        <CommandItemTemplate>
            <telerik:RadToolBar runat="server" EnableEmbeddedSkins="false" Skin="WIRS" ID="WirsRadToolBar"
                Width="100%" OnClientButtonClicking="OnClientButtonClickingHandler" OnButtonClick="WirsRadToolBar_ButtonClick">
                <Items>
                    <telerik:RadToolBarButton Text="Export to Excel" Value="NoAjax" CommandName="ExportExcel"
                        ImageUrl="../images/Toolbar/xls.gif" />
                    <telerik:RadToolBarButton Text="Export to PDF" Value="NoAjax" CommandName="ExportPdf"
                        ImageUrl="../images/Toolbar/pdf.gif" />
                </Items>
            </telerik:RadToolBar>
        </CommandItemTemplate>
        <CommandItemSettings ShowAddNewRecordButton="false" ShowExportToPdfButton="true" />
        <Columns>
            <telerik:GridBoundColumn DataField="Id" HeaderText="Id" SortExpression="Id" AllowFiltering="false"
                Visible="false" />
            <telerik:GridTemplateColumn HeaderText="Hull Number" DataField="Hull" DataType="System.String"
                SortExpression="Hull">
                <ItemTemplate>
                    <asp:Label ID="HullLabel" runat="server" Text='<%# Eval("Hull") %>' Style="position: relative;
                        top: -3px;"></asp:Label>
                    <asp:Image ID="ImageHullNo" runat="server" ImageUrl="../images/New/eo_web.ashx.gif"
                        Visible="false" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" />
            <telerik:GridDateTimeColumn HeaderText="Last Modified" DataField="LastUpdateDate"
                SortExpression="LastUpdateDate" DataFormatString="{0:d}" UniqueName="LastUpdateDate"
                PickerType="None" />
            <telerik:GridBoundColumn DataField="ModifiedByDisplayName" HeaderText="Last Modified By"
                SortExpression="ModifiedByDisplayName" />
            <telerik:GridNumericColumn HeaderText="Total Records" DataField="WirsRowCount" SortExpression="WirsRowCount"
                UniqueName="WirsRowCount" />
            <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Ship Status">
                <ItemTemplate>
                    <asp:Label ID="RecordStatusLbl" runat="server" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
    <ClientSettings EnableRowHoverStyle="true" Resizing-AllowColumnResize="true" AllowColumnsReorder="true" />
</telerik:RadGrid>
Mike
Top achievements
Rank 1
 answered on 21 Oct 2014
3 answers
234 views
Currently Insert image option on your control is inserting image to editor by giving it a URL like "https:/localhost/MyProject/ImageName.jpg" but can i insert an image from client machine. like in the case of Upload where i choose from machine
i want insert image to choose image from machine instead of dialog box asking for URL....
Vessy
Telerik team
 answered on 21 Oct 2014
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?