Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
223 views
I just have a basic editable grid with EditMode of EditForms.

All of the validation works for each item but I would like a rad modal pop up notification of the summary or even a message saying some fields are not correct.

I have tried several example from the forums with no luck. I've added it on itemcreated, and manully, and even above the grid.  Just does not seem to work.

A typical column looks like this:

<telerik:GridTemplateColumn HeaderText="*Address" UniqueName="address" DataField="address"
                                Display="false">
                                <ItemTemplate>
                                    <asp:Label ID="lbladdress" runat="server" Text='<%# Eval("address") %>'></asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadTextBox ID="txbaddress" Width="300px" runat="server"
                                        Text='<%# Eval("address") %>'>
                                    </telerik:RadTextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator_address" runat="server" ControlToValidate="txbaddress"
                                        ErrorMessage="Required" Text="*"></asp:RequiredFieldValidator>
                                </EditItemTemplate>
                                <ItemStyle VerticalAlign="Top"></ItemStyle>
                            </telerik:GridTemplateColumn>

help would be great!

Marty
Angel Petrov
Telerik team
 answered on 22 Oct 2014
7 answers
239 views
We have a customer reporting this error when switching from Design mode to HTML mode.

The editor content is:

<p><ul><li></li></ul></p>

I get the same error with this content:

<p><table></table></p>

Disabling the ConvertToXhtml filter prevents the error from occurring.

Editor version is:  2014.1.403.45.

Has this been fixed in a later version of the editor?  Or can you provide a workaround to this problem?

Thanks,
Trevor.



Ianko
Telerik team
 answered on 22 Oct 2014
1 answer
90 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
188 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
281 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
308 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
96 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
217 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
463 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
188 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?