Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
168 views

Hi,

How to get all Rad Controls that are within the selected TAB PageView? using JS

I know that you can get all the controls within the form using this code.


 var allRadControls = $telerik.radControls;

Thanks,

Omar

 

Omar
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 30 Oct 2023
4 answers
315 views

Can anyone help with a database structure to create RadDiagram Shapes and Connectors in the database using co-ordinates to automatically load the diagram.

I couldn't find anything in the demos or docs. For example on the link beloq the sql connections are shown but not what structure is need to create this?

http://demos.telerik.com/aspnet-ajax/diagram/examples/databind/defaultcs.aspx  

Thank you.

 

Omar
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 30 Oct 2023
1 answer
128 views

I would like to put DataFormat on a cell level in a batch grid.

Jobs #                  5 

Unemployment  3.25% 

What is the best way?

Attila Antal
Telerik team
 answered on 27 Oct 2023
1 answer
233 views

I am using Aggregate="sum", but one of my rows contains years and should not be aggregated.

Is there a way?

Vasko
Telerik team
 answered on 27 Oct 2023
0 answers
155 views

When exporting to a CSV file the download works as expected with the delimiter set to comma. Once the delimiter is changed to any other value, i.e. Semicolon, Vertical bar the file opens in the browser window instead of downloading. 

Is there a way to initiate the download instead of opening the file in a browser window? 

Lee
Top achievements
Rank 1
Iron
 asked on 27 Oct 2023
1 answer
266 views

Hi,

I want to attach the client event to a dynamically created radio list.

Below is an example of a dynamically created radio list.

The question is, How to attach the JS function to OnSelectedIndexChanged, to display the selected radio value?

Many thanks in advance.

Omar

 

                RadRadioButtonList RBL = new RadRadioButtonList();
                RBL.ID = "Radio" + i.ToString();
                RBL.AutoPostBack = false;

                ButtonListItem answer1 = new ButtonListItem();
                answer1.Text = "Answer " + i.ToString();
                answer1.Value = i.ToString();
                RBL.Items.Add(answer1);

                ButtonListItem answer2 = new ButtonListItem();
                answer2.Text = "Answer " + i.ToString();
                answer2.Value = i.ToString();
                RBL.Items.Add(answer2);

                ButtonListItem answer3 = new ButtonListItem();
                answer3.Text = "Answer " + i.ToString();
                answer3.Value = i.ToString();
                RBL.Items.Add(answer3);

                RBL.ClientEvents.OnSelectedIndexChanged = "OnItemClicked";

Vasko
Telerik team
 answered on 26 Oct 2023
2 answers
269 views

The following code disables the combobox, but I cannot enable it by unchecking the checkbox again...howcome?

 

   <telerik:RadComboBox Width="100%"  ID="rcb_zorgverzekeraar" runat="server"></telerik:RadComboBox>
                                           
                  <asp:CheckBox ID="chk_verzekeraar" CausesValidation="false" AutoPostBack="true" OnCheckedChanged="chk_verzekeraar_CheckedChanged" Text="Ik weet het niet" runat="server" />

 

 

with:

 

        Protected Sub chk_verzekeraar_CheckedChanged(sender As Object, e As EventArgs)
            rcb_zorgverzekeraar.Enabled = Not chk_verzekeraar.Checked
        End Sub

 

 

Marc

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 25 Oct 2023
0 answers
110 views

Hi, we found a problem after updating our project to our last available version witch is "Complimentary R1 2020 Version", we are on 2016.2.607.40, and after find a problem in radgrid and keyboard interaction we look at out download page and have the complimentary version, we try it and that problem solves, but in a recently added radfilter we discover that stop working as spectated.

 

We use RadFilterDropDown with radcomboboxes, which load on demand.

First, we see that load settings displays the saved info of combos in blank.

Second, we discover also that selecting a item from combo, not saving on settings and not showing on preview also

 

With 2016.2.607.40

With Trial version of 2023.3.1010 (we try it to see if problem solved on last version)

 

Attached isolated sample for reproduction
Maximiliano
Top achievements
Rank 1
 asked on 24 Oct 2023
1 answer
112 views

Hi,
I have a Radgrid in Batch edito mode for data entry purposes.

I need that when I press the Enter key, the focus goes to the cell below (same column next row).
How can I do?

Thank you

 

 

Attila Antal
Telerik team
 answered on 24 Oct 2023
1 answer
159 views

Hello.  I have a modal popup RadWindow being used as an edit form. This RadWindow is launched from a row in a RadGrid. Everything works great, except when the user finishes with the RadWindow and it closes, the calling RadGrid successfully does a rebind, but it doesn't visually update on the screen. The auto-refreshing the RadGrid works great for other uses such as deleting a record, or updating a record, but not when the rebind code runs upon returning from the modal RadWindow.  When the radwindow closes, it triggers the RadAjaxManager1_AjaxRequest which does the rebind operation. That runs just fine. The only thing not happening is the rendering of the screen so the user sees the updated data in the radgrid.  

Anyone have any ideas why this would be happening or way to force the re-rendering of the screen/radgrid?

This is the script on the source page:

        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                function refreshGrid(arg) {
                    if (!arg) {
                        $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
                    }
                    else {
                        $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");
                    }
                }
            </script>
        </telerik:RadCodeBlock>

This gets calls when the popup closes:

    Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
        If e.Argument = "Rebind" Then
            rgVehicleConfig.DataSource = Nothing
            rgVehicleConfig.Rebind()
        End If
    End Sub

This is the script on the popup aspx page:

    <script type="text/javascript">
        function CloseAndRebind(args)
        {
            GetRadWindow().BrowserWindow.refreshGrid(args);
            GetRadWindow().close();
            document.getElementById("frmSequencingAreas").submit();
        }

        function Close(args)
        {
            GetRadWindow().close();
        }

        function GetRadWindow()
        {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)

            return oWindow;
        }
    </script>

Finally, this is the code for the final import of the data that closes the RadWindow and returns to the calling page:

    Private Sub rgVehicleConfiguration_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles rgVehicleConfiguration.ItemCommand
        If e.CommandName = "Export" Then
            If ErrorsFound Then
                lblMessage.Text = "Highlighted values are invalid. Please correct and try importing file again.</br>Data cannot be imported until all errors are corrected."
            Else
                ExportData()
                ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CloseAndRebind();", True)
                ShowPopup = False
            End If
        End If
    End Sub

Most of this code was lifted from Telerik's own demo and that seems to work just fine here on the Telerik demo site.

Any help would be wonderful.

Thank you.

 

Sean
Top achievements
Rank 1
 updated question on 24 Oct 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?