Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
170 views

Hello,

I need help on following issue,

We are using 2014.3.1024.40 Telerik.Web.UI and Telerik.Web.UI.Skin dll in our application. We've Radwizard with multiple steps. Each step has its own validation group. There is no issue with validation display. 

 

Here is the problem.

1. I've the RadWizard RenderStep="Active"

2. If I move from first to second step there is no validation.

3. Second Tab I've control with validation check. When I try to move from second to Third step, application shows message for required fields. Close the message and if you click on First step using NavigationBar. The click event will not fir and will not show the controls I've inside first Step. But if I click again on First step then the controls will be rendered and will display on page.

I used latest 2017 Telerik.Web.UI.dll and looks like this issue is fixed in new dll. But to use new dll we need to use the new skin also and when I used the new skin my application display is changing drastically and I don't want to spend time to fix UI.

Can you please give us some direction to fix the navigationbarclick event fix after the validation message.

 

Thank you,

Sagar

Arnav
Top achievements
Rank 1
 asked on 17 Nov 2017
2 answers
153 views

Is there an option to set the default caption for the Scheduler and menu items? For example,  set caption to "New Event" instead of "New Appointment". 

Just getting started with the Scheduler.

Thanks

Frank McGuire
Top achievements
Rank 1
 answered on 17 Nov 2017
0 answers
251 views

I have a radgrid which displays html as one of the columns.   If one of the rows has a large font, the size of the row height does not expand to match.  What can I do to ensure that the height matches what the HTML would display?  I am attaching an example:  The third row shows the issue.

This is the ASPX code.

 

                <telerik:RadGrid ID="rgNotes" runat="server" AllowSorting="True"
                    AutoGenerateColumns="False" Width="100%">
                    <MasterTableView OverrideDataSourceControlSorting="true" AllowSorting="true" DataKeyNames="TranscriptNoteId,NoteGUID" >
                        <Columns>
                            <telerik:GridButtonColumn UniqueName="btnEdit" Text="Edit" ButtonType="LinkButton" CommandName="EditNote" ItemStyle-Width="1%"  />                                    
                            <telerik:GridButtonColumn UniqueName="btnDelete"  Text="Delete" ConfirmText="Confirm delete?" ButtonType="LinkButton" CommandName="DeleteNote" ItemStyle-Width="1%" />                                                                                                            
                            <telerik:GridBoundColumn DataField="Note" HeaderText="Note" SortExpression="Note" />                            
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid> 

 

 

Patrick
Top achievements
Rank 1
 asked on 17 Nov 2017
2 answers
146 views

Hello!

When I have many columns of type GridDateTimeColumn in a grid with AllowFilteringByColumn="true", the Chrome shows the horizontal scroll bar for the whole browser window in addition to the grid’s scroll bar (please see the code and the attached screenshot below).

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Test.Test" %>
<!DOCTYPE html>
<head runat="server">
  <title>Test</title>
</head>
<body>
  <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" PersistenceMode="Cookie" ShowChooser="false" EnableViewState="false" />
 
    <telerik:RadGrid ID="RadGrid1" 
      runat="server" Width="100%" AutoGenerateColumns="False" CellSpacing="0" GridLines="Vertical" EnableLinqExpressions="false"
      AllowFilteringByColumn="true" OnNeedDataSource="RadGrid1_NeedDataSource">
      <MasterTableView Width="100%" AllowSorting="true">
        <Columns>
          <telerik:GridDateTimeColumn HeaderText="Column 1" UniqueName="C1" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 2" UniqueName="C2" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 3" UniqueName="C3" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 4" UniqueName="C4" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 5" UniqueName="C5" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 6" UniqueName="C6" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 7" UniqueName="C7" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 8" UniqueName="C8" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 9" UniqueName="C9" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 10" UniqueName="C10" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 11" UniqueName="C11" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 12" UniqueName="C12" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 13" UniqueName="C13" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 14" UniqueName="C14" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 15" UniqueName="C15" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 16" UniqueName="C16" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 17" UniqueName="C17" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 18" UniqueName="C18" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
          <telerik:GridDateTimeColumn HeaderText="Column 19" UniqueName="C19" DataField="C1" HeaderStyle-Width="150px" FilterControlWidth="100px" />
        </Columns>
      </MasterTableView>
      <ClientSettings>
        <Selecting AllowRowSelect="true" />
        <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="180" />
        <Resizing AllowResizeToFit="true" AllowColumnResize="true" />
      </ClientSettings>
    </telerik:RadGrid>
  </form>
</body>
</html>

 

using System;
using System.Data;
using Telerik.Web.UI;
 
namespace Test
{
  public partial class Test : System.Web.UI.Page
  {
    protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
      RadGrid1.DataSource = new DataTable();
    }
  }
}

 

If I change FilterControlWidth from “100px” to "100%" it does not help.

If I replace GridDateTimeColumn with GridBoundColumn, or if I set AllowFilteringByColumn="false", the concerned scroll bar disappears.

There is no scroll bar in Internet Explorer 11 and Firefox, but it is shown in Chrome and Opera.

Telerik.Web.UI version is 2017.2.711.45.

So, could you please advise me how to get rid of that scroll bar in the browser window?

Thank you!

 

Vlad
Top achievements
Rank 1
 answered on 17 Nov 2017
1 answer
164 views

Hi,

I have a RadGrid that is using EditMode="InPlace".  This grid has several RadComboBoxes in the Insert/Edit templates.  How can I make the [Enter] key work like the [Tab] key.  I would like to move focus to the next control when the user presses the enter key in the RadComboBox.

 

Thank You

Tracy

 

Note:  The following code OnClientFocus="TelerikOnClientFocus" OnClientBlur="TelerikOnClientLostFocus" just changes the backcolor of the control to yellow on focus and back to white when it loses focuses.

 

 

 

 

 

<telerik:GridTemplateColumn UniqueName="gtcStandardItem" HeaderStyle-Width ="120px"  HeaderText="Standard Item"  DataField="StandardItem">
    <ItemTemplate>       <asp:Label           ID="lblStandardItem"           runat="server" Text='<%# Eval("StandardItem") %>' /> </ItemTemplate>
    <EditItemTemplate>  
        <telerik:RadComboBox ID="rcbEditStandardItem"       runat="server" DataSourceID="SQLDS_StandardItem" DataTextField="StandardItem" DataValueField="StandardItem" Width="110px"  OnSelectedIndexChanged="rcbEditStandardItem_SelectedIndexChanged"   OnItemDataBound="rcbEditStandardItem_ItemDataBound" AutoPostBack="true" MarkFirstMatch="true" AllowCustomText="true" OnClientFocus="TelerikOnClientFocus" OnClientBlur="TelerikOnClientLostFocus" EnableVirtualScrolling="true"  ShowDropDownOnTextboxClick = "false"/>
    </EditItemTemplate>
    <InsertItemTemplate> <telerik:RadComboBox ID="rcbInsertStandardItem"     runat="server" DataSourceID="SQLDS_StandardItem" DataTextField="StandardItem" DataValueField="StandardItem" Width="110px"  OnSelectedIndexChanged="rcbInsertStandardItem_SelectedIndexChanged" OnItemDataBound="rcbInsertStandardItem_ItemDataBound" AutoPostBack="true" MarkFirstMatch="true" AllowCustomText="true" OnClientFocus="TelerikOnClientFocus" OnClientBlur="TelerikOnClientLostFocus" EnableVirtualScrolling="true"  ShowDropDownOnTextboxClick = "false"/> </InsertItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="gtcJob" HeaderStyle-Width ="120px"  HeaderText="Job"  DataField="Job">
    <ItemTemplate>       <asp:Label           ID="lblJob"           runat="server" Text='<%# Eval("Job") %>' /> </ItemTemplate>
    <EditItemTemplate>   <telerik:RadComboBox ID="rcbEditJob"       runat="server" DataSourceID="SQLDS_Job" DataTextField="Job" DataValueField="Job" Width="110px"  OnSelectedIndexChanged="rcbEditJob_SelectedIndexChanged"   OnItemDataBound="rcbEditJob_ItemDataBound"  AutoPostBack="true" MarkFirstMatch="true" AllowCustomText="true" OnClientFocus="TelerikOnClientFocus" OnClientBlur="TelerikOnClientLostFocus" EnableVirtualScrolling="true"  ShowDropDownOnTextboxClick = "false"/> </EditItemTemplate>
    <InsertItemTemplate> <telerik:RadComboBox ID="rcbInsertJob"     runat="server" DataSourceID="SQLDS_Job" DataTextField="Job" DataValueField="Job" Width="110px"  OnSelectedIndexChanged="rcbInsertJob_SelectedIndexChanged" OnItemDataBound="rcbInsertJob_ItemDataBound" AutoPostBack="true" MarkFirstMatch="true" AllowCustomText="true" OnClientFocus="TelerikOnClientFocus" OnClientBlur="TelerikOnClientLostFocus" EnableVirtualScrolling="true"  ShowDropDownOnTextboxClick = "false"/> </InsertItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="gtcExtra" HeaderStyle-Width ="110px"  HeaderText="Extra" DataField="Extra" >
    <ItemTemplate> <asp:Label ID="lblExtra"  runat="server"  Text='<%# Eval("Extra") %>' /> </ItemTemplate>
    <EditItemTemplate> <telerik:RadComboBox ID="rcbEditExtra"  runat="server"  DataSourceID="SQLDS_Extra" DataTextField="Extra" DataValueField="Extra" Width="90px" AutoPostBack="true" MarkFirstMatch="true" AllowCustomText="true" OnClientFocus="TelerikOnClientFocus" OnClientBlur="TelerikOnClientLostFocus" EnableVirtualScrolling="true"  ShowDropDownOnTextboxClick = "false"/> </EditItemTemplate>
    <InsertItemTemplate> <Telerik:RadComboBox ID="rcbInsertExtra"  runat="server"  DataSourceID="SQLDS_Extra" DataTextField="Extra" DataValueField="Extra" Width="90px" AutoPostBack="true" MarkFirstMatch="true" AllowCustomText="true" OnClientFocus="TelerikOnClientFocus" OnClientBlur="TelerikOnClientLostFocus" EnableVirtualScrolling="true"  ShowDropDownOnTextboxClick = "false"/> </InsertItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="gtcCostCode" HeaderStyle-Width ="110px"  HeaderText="CostCode" DataField="CostCode" >
    <ItemTemplate> <asp:Label ID="lblCostCode"  runat="server"  Text='<%# Eval("CostCode") %>' /> </ItemTemplate>
    <EditItemTemplate> <telerik:RadComboBox ID="rcbEditCostCode"  runat="server"  DataSourceID="SQLDS_CostCode" DataTextField="CostCode" DataValueField="CostCode" Width="90px" MarkFirstMatch="true" AllowCustomText="true" OnClientFocus="TelerikOnClientFocus" OnClientBlur="TelerikOnClientLostFocus" EnableVirtualScrolling="true"  ShowDropDownOnTextboxClick = "false"/> </EditItemTemplate>
    <InsertItemTemplate> <telerik:RadComboBox ID="rcbInsertCostCode"  runat="server"  DataSourceID="SQLDS_CostCode" DataTextField="CostCode" DataValueField="CostCode" Width="90px" MarkFirstMatch="true" AllowCustomText="true" OnClientFocus="TelerikOnClientFocus" OnClientBlur="TelerikOnClientLostFocus" EnableVirtualScrolling="true"  ShowDropDownOnTextboxClick = "false" /> </InsertItemTemplate>
</telerik:GridTemplateColumn>
Attila Antal
Telerik team
 answered on 17 Nov 2017
2 answers
92 views

I have a grid that is configured to bulk edit the rows.  I want it to push the changes live back to the server instead of having to do them all then click save.  I want to remove the save button.

 

Possible?  

 

Thanks!

Attila Antal
Telerik team
 answered on 17 Nov 2017
1 answer
338 views

Hi,

We use an incredibly old version of your ASP.NET Controls for AJAX: 2013.2.717.40 (we took over this website and it is huge and we haven't wanted to upgrade your controls because of the testing effort involved).

A previous developer is displaying (and hiding) a RadWindow during postbacks, with VisibleOnPageLoad = true (and false to hide it). I know, that should NOT be done.

To make this even worse, he had it wrapped in a RadWindowManager and the ascx control where the RadWindow is located, is wrapped in other controls that are all wrapped in RadAjaxPanels (or ajaxed in code-behind). I've removed the RadWindowManager...

I can NOT remove the RadAjax from this scenario, because of how complicated it is.

MY ISSUE: The RadWindow is being used as a Content Container, but none of the controls (asp linkbuttons) are displayed when the radwindow is displayed.

I know the reason for that, based on Telerik documentation I've read. Basically, in the scenario I've given, a separate html block is created for the RadWindow and there are no controls in that one. The other html block is also in the html source of the page and that one does have the buttons in it, but that isn't the one that is being used.

MY QUESTION: I've tried to add the linkbutton controls to the RadWindow ContentContainer in code, but they still don't show up in the RadWindow when it is displayed. Is that again because of how the developer is doing this, with VisibleOnPageLoad and the fact that it is wrapped in an ajax panel?  Or should the controls have been added and displayed? The only place they were added, was in the html markup that is inside the ajax panel (the radwindow that doesn't get displayed) My code was this:

    protected void Page_Init(object sender, System.EventArgs e)
    {
        var btn1 = new LinkButton();
        var lbl = new Label();
        lbl.Text = "label added";
        btn1.Text = "button added";
        btn1.PostBackUrl = _viewCartUrl;
        PopupWindow.ContentContainer.Controls.Add(lbl);
        PopupWindow.ContentContainer.Controls.Add(btn1);
    }

The next thing I will try is to show the button with client-side script as you've documented in other examples, like this code that I'll run from a server side button click:

        string script = "function f(){$find(\"" + PopupWindow.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
        System.Web.UI.ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);

Again though, my main question for now is:  Should the controls that I add dynamically to a RadWindow, display when that RadWindow is shown by using the VisibleOnPageLoad property, when that radwindow is in a control that is wrapped in RadAjax?

Thanks, 
Brent

Brent
Top achievements
Rank 1
 answered on 17 Nov 2017
4 answers
381 views
Hi,

I created a RadComboBox with checkboxes control. When I load page, it will bind data from db also pre-select some items. I tried the item.selected = true only works for single selection ( without checkboxes ). Is there any way to make multiple selections in the ComboBox with checkboxes?

Thanks,

Lan
Swati
Top achievements
Rank 1
 answered on 17 Nov 2017
3 answers
198 views

Hello,

I have a whitespace issue for when you click the filter options button when trying to filter integer type columns as well as for date type columns. There is empty whitespace for options that do not apply to integer or date type columns such as contains etc.I would like there to be no whitespace and EqualTo right under NoFilter as well as IsNull right under LessThanOrEqualTo. The whitespace does not look good at all. Please see the attached photo to see the issue. Thanks in advance.

Jaime.
Top achievements
Rank 1
 answered on 16 Nov 2017
0 answers
116 views

Hi, 

I have the following code (simplified to show the issue) with three ComboBoxes. Two of them are populated using an Ajax call. There is also a table with client-side click events:

<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadComboBox1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadComboBox1" />
                <telerik:AjaxUpdatedControl ControlID="RadComboBox2" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadComboBox2">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadComboBox2" />
                <telerik:AjaxUpdatedControl ControlID="RadComboBox3" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<table cellspacing="10">
    <tr height="100">
        <td style="width:100px;background-color:aquamarine;" onclick="alert('clicked');"></td>
        <td style="width:100px;background-color:burlywood" onclick="alert('clicked');"></td>
        <td style="width:100px;background-color:darkgreen" onclick="alert('clicked');"></td>
        <td style="width:100px;background-color:lightsteelblue" onclick="alert('clicked');"></td>
    </tr>
</table>
<telerik:RadComboBox ID="RadComboBox1" AutoPostBack="true" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged" runat="server">
    <Items>
        <telerik:RadComboBoxItem Value="0" Text="[Select]" />
        <telerik:RadComboBoxItem Value="1" Text="AAA" />
        <telerik:RadComboBoxItem Value="2" Text="BBB" />
        <telerik:RadComboBoxItem Value="3" Text="CCC" />
    </Items>
    </telerik:RadComboBox>
<br />
<telerik:RadComboBox ID="RadComboBox2" AutoPostBack="true" OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged" runat="server" />
<br />
<telerik:RadComboBox ID="RadComboBox3" runat="server" />

Code behind:

protected void RadComboBox1_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    RadComboBox2.Items.Clear();
    for(int i = 1; i<10; ++i)
    {
        RadComboBoxItem item = new RadComboBoxItem();
        item.Text = "AAA-" + i.ToString();
        item.Value = i.ToString();
        RadComboBox2.Items.Add(item);
    }
    RadComboBox2.SelectedIndex = 0;
}
protected void RadComboBox2_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    RadComboBox3.Items.Clear();
    for (int i = 1; i < 10; ++i)
    {
        RadComboBoxItem item = new RadComboBoxItem();
        item.Text = "BBB-" + i.ToString();
        item.Value = i.ToString();
        RadComboBox3.Items.Add(item);
    }
    RadComboBox3.SelectedIndex = 0;
}

 

This is how to replicate the problem:

1. Select a value from RadComboBox1. This populates RadComboBox2 using Ajax.

2. Select a value from RadComboBox2. This populates RadComboBox3 using Ajax.

3. Click any of the table cells. The click event is "lost" (nothing happens).

4. Click another table cell. This time the click event is fired.

 

Why is that? Am I doing something wrong in the code?

 

Thanks,

Leszek

 

 

Leszek
Top achievements
Rank 1
 asked on 16 Nov 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?