Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
185 views
Hi,
I have a radtabstrip that contains 3 rad tabs.  I have some code that assigns a value to each of these tabs.
I need a way which the value of each tab can be reviewed and then set the selected value to which ever one has the highest value.

Any suggestions appreciated.
Eyup
Telerik team
 answered on 25 Feb 2016
2 answers
160 views

Hi,

RadGrid throws an 'Index was outside the bounds of the array' error when using ColumnGroups and having datasource=nothing.

Version 2016.1.113.45

Example throwing error (dont bind grid to datasource):

<telerik:RadGrid  runat="server" ID="rg">
    <MasterTableView>
        <ColumnGroups>
            <telerik:GridColumnGroup HeaderText="Invoice" Name="Invoice"></telerik:GridColumnGroup>
        </ColumnGroups>
        <Columns>
        <telerik:GridBoundColumn ColumnGroupName="Invoice" HeaderText="Test" DataField="Test"></telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

 

Working:

<telerik:RadGrid  runat="server" ID="rg">
    <MasterTableView>
        <ColumnGroups>
        </ColumnGroups>
        <Columns>
        <telerik:GridBoundColumn  HeaderText="Test" DataField="Test"></telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

 

Eyup
Telerik team
 answered on 25 Feb 2016
1 answer
110 views

Hi All,

how can i control the background color for each TileList from XML File...

Something like DataTitleTextField="Text" ... DataBGColorField="BGColor" ?

Thanks

Marin Bratanov
Telerik team
 answered on 25 Feb 2016
5 answers
126 views

I am updating a project to the latest version of Telerik UI for AJAX, and have noticed that if Idouble click on empty space below my text in the editor I get a javascript error "Unable to get property 'nextSibling' of undefined or null reference", relating to the following segment of code:

var h=function(o){while(!o.nextSibling){o=o.parentNode;
}return o.nextSibling;
}; 

As I have been unable to determine the source of this problem I am hoping you can help me out.

Vessy
Telerik team
 answered on 25 Feb 2016
9 answers
535 views
Hi All,

I am facing problems with client side validation of RadEditor.
I want to put a check on length of the string entered in editor.

Following is the code, I have written:

========ASPX======== 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
    <title></title
    <telerik:RadScriptBlock runat="server" ID="RadScriptBlock1"
    <script type="text/javascript" language="javascript"
    function ValidateEditor() 
    {
        alert($find("<%=editor1.ClientID %>").get_text().length);
        alert($find("<%=editor1.ClientID %>").get_html().length); 
        alert($find("<%=editor1.ClientID %>").get_html(true).length); 
    } 
     
    function ValidateEditor1(sender, args) 
    { 
        alert("args.Value.length = "+args.Value.length); 
    } 
    </script> 
    </telerik:RadScriptBlock> 
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        </telerik:RadScriptManager> 
        <asp:CustomValidator ID="val1" Display="None" runat="server" ClientValidationFunction="ValidateEditor" 
            ValidationGroup="group1"></asp:CustomValidator> 
             
        <asp:CustomValidator ID="CustomValidator1" Display="None" runat="server" ClientValidationFunction="ValidateEditor1" 
            ValidationGroup="group1" ControlToValidate="editor1"></asp:CustomValidator> 
     
        <telerik:RadEditor ID="editor1" runat="server" Width="400" Height="100" 
            Skin="Vista" EditModes="Design"
            <Tools> 
                <telerik:EditorToolGroup> 
                    <telerik:EditorTool Name="Bold" /> 
                    <telerik:EditorTool Name="Italic" /> 
                    <telerik:EditorTool Name="Underline" /> 
                    <telerik:EditorTool Name="InsertOrderedList" /> 
                    <telerik:EditorTool Name="InsertUnorderedList" /> 
                    <telerik:EditorTool Name="Indent" /> 
                    <telerik:EditorTool Name="Outdent" /> 
                    <telerik:EditorTool Name="JustifyLeft" /> 
                    <telerik:EditorTool Name="JustifyCenter" /> 
                    <telerik:EditorTool Name="JustifyRight" /> 
                </telerik:EditorToolGroup> 
            </Tools> 
        </telerik:RadEditor> 
         
        <asp:Button Text="SAVE" ID="button16" OnClick="Save_Click" 
            runat="server" ValidationGroup="group1" /> 
    </div> 
    </form> 
</body> 
========CODE BEHIND======== 
    public partial class EditorValidation : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
 
        } 
 
        protected void Save_Click(object sender, EventArgs e) 
        { 
            int len = editor1.Content.Length; 
        } 
         
    } 


To put check on length, I used function get_html() and get_text(). But length of string returned by these function is sometimes smaller than length of server side attribute "Content".
Then I found online demo(http://demos.telerik.com/aspnet-ajax/editor/examples/validators/defaultcs.aspx) which had implementation like function "ValidateEditor1". But that also returned smaller length.

I observed that this problem consistently occurs with strings spanning over multiple lines. You can try this by entering any multi-line string in the editor.

So I think I will be able to solve this problem if I find some api on client side, which returns string exactly equal to the one returned by server side attribute "Content". Can anyone provide more insight into this problem?

Regards
Shrikant
Ianko
Telerik team
 answered on 25 Feb 2016
4 answers
201 views

Specifically a RadFilterDropDownEditor, but I will also need date editors as well. I can't find any good documentation explaining how to set something up. My current strategy is based off of the code here: http://docs.telerik.com/devtools/aspnet-ajax/controls/filter/field-editors/programmatic-creation. I have to set the field editor's values with a list, but using the code below, there are no values in the drop down. I have also seen the code here but it is a completely different and unexplained approach, and involving data tables is, in my opinion, bad.

 

Here is essentially what I have:

<telerik:RadFilter runat="server" ID="rfFilter" RenderMode="Lightweight" FilterContainerID="RadGrid1" ShowApplyButton="False" ViewStateMode="Enabled" OnApplyExpressions="rfFilter_ApplyExpressions"/>

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        RadFilterDropDownEditor districtFilter = new RadFilterDropDownEditor();
        rfFilter.FieldEditors.Add(districtFilter);
        statusFilter.FieldName = "District";
        statusFilter.DataType = typeof(string);
 
        var list = new ArrayList(GetDistrictList());
        statusFilter.SetEditorValues(list);
    }
}

Kostadin
Telerik team
 answered on 25 Feb 2016
2 answers
177 views

Hi,

I have a RadGrid with popup edit mode enabled. This popup is populated by a WebUserControl that contains asp.net controls et 2 RadDatePicker. The popup doesn't show and I just have an empty row added in the grid (cf attached picture). The popup appears only if I replace the RadDatePickers by textboxes or if I open the popup server-side on page prerender editing an item.

I guess I have an ajax problem but I can't solve this by myself. Please Help !

 

Page with grid :

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="VueGlobaleDossiers.ascx.cs" Inherits="tech.Web.UI.VueGlobaleDossiers" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<style type="text/css">
 
     
    #GridViewDossiers tr.rowHover:Hover
    {
        background-color: #6F9702;
        color: Black;
    }
     
    .HeaderStyle
    {
        border: solid 1px White;
        background-color: #ACD184;
        color:#122246;
        font-size: 11px;
        font-weight: bold;
        text-align: center;
        vertical-align: middle;
        text-shadow: 0px 1px white;
    }
     .RowStyleSelected
    {
        
        background-color: #AECCF0;
        font-weight: bold;
        color: #333333;
        height: 10px;
    
    .visibility {Display : none}
</style>
 
<div >
 
<div style="float: left;padding:6px;" class="HeaderStyle">
<asp:Label ID="Label1" runat="server" Text="Nombre de lignes :"></asp:Label>
 <asp:DropDownList ID="PageSizeDropDownList" OnSelectedIndexChanged="OnAgenceGlobaleSelectedChanged" runat="server"    AutoPostBack="true"  >
 <asp:ListItem Text="50" Value="50" Selected="True" />
 <asp:ListItem Text="70" Value="70" />
 <asp:ListItem Text="100" Value="100" />
 <asp:ListItem Text="200" Value="200" />
 <asp:ListItem Text="500" Value="500" />
 <asp:ListItem Text="1000" Value="1000" />
 </asp:DropDownList>
 </div>
<div style="float: left;padding:6px;" class="HeaderStyle">
<asp:Label ID="Label3" runat="server" Text="Etat :"></asp:Label>
 <asp:DropDownList ID="DDL_Etat" OnSelectedIndexChanged="OnAgenceGlobaleSelectedChanged" runat="server"    AutoPostBack="true"  >
 <asp:ListItem Text="en cours" Value="en cours" Selected="True" />
 <asp:ListItem Text="rendu" Value="rendu" />
 <asp:ListItem Text="Archive" Value="Archive" />
 <asp:ListItem Text="Tous" Value="" />
 </asp:DropDownList>
 </div>
<div style="float: left;padding:6px;" class="HeaderStyle">
<asp:Label ID="Label4" runat="server" Text="Coordinateur :"></asp:Label>
<asp:TextBox runat="server" ID="TB_Coord" AutoPostBack="true" OnTextChanged="OnAgenceGlobaleSelectedChanged" Width="30px" ></asp:TextBox>
 </div>
    <div style="float: left;padding:6px;" class="HeaderStyle">
<asp:Label ID="Label5" runat="server" Text="Client :"></asp:Label>
<asp:TextBox runat="server" ID="TB_client" AutoPostBack="true" OnTextChanged="OnAgenceGlobaleSelectedChanged" Width="100px" ></asp:TextBox>
 </div>
    <div style="float: left;padding:6px;" class="HeaderStyle">
<asp:Label ID="Label6" runat="server" Text="Nom dossier contient :"></asp:Label>
<asp:TextBox runat="server" ID="TB_StrDossier" AutoPostBack="true" OnTextChanged="OnAgenceGlobaleSelectedChanged" Width="100px" ></asp:TextBox>
 </div>
<div style="float: right;padding:6px;" class="HeaderStyle">
<asp:Label ID="Label2" runat="server" Text="Agence :"></asp:Label>
 <asp:DropDownList ID="AgenceGlobaleDropDownList" OnSelectedIndexChanged="OnAgenceGlobaleSelectedChanged" runat="server"    AutoPostBack="true"  ></asp:DropDownList>
</div>
<div style="clear:both;"></div>
<asp:HiddenField ID="indexTable" runat="server"  Value="-1" />
 
    <div>
         
    <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
        <script type="text/javascript">
            function RowDblClick(sender, eventArgs) {
                sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
            }
 
            function onPopUpShowing(sender, args) {
                popUp = args.get_popUp();
                var gridWidth = sender.get_element().offsetWidth;
                var gridHeight = sender.get_element().offsetHeight;
                var popUpWidth = popUp.style.width.substr(0, popUp.style.width.indexOf("px"));
                var popUpHeight = popUp.style.height.substr(0, popUp.style.height.indexOf("px"));
                popUp.style.left = ((gridWidth - popUpWidth) / 2 + sender.get_element().offsetLeft).toString() + "px";
                popUp.style.top = ((gridHeight - popUpHeight) / 2 + sender.get_element().offsetTop).toString() + "px";
            }
        </script>
    </telerik:RadCodeBlock>
    <telerik:RadAjaxManager ID="RadAjaxManager2" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <div id="demo" class="demo-container no-bg">
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" ShowFooter="true"
            AllowSorting="True" AutoGenerateColumns="False" ShowStatusBar="true"
            OnNeedDataSource="RadGrid1_NeedDataSource" OnUpdateCommand="RadGrid1_UpdateCommand" OnItemDataBound="RadGrid1_ItemDataBound"
            OnInsertCommand="RadGrid1_InsertCommand" OnDeleteCommand="RadGrid1_DeleteCommand" OnPreRender="RadGrid1_PreRender">
            <ClientSettings>
                <Scrolling AllowScroll="True" SaveScrollPosition="true" ></Scrolling>  
            </ClientSettings>
            <MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataKeyNames="DossierID" EditMode="PopUp">
                <CommandItemSettings ShowSaveChangesButton="False" ShowCancelChangesButton="False" ShowRefreshButton="False" />
                <EditFormSettings>
                    <PopUpSettings Modal="true" ZIndex="100010" />
                </EditFormSettings>
        <Columns>
            <telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
            </telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn DataField="DossierID" HeaderText="ID"  SortExpression="DossierID" HeaderStyle-ForeColor="Black" />
            <telerik:GridBoundColumn DataField="CodeDossier" HeaderText="Code Dossier" SortExpression="CodeDossier" HeaderStyle-ForeColor="Black" />
            <telerik:GridBoundColumn DataField="Nom" HeaderText="Client" SortExpression="Nom" HeaderStyle-ForeColor="Black"/>
            <telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description" HeaderStyle-ForeColor="Black" />
           <telerik:GridBoundColumn DataField="Coordinateurs" HeaderText="Coordinateurs" SortExpression="Coordinateurs" HeaderStyle-ForeColor="Black" />
            <telerik:GridTemplateColumn HeaderText="Date commande" SortExpression="DateDebutDossier" HeaderStyle-ForeColor="Black">
            <ItemTemplate>
               <asp:Label ID="DateDebut" runat="server" Text='<%# ((DateTime)Eval("DateDebutDossier")).ToShortDateString() %>'></asp:Label>
            </ItemTemplate>
            </telerik:GridTemplateColumn>
 
            <telerik:GridTemplateColumn HeaderText="Date fin prévue" SortExpression="DateFinTheorique" HeaderStyle-ForeColor="Black">
            <ItemTemplate>
               <asp:Label ID="DateFin" runat="server" Text='<%# ((DateTime)Eval("DateFinTheorique")).ToShortDateString() %>'></asp:Label>
            </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="TempsPrevu" HeaderText="Temps prévu" SortExpression="TempsPrevu"  HeaderStyle-ForeColor="Black"/>
            <telerik:GridBoundColumn DataField="SoldeTemps" HeaderText="Solde Temps" SortExpression="SoldeTemps" HeaderStyle-ForeColor="Black" />
         
             <telerik:GridTemplateColumn HeaderText="Etat" SortExpression="Fini" HeaderStyle-ForeColor="Black">
            <ItemTemplate>
               <asp:Label ID="Etat" runat="server" Text='<%# ((string)Eval("Fini")) %>'></asp:Label>
            </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="Ville" HeaderText="Agence" SortExpression="Ville" HeaderStyle-ForeColor="Black" />                   
        </Columns>
                <EditFormSettings UserControlName="~/Dossier/Controls/EditDossier.ascx" EditFormType="WebUserControl" >
                    <EditColumn UniqueName="EditCommandColumn1">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <ClientSettings>
                <ClientEvents OnRowDblClick="RowDblClick" OnPopUpShowing="onPopUpShowing" />
            </ClientSettings>
        </telerik:RadGrid>
    </div>
 
    </div>
</div>

webusercontrol :

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="VueGlobaleDossiers.ascx.cs" Inherits="tech.Web.UI.VueGlobaleDossiers" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<style type="text/css">
 
     
    #GridViewDossiers tr.rowHover:Hover
    {
        background-color: #6F9702;
        color: Black;
    }
     
    .HeaderStyle
    {
        border: solid 1px White;
        background-color: #ACD184;
        color:#122246;
        font-size: 11px;
        font-weight: bold;
        text-align: center;
        vertical-align: middle;
        text-shadow: 0px 1px white;
    }
     .RowStyleSelected
    {
        
        background-color: #AECCF0;
        font-weight: bold;
        color: #333333;
        height: 10px;
    
    .visibility {Display : none}
</style>
 
<div >
 
<div style="float: left;padding:6px;" class="HeaderStyle">
<asp:Label ID="Label1" runat="server" Text="Nombre de lignes :"></asp:Label>
 <asp:DropDownList ID="PageSizeDropDownList" OnSelectedIndexChanged="OnAgenceGlobaleSelectedChanged" runat="server"    AutoPostBack="true"  >
 <asp:ListItem Text="50" Value="50" Selected="True" />
 <asp:ListItem Text="70" Value="70" />
 <asp:ListItem Text="100" Value="100" />
 <asp:ListItem Text="200" Value="200" />
 <asp:ListItem Text="500" Value="500" />
 <asp:ListItem Text="1000" Value="1000" />
 </asp:DropDownList>
 </div>
<div style="float: left;padding:6px;" class="HeaderStyle">
<asp:Label ID="Label3" runat="server" Text="Etat :"></asp:Label>
 <asp:DropDownList ID="DDL_Etat" OnSelectedIndexChanged="OnAgenceGlobaleSelectedChanged" runat="server"    AutoPostBack="true"  >
 <asp:ListItem Text="en cours" Value="en cours" Selected="True" />
 <asp:ListItem Text="rendu" Value="rendu" />
 <asp:ListItem Text="Archive" Value="Archive" />
 <asp:ListItem Text="Tous" Value="" />
 </asp:DropDownList>
 </div>
<div style="float: left;padding:6px;" class="HeaderStyle">
<asp:Label ID="Label4" runat="server" Text="Coordinateur :"></asp:Label>
<asp:TextBox runat="server" ID="TB_Coord" AutoPostBack="true" OnTextChanged="OnAgenceGlobaleSelectedChanged" Width="30px" ></asp:TextBox>
 </div>
    <div style="float: left;padding:6px;" class="HeaderStyle">
<asp:Label ID="Label5" runat="server" Text="Client :"></asp:Label>
<asp:TextBox runat="server" ID="TB_client" AutoPostBack="true" OnTextChanged="OnAgenceGlobaleSelectedChanged" Width="100px" ></asp:TextBox>
 </div>
    <div style="float: left;padding:6px;" class="HeaderStyle">
<asp:Label ID="Label6" runat="server" Text="Nom dossier contient :"></asp:Label>
<asp:TextBox runat="server" ID="TB_StrDossier" AutoPostBack="true" OnTextChanged="OnAgenceGlobaleSelectedChanged" Width="100px" ></asp:TextBox>
 </div>
<div style="float: right;padding:6px;" class="HeaderStyle">
<asp:Label ID="Label2" runat="server" Text="Agence :"></asp:Label>
 <asp:DropDownList ID="AgenceGlobaleDropDownList" OnSelectedIndexChanged="OnAgenceGlobaleSelectedChanged" runat="server"    AutoPostBack="true"  ></asp:DropDownList>
</div>
<div style="clear:both;"></div>
<asp:HiddenField ID="indexTable" runat="server"  Value="-1" />
 
    <div>
         
    <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
        <script type="text/javascript">
            function RowDblClick(sender, eventArgs) {
                sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
            }
 
            function onPopUpShowing(sender, args) {
                popUp = args.get_popUp();
                var gridWidth = sender.get_element().offsetWidth;
                var gridHeight = sender.get_element().offsetHeight;
                var popUpWidth = popUp.style.width.substr(0, popUp.style.width.indexOf("px"));
                var popUpHeight = popUp.style.height.substr(0, popUp.style.height.indexOf("px"));
                popUp.style.left = ((gridWidth - popUpWidth) / 2 + sender.get_element().offsetLeft).toString() + "px";
                popUp.style.top = ((gridHeight - popUpHeight) / 2 + sender.get_element().offsetTop).toString() + "px";
            }
        </script>
    </telerik:RadCodeBlock>
    <telerik:RadAjaxManager ID="RadAjaxManager2" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <div id="demo" class="demo-container no-bg">
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" ShowFooter="true"
            AllowSorting="True" AutoGenerateColumns="False" ShowStatusBar="true"
            OnNeedDataSource="RadGrid1_NeedDataSource" OnUpdateCommand="RadGrid1_UpdateCommand" OnItemDataBound="RadGrid1_ItemDataBound"
            OnInsertCommand="RadGrid1_InsertCommand" OnDeleteCommand="RadGrid1_DeleteCommand" OnPreRender="RadGrid1_PreRender">
            <ClientSettings>
                <Scrolling AllowScroll="True" SaveScrollPosition="true" ></Scrolling>  
            </ClientSettings>
            <MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataKeyNames="DossierID" EditMode="PopUp">
                <CommandItemSettings ShowSaveChangesButton="False" ShowCancelChangesButton="False" ShowRefreshButton="False" />
                <EditFormSettings>
                    <PopUpSettings Modal="true" ZIndex="100010" />
                </EditFormSettings>
        <Columns>
            <telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
            </telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn DataField="DossierID" HeaderText="ID"  SortExpression="DossierID" HeaderStyle-ForeColor="Black" />
            <telerik:GridBoundColumn DataField="CodeDossier" HeaderText="Code Dossier" SortExpression="CodeDossier" HeaderStyle-ForeColor="Black" />
            <telerik:GridBoundColumn DataField="Nom" HeaderText="Client" SortExpression="Nom" HeaderStyle-ForeColor="Black"/>
            <telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description" HeaderStyle-ForeColor="Black" />
           <telerik:GridBoundColumn DataField="Coordinateurs" HeaderText="Coordinateurs" SortExpression="Coordinateurs" HeaderStyle-ForeColor="Black" />
            <telerik:GridTemplateColumn HeaderText="Date commande" SortExpression="DateDebutDossier" HeaderStyle-ForeColor="Black">
            <ItemTemplate>
               <asp:Label ID="DateDebut" runat="server" Text='<%# ((DateTime)Eval("DateDebutDossier")).ToShortDateString() %>'></asp:Label>
            </ItemTemplate>
            </telerik:GridTemplateColumn>
 
            <telerik:GridTemplateColumn HeaderText="Date fin prévue" SortExpression="DateFinTheorique" HeaderStyle-ForeColor="Black">
            <ItemTemplate>
               <asp:Label ID="DateFin" runat="server" Text='<%# ((DateTime)Eval("DateFinTheorique")).ToShortDateString() %>'></asp:Label>
            </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="TempsPrevu" HeaderText="Temps prévu" SortExpression="TempsPrevu"  HeaderStyle-ForeColor="Black"/>
            <telerik:GridBoundColumn DataField="SoldeTemps" HeaderText="Solde Temps" SortExpression="SoldeTemps" HeaderStyle-ForeColor="Black" />
         
             <telerik:GridTemplateColumn HeaderText="Etat" SortExpression="Fini" HeaderStyle-ForeColor="Black">
            <ItemTemplate>
               <asp:Label ID="Etat" runat="server" Text='<%# ((string)Eval("Fini")) %>'></asp:Label>
            </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="Ville" HeaderText="Agence" SortExpression="Ville" HeaderStyle-ForeColor="Black" />                   
        </Columns>
                <EditFormSettings UserControlName="~/Dossier/Controls/EditDossier.ascx" EditFormType="WebUserControl" >
                    <EditColumn UniqueName="EditCommandColumn1">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <ClientSettings>
                <ClientEvents OnRowDblClick="RowDblClick" OnPopUpShowing="onPopUpShowing" />
            </ClientSettings>
        </telerik:RadGrid>
    </div>
 
    </div>
</div>
Eyup
Telerik team
 answered on 25 Feb 2016
5 answers
452 views

Hello,

 It is not intuitive for my users to enter 35% as "0.35" the way the control expects it. Is there a way to override this format?

 I can see from the generated source that there is a "k-format" CssClass applied to this field. Maybe this is a clue for possible override?

 Thanks in advance for any help!

 

Plamen
Telerik team
 answered on 25 Feb 2016
1 answer
163 views

I visited the following url: http://demos.telerik.com/aspnet-ajax/grid/examples/performance/virtualization/defaultcs.aspx (Grid - Virtualization)

Page Size: 1000

Records: 300000

Total Pages: 300

I scroll down the records. When I crossed the 500th record, the Current page number changed to 2 (it should be 1, because actual page size is 1000). Again I scroll down to check when the page number change to 3, when I crossed 1500th record it changed. Demo itself having this bug.

 

Angel Petrov
Telerik team
 answered on 25 Feb 2016
7 answers
441 views
Hi All,

I have on asp table where I am filling appointments dynamically.
I want to give user facility to drag that appointment and drop onto a radscheduler.
After user drops that appointment onto Radscheduler that appointment's datetime should get set to the new date time where tit is dropped.

How can I achieve this?


Best Regards,.
Hrushikesh.
Ivan Danchev
Telerik team
 answered on 25 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?