Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
515 views

I’m using a radgrid with boundcolumns, some of the columns are displayed as percentages.  How would I display percentages in the group footer and the grand total footer?   It's easy to sum, count fields in footers but I'm stumped with how to create calculated fields in footers.

The percentage would be calculated by sum of one column divided by the other.  I looked at the example that uses the CustomAggregates event but if I used that then it would have to create a datatable for every percentage column for every group which would be significant overhead. 

 

Let me know if you have any suggestions.

 

Thanks,

Bob

Eyup
Telerik team
 answered on 22 Jul 2019
4 answers
801 views

hi,

             i want to scroll down to the select item in radlistbox

             I search the particular word in text box and click the search button , in  button click the we change the color but automatically scroll down not work. i need scroll down automatically to the particular string.

 

I send the screenshot

 

http://prntscr.com/odyyh6

 

http://prntscr.com/odyz8x

Attila Antal
Telerik team
 answered on 19 Jul 2019
3 answers
118 views

I was wondering if there was a strategy for getting the Google web crawler to index tabs other than the default one.

I have a page on our web site that uses a TabStrip and only the contents of the default tab are being indexed.

The content for each tab is loaded into a single label control from a database via postback whenever a tab is clicked. 

Does anyone have any other strategies they have used?

Thanks,

Charlotte

Rumen
Telerik team
 answered on 19 Jul 2019
1 answer
703 views
I have telerik rad DropDownList, I want to change the background color of one item to yellow.
Here is the aspx, which I put the cssClass to  unknown css

<div class="col-md-3 customColumnPadding" id="uiColumnClasses" runat="server">
        <telerik:RadDropDownList ID="uiClasses" runat="server" Width="100%">
            <Items>
                <telerik:DropDownListItem runat="server" Text="<%$ Resources:Resource,Unknown %>" Value="22001" cssClass ="unknown"/>
                <telerik:DropDownListItem runat="server" Text="<%$ Resources:Resource,Business %>" Value="22002" />
                <telerik:DropDownListItem runat="server" Text="<%$ Resources:Resource,Economy %>" Value="22004" Selected="true" />
                <telerik:DropDownListItem runat="server" Text="<%$ Resources:Resource,First %>" Value="22003" />
                <telerik:DropDownListItem runat="server" Text="<%$ Resources:Resource,Premium_Economy %>" Value="22005" />
            </Items>
        </telerik:RadDropDownList>
    </div>


And here is the content of css file:
```
.RadDropDownList_MetroTouch .rddlFocused
{
    border-color: #486190 !important;
    background-color: #486190 !important;
}

.unknown
{
    border-color: #FFFF00 !important;
    background-color: #FFFF00 !important;
}
```

However, I found that in inspector of the browser, the css Class ```unknown``` is not exist. And the item color is not changed. Here is the content get from inspector. You can see the value "Unknown" is not have the css class ```unknown```
```
<div id="ctl00_ContentPlaceHolder1_UsageControl0_UsageControl58_uiClasses" class="RadDropDownList RadDropDownList_MetroTouch" style="width:100%;" tabindex="0">
<span class="rddlInner rddlFocused">
<span class="rddlFakeInput">Unknown</span>
<span class="rddlIcon">
<!-- &nbsp; -->
</span></span>
<input id="ctl00_ContentPlaceHolder1_UsageControl0_UsageControl58_uiClasses_ClientState" name="ctl00_ContentPlaceHolder1_UsageControl0_UsageControl58_uiClasses_ClientState" type="hidden" autocomplete="off">
</div>
```

What is the problem? How can I make the item change to yellow color where the value is Unknown?

Peter Milchev
Telerik team
 answered on 19 Jul 2019
3 answers
58 views

Hello guys,

We have to open this thread as we're facing a strange behavior with RadEditor when using in a RadMultiPage control. This is happening only on Windows 10 FireFox version 68.0(Quantum) but it may happen on other versions as well.

Prerequisite:

-  Asp.Net web forms application, .net framework 4.7.2

-  RadMultiPage with some RadPageView controls

- Each RadPageView control having a RadEditor in it. Doesn't matter NewLineMode: P, Div.

Steps:

1. When the page loads, before switching tabs, write few lines in editor. Each line is rendered correct with no extra blank lines between.

2. After switching tabs, doesn't matter which one or how many times, write few lines in editor. Now, after each line, the editor added 1-2-3 extra blank lines.

When saying lines I mean paragraph if NewLineMode=P or div if NewLineMode=Div.

 

Mention that we are using Telerik Asp.Net Ajax version 2017.2.503.40, embedded resources and 'lightweight' render mode.

 

I've uploaded 3 screen captures and I also have isolated the case in a mini application to send to you, just let me know where to upload.

I hope I haven't duplicated another thread but I couldn't find anything before starting this.

 

Regards,

 

Andrei V.

 

 

Rumen
Telerik team
 answered on 19 Jul 2019
9 answers
1.0K+ views
<telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Delete" Text="&lt;img src=images/Delete.gif border=0 align=absmiddle alt='Delete Item' title='Delete record'&gt;"
                                                  UniqueName="Delete" ConfirmText="Are you sure you want to delete this record?">
                            <HeaderStyle HorizontalAlign="left" Width="10%" />
                            <ItemStyle HorizontalAlign="Center" />
                        </telerik:GridButtonColumn>


here client side confirm message working but postback in not working 

teleric version is 2008.01.0415.35
Rumen
Telerik team
 answered on 19 Jul 2019
2 answers
105 views
I was trying to implement the demo "RadControls_AspNetAjax/grid/examples/data-editing/form-template-update/defaultcs.aspx". everything is workiing fine but i can't get the controls styled like in the demo. i have attached the screenshots of the demo and mine to compare. 
Amanuel
Top achievements
Rank 1
 answered on 19 Jul 2019
6 answers
402 views

Hello,

I am trying to update a radtextbox inside a radwindow with the data received from a serial port where a scale is connected.  The data is received on the serial port by a command issued from the scale.

Here is the setup of the radwindow and the radtextbox:

<telerik:RadWindow ID="RadWindowAddToSets" runat="server"
            Width="520px"
            Height="390px"
            Modal="True"
            CenterIfModal="false"
            Left="150"
            Top="20"
            OnLoad="RadWindowAddToSets_Load"
            Behaviors="Resize, Minimize, Pin, Maximize, Move, Reload">
            <ContentTemplate>
                <asp:Panel ID="PanelAddToSets" runat="server">
                    <div style="height: 40px">
                        <telerik:RadTextBox ID="RadTextBoxWeight" runat="server"
                            Width="300px"
                            AutoPostBack="True"
                            Height="20px"
                            OnTextChanged="RadTextBoxWeight_TextChanged">
                        </telerik:RadTextBox>
                        <telerik:RadButton ID="RadButtonAddToSetsOK" runat="server"
                            OnClick="RadButtonAddToSetsOK_Click"
                            Style="position: relative;"
                            Text="OK"
                            OnClientClicking="RadButtonAddToSetsOK_OnClientClicking">
                        </telerik:RadButton>
                        <telerik:RadButton ID="RadButtonAddToSetsCancel" runat="server"
                            Style="position: relative;"
                            Text="Cancel"
                            AutoPostBack="True"
                            OnClientClicking="RadButtonAddToSetsCancel_OnClientClicking">
                        </telerik:RadButton>
                    </div>
                </asp:Panel>
            </ContentTemplate>
        </telerik:RadWindow>
 

 

This is the code that is fired when the scale sends the data through the serial port.  Here is where I tried to update the radtextbox directly.  This seems to be working well as I see the RadTextBoxWeight.Text being populated during debugging. 

private void SerialPortOnDataReceived(object sender, SerialDataReceivedEventArgs serialDataReceivedEventArgs)
        {
            //string capturedSerial = "";
            while (_serialPort.BytesToRead > 0)
            {
                RadTextBoxWeight.Text += string.Format("{0:X2} ", _serialPort.ReadByte());
            }
 

 

I have tried a few things with the RadAjaxManager in attempts to display the data in the radtextbox, including using a hidden field and trying the ajaxRequestWithTarget method inside the add_load in JavaScript.  I see the the alerts, but nothing else seems to happen.

Sys.Application.add_load(WindowSerialControl);
 
                function WindowSerialControl() {
                    alert(form1.HiddenSerial.value);
 
                    if (form1.HiddenSerial.value == "Capture") {
                        alert("Inside Capture");
                        var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
                        ajaxManager.ajaxRequestWithTarget('<%= RadTextBoxWeight.UniqueID %>', '');
                    }
                }

 

I have tried multiple configurations in my testing with the radaajaxmanager.  I currently have it like this:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTextBoxWeight" UpdatePanelRenderMode="Inline" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadTextBoxWeight">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="PanelAddToSets" UpdatePanelRenderMode="Inline"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

 

I'm sure I need to trigger an Ajax request somewhere/somehow, but am lost at this point.

Any help is appreciated.

G.

Ajeet
Top achievements
Rank 1
 answered on 19 Jul 2019
1 answer
414 views

As per documentation of Fonts, I installed an Font in system and added to RadEditor. But when I type in Hindi but it display in English. What I am missing?

<telerik:RadEditor runat="server" ID="RadEditor1">
    <FontNames>
        <telerik:EditorFont Value="Kruti Dev 010" />
    </FontNames>
</telerik:RadEditor>

Rumen
Telerik team
 answered on 18 Jul 2019
1 answer
200 views

     Hello!

 

I recently started using RadFilter control instead of the filters that were inside the radgrid, but I can't get to hide the uniqueId on the RadFilter options even though it doesn't show on my radgrid.

 

I am building dinamically my radgrid, so I am not sure where to write or if it is possible to set "allowFiltering to false"

 

I am attaching an image where it shows "unique Id" as a filter option even though it doesn't show up as a column on my radgrid

 

Thanks in advance!

Attila Antal
Telerik team
 answered on 18 Jul 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?