Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
106 views

Hello

Am testing to buy the package because of scheduler control specifically.

I have developed a form which I want to replace with the appointment and I want it popup each time you double click. I don't want the default appointment.

I want to know how time and date comes and Id storing the unique code such that I know how to extract them and use it in my advanced form already designed since the appointment cant give me what I need exactly.

There is global delete right I want to be tied to record, there are some records to be deleted while others are read only so I need to specify them such that when double click is hit it already know what to do.

 

Please how do I achieve this.

 

Thanks

Peter Milchev
Telerik team
 answered on 20 Nov 2017
1 answer
43 views

I'm expecting that the property Culture of the can be used to set the culture of the grid and this reflect also the data displayed in its cells, right?

 

<telerik:RadGrid ID="GrdWaypoints" runat="server" Width="550px" AutoGenerateColumns="False" Culture="en-US"
                                AllowAutomaticUpdates="false" AllowAutomaticInserts="false"AllowAutomaticDeletes="false"
                                 OnDeleteCommand="GrdWaypoints_DeleteCommand"OnInsertCommand="GrdWaypoints_InsertCommand" OnUpdateCommand="GrdWaypoints_UpdateCommand"OnItemDataBound="GrdWaypoints_ItemDataBound"
                                GroupPanelPosition="Top" OnNeedDataSource="GrdWaypoints_NeedDataSource">
                                <ClientSettings AllowDragToGroup="false">
                                    <Scrolling AllowScroll="false" UseStaticHeaders="false" />
                                </ClientSettings>
                                <GroupingSettings ShowUnGroupButton="false" />
                                <MasterTableView ShowGroupFooter="False" Width="100%" DataKeyNames="WaypointID"EditMode="InPlace">
                                    <NoRecordsTemplate>
                                        Per aggiungere waypoint dell'itinerario, clicca su "Aggiungi Waypoint"
                                    </NoRecordsTemplate>
                                    <Columns>
                                        <telerik:GridNumericColumn  UniqueName="Longitude" HeaderText="Longitudine"DataField="Longitude" DecimalDigits="6" DataFormatString="{0:#0.000#}" ></telerik:GridNumericColumn>
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>

 

So in the above grid no matter what I specify in the culture property the numbers, in the longitude GridNumeric column are always displayed based on the number regional settings of the server.

And on the Insert and Update command, everything goes in error if the user the number in a different culture from the server.

For I have a server with number regional settings like the following:

  • Decimal   (comma)
  • Digit (point)

 

but in this grid and only on this grid the user must insert the values in US format:

  • Decimal (point)
  • Digit (comma)

 

 

 

 

 

 

marco
Top achievements
Rank 2
 answered on 18 Nov 2017
0 answers
114 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
95 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
205 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
109 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
126 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
63 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
279 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
323 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?