Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
1.1K+ 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
130 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
475 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
482 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
357 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
1 answer
200 views

I have a rad grid displaying info, a list of keys assigned to employees. Once a key is added in the list, the ONLY thing in the future that should be editable is the status column, which there will only be 3 options: lost, Found and Reassigned, and Assigned. Since there are only 3 options I want there, I do not want a text box for them to edit whatever status they want, only these options. I would like the text box to be a drop down list, if possible. I cannot figure out how to change this through any settings though, is this something that needs done in the code behind? 

 

Attached is a picture for reference. 

Attila Antal
Telerik team
 answered on 18 Jul 2019
5 answers
689 views
Hi,

If I select 2 items, my selected values are displaying as "2 items checked".
Is there a way to localize / customize this text?

Thank You
Andreas
 
Nguyen Huu
Top achievements
Rank 1
 answered on 18 Jul 2019
0 answers
82 views

Hi to all

If i put a MultiColumnBox in RadGrid as soon as i click on the box the table of the results appears and disappears in half a second

If i write part of the key everything works fine.

 

Is this a bug, a feature or something else?

 

Thanks 

Nicola

 

n/a
Top achievements
Rank 1
 asked on 16 Jul 2019
1 answer
182 views

Hello,

I have an issue with RadCalendar : when the focus is in the textbox with the date and time and I press Enter, the day and the month automatically switch. For exemple, if the date is 11/07/2019 and I press Enter, the date changes to 07/11/2019. If I press Enter again, it switch back to 11/07/2019.
But, if the date is 25/07/2019, it don't change to 07/25/2019 (because this date is not valid).

 

Here's the code I'm using :

<asp:UpdatePanel ID="UpdatePanel10" runat="server" UpdateMode="Conditional">
  <ContentTemplate>
    <telerik:RadDateTimePicker ID="DateDebut" runat="server" OnSelectedDateChanged="DateDebut_SelectedDateChanged" AutoPostBackControl="Both">
    </telerik:RadDateTimePicker>
  </ContentTemplate>
  <Triggers>
    <asp:AsyncPostBackTrigger ControlID="btnPrev" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="btnNext" EventName="Click" />
  </Triggers>
</asp:UpdatePanel><br>

 

I don't understand what is appening, if someone can please help me, it would be very kind.

Eyup
Telerik team
 answered on 16 Jul 2019
3 answers
152 views

i have used Below Code

<telerik:RadFileExplorer RenderMode="Lightweight"
            OnClientLoad="OnClientLoad"
            EnableFilterTextBox="true"
            EnableViewState="true"
            runat="server" ID="FileExplorer1" Width="800px" Height="400px"
            EnableOpenFile="false"
            EnableCopy="false"
            EnableFilteringOnEnterPressed="true"
            Configuration-EnableAsyncUpload="false">
            <Configuration ViewPaths="~/MappedDir/" ></Configuration>
        </telerik:RadFileExplorer>

 

 

Filter not working please help

 

Rumen
Telerik team
 answered on 15 Jul 2019
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?