Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
215 views

I've got an application with lots of existing text from a prior version of the RadEditor (2014), and it's all in NewLineMode = Br, so the lines are separated by <br/> tags. One option I read about was putting in a bit of JS which lets the new version (2017.3.913) use "legacy behavior" for block comments, such as bulleting lines of text. I tried it, but found it had another problem: It would duplicate the lines it was bulleting. See attached images for the "story".

This is low priority for me, since I've already decided not to use Legacy mode anyway (nor BR line mode). Otherwise I would be opening a ticket. But since it's not that important to me, I thought I'd just ask about it here, and see if anyone else has noticed this, or if the company is already aware of it.

Rumen
Telerik team
 answered on 21 Dec 2017
0 answers
175 views

Hi, 

I have a form with many checkbox and each checkbox has a RadCombo or RadTextBox beside. When checkbox change, the application need enable or disable the respective RadComboBox or RadTextBox. 

When I use with RadTextBox was working fine. But I call the RadComBox the $Find JQuery return null. 

I would like have one or twice(combo and text) Javascript function. I don´t like create one JS with <RadComboBoxXX.ClientID> for each ComboBox. And don´t use server code.

 

Thanks for any help.

<script type="text/javascript">
        function EnableDisable(chk, ctrl) {
            var e = $find(ctrl);
            if(chk) {
                e.enable();
            }
            else {
                e.disable();
            }
        }
</script>
 
---- Work Fine----
<asp:Checkbox ID="CheckBox1" runat="server"  OnClick="EnableDisable(this.checked,'RadTextBox1');"/>
<telerik:RadTextBox ID="RadTextoBox1" runat="server" />
 
 
---- Don´t work ----
<asp:Checkbox ID="CheckBox2" runat="server"  OnClick="EnableDisable(this.checked,'RadComboBox2');"/>
<telerik:RadComboBox ID="RadComboBox2" runat="server" />

 

 

Paulo Goncalves
Top achievements
Rank 2
 asked on 21 Dec 2017
0 answers
141 views
Map Report Error. Please help me
Akash
Top achievements
Rank 1
 asked on 21 Dec 2017
12 answers
470 views
I've read many posts and nothing seems to work to hide the ExpandColumn when exporting.  I've tried RadGrid1.MasterTableView.GetColumn("ExpandColumn").Visible = false;, I've even loop through the RadGrid1.MasterTableView.Columns collection hiding every single column.  That one blank column still appears.  I'm using the latest version of the control.  Thoughts?
Sai Santhosh
Top achievements
Rank 1
 answered on 21 Dec 2017
3 answers
1.6K+ views
I have been trying to find the tutorial for basic implementation of telerik RAD controls using ASP .net AJAX with not much luck. I have found the demo and other documentation but not able to understand them. I am trying to understand the fundamentals of telerik control usage in asp .net ajax application using C#.

I am intereseted in Grid, file upload and Charts implementation.

Please help with this.

Thanks Alot,
Amit
Rumen
Telerik team
 answered on 21 Dec 2017
3 answers
807 views
Hi
How can I pass a custom parameter to a Client Event ?
for example how can I pass a parameter to 'OnClientClicked' of 'RadButton' control ?
I want to define a function for 'OnClientClicked' in C# and pass a custom parameter to this function
  -> myBtn.OnClientClicked = "eventHandler(...);"
and access this parameter in javascript function , is it possible ?

Thank you very much for your feedback

Marcel
Top achievements
Rank 1
 answered on 20 Dec 2017
0 answers
103 views
Hi All,
I am using Rad grid and requirement is iterate grid by column not row(GridViewItem) on a button click event using C#.
Can anyone have idea.
Thanks in advance.
Anuj
Top achievements
Rank 1
 asked on 20 Dec 2017
0 answers
173 views

Hi,

I have an GridNumericColumn that is having diferent behaviours between environments (dev, prod). I'm not setting the decimal separator, so it's using the default one. On my dev environment it's using "." (ex.: 1.5) and in my prod ist's using "," (ex.: 1,5).

I don't know exactly what definition is used for this. I thought it was regional settings so i made them equal but it appears not to be.

 

I want to ensure the 1.5 format whatever the regional definitions (to view and edit).

 

I have two questions:

What exactly makes the decimal separators diferente?

What's the best way of ensuring the decimal separators i need?

joao
Top achievements
Rank 1
 asked on 20 Dec 2017
0 answers
236 views

I have a grid made up of bound columns.

Some of the columns have an aggregate (Sum) to show totals in the footer.

How can I access these values client side, using the column name if possible?

Can I make use of 'get_masterTableViewFooter()' ?

 

Example basic grid:

<telerik:RadGrid ID="itemsGrid" >
    <MasterTableView ShowFooter="True" Width="100%"
                     DataKeyNames="ID" ClientDataKeyNames="ID">
        <Columns>
            <telerik:GridBoundColumn DataField="ID" UniqueName="id" HeaderText="ID" />
            <telerik:GridBoundColumn DataField="quantity" HeaderText="Qty" UniqueName="quantity" />
            <telerik:GridBoundColumn DataField="price" HeaderText="Price" UniqueName="price" Aggregate="Sum" />
            <telerik:GridBoundColumn DataField="total" HeaderText="Total" UniqueName="total" Aggregate="Sum" />
        </Columns>
        <FooterStyle />
    </MasterTableView>
</telerik:RadGrid>

 

Javascript:

function CheckTotals(sender, eventArgs) {
    // get totals from footer
    var grid = $find('<%=itemsGrid.ClientID%>');
    var masterTableViewFooter = grid.get_masterTableViewFooter();
     
    // how to access 'Price' aggregate from footer??
}

 

Thanks

Jason

 

 

 

 

 

Jason
Top achievements
Rank 1
 asked on 20 Dec 2017
2 answers
1.3K+ views

the application I am developing has a detail popup which opens model

when it closes the parent window does not re-enable - the controls remain frozen

the parent page below

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/OneColumn.master" AutoEventWireup="true" CodeFile="RosterTelerik.aspx.cs" Inherits="iGM_RosterTelerik" %>
<%@ MasterType VirtualPath="~/MasterPages/TwoColumn.Master" %>
<%@ Register Src="~/Controls/UserBox.ascx" TagName="UserBox" TagPrefix="uc1" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <link href="../Styles/Oxygen/NewRoster.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <uc1:UserBox ID="UserBox1" runat="server"></uc1:UserBox>
    <h1 style="float: left">Roster Page</h1>
    <br />
    <asp:Panel ScrollBars="Vertical" Width="100%" runat="server">
        <telerik:RadScriptManager ID="rsManager" runat="server" />
        <telerik:RadAjaxManager ID="raManager" runat="server" >
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="rgRoster">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgRoster" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadCodeBlock ID="rcBlock" runat="server">
            <script type="text/javascript">
                function openRadWindow(playerID)
                {
                    var radwindow = $find('<%=rwmPlayer.ClientID %>');
                    radwindow.setUrl('../Library/PlayerPopup.aspx?PlayerID=' + playerID);
                    radwindow.set_width(900);
                    radwindow.set_height(540);
                    radwindow.set_modal(true);
                    radwindow.show();
                }
                function RowDropped(sender, eventArgs)
                {
                    var theItem = eventArgs.get_draggedItems()[0];
                    var theRole = theItem.findElement("rlbRole").innerText;
                    var theIndex = theItem.get_itemIndexHierarchical();
                    var stringofIDs = "";
                    var theMasterTable = $find("<%= rgRoster.ClientID %>").get_masterTableView();
                    var theItems = theMasterTable.get_dataItems();
                    for (var i = 0; i < theItems.length; i++)
                    {
                        var role = theItems[i].findElement("rlbRole").innerText
                            if (role == theRole)
                            {
                                stringofIDs = stringofIDs + role + '-' + theItems[i].get_itemIndexHierarchical() + '&';
                            }
                    }
                    var theHiddenField = document.getElementById("<%= hdnStringofIDs.ClientID %>");
                    theHiddenField.value = stringofIDs;
                }
            </script>
        </telerik:RadCodeBlock>
        <asp:HiddenField ID="hdnStringofIDs" runat="server" />
        <telerik:RadGrid ID="rgRoster" AutoGenerateColumns="False" OnNeedDataSource="rgRoster_NeedDataSource"
            OnItemCreated="rgRoster_ItemCreated" OnItemDataBound="rgRoster_ItemDataBound" OnEditCommand="rgRoster_EditCommand"
            OnUpdateCommand="rgRoster_UpdateCommand" Width="100%" runat="server" OnRowDrop="rgRoster_RowDrop"  OnColumnCreated="rgRoster_ColumnCreated" >
            <GroupingSettings CollapseAllTooltip="Collapse all groups" />
            <MasterTableView DataKeyNames="id" EditMode="InPlace" >
                <EditFormSettings>
                    <EditColumn UniqueName="CareerStageImage" ButtonType="ImageButton" >
                    </EditColumn>
                    <PopUpSettings />
                </EditFormSettings>
                <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldName="positionCategoryCode" />
                            <telerik:GridGroupByField FieldName="positionCategory" />
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="positionCategoryCode" SortOrder="Ascending" />
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldName="positionSubCategoryCode" />
                            <telerik:GridGroupByField FieldName="positionSubCategory" />
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="positionSubCategoryCode" />
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                </GroupByExpressions>
                <RowIndicatorColumn Visible="False">
                </RowIndicatorColumn>
                <ExpandCollapseColumn Created="True">
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn UniqueName="id" DataField="id" Visible="false" ReadOnly="true" />
                    <telerik:GridTemplateColumn UniqueName="hiddenCareerStage" Visible="false" ReadOnly="true" >
                        <ItemTemplate>
                            <asp:HiddenField ID="hdnCareerStage" Value='<%#DataBinder.Eval(Container.DataItem, "careerStage")%>' runat="server" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridNumericColumn UniqueName="Depth" DataField="positionDepth" DecimalDigits="0" HeaderStyle-Width="20px" HeaderText="DPTH" ReadOnly="true">
                    </telerik:GridNumericColumn>
                    <telerik:GridTemplateColumn UniqueName="role" HeaderText="ROLE" ReadOnly="true">
                        <HeaderStyle Width="42px" />
                        <ItemTemplate>
                            <telerik:RadLabel ID="rlbRole" Text='<%#DataBinder.Eval(Container.DataItem, "role")%>' runat="server" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="nfl" HeaderStyle-Width="36px" HeaderText="NFL" ReadOnly="true">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn>
                        <HeaderStyle Width="96px" />
                        <ItemTemplate>
                            <asp:HyperLink ID="hlName" Text='<%#DataBinder.Eval(Container.DataItem, "name")%>' runat="server" />   
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>

more columns here

                    <telerik:GridDropDownColumn UniqueName="CareerStage" DropDownControlType="RadComboBox" HeaderStyle-Width="72px" HeaderText="CAREER STAGE" ItemStyle-ForeColor="Black"
                        DataField="careerStage" DataSourceID="xdsCareerStage" ListTextField="Text" ListValueField="Value" AutoPostBackOnFilter="true" />
                    <telerik:GridEditCommandColumn UniqueName="CareerStageImage" ButtonType="ImageButton" EditImageUrl="../Images/CareerStage/Career_0None.png" UpdateImageUrl="../Images/CareerStage/ThumbsUp.png" HeaderText="Click to Update" HeaderStyle-Width="32px" />
                    <telerik:GridBoundColumn DataField="notes" HeaderStyle-Width="160px" HeaderText="NOTES" ReadOnly="true" >
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings AllowRowsDragDrop="true">
                <Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />
                <ClientEvents OnRowDropped="RowDropped" />
            </ClientSettings>
     </telerik:RadGrid>
     <telerik:RadWindowManager ID="rwmPlayer" DestroyOnClose="true" runat="server" >
        <Windows>
            <telerik:RadWindow ID="rwPlayer" NavigateUrl="../Library/PlayerPopup.aspx" CenterIfModal="false" runat="server" />
        </Windows>
    </telerik:RadWindowManager>
    </asp:Panel>
    <asp:XmlDataSource ID="xdsCareerStage" DataFile="~/App_Data/CareerStages.xml" runat="server"  />
</asp:Content>
Marin Bratanov
Telerik team
 answered on 20 Dec 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?