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

Hy

i am using RadhtmlChart  and i want to fill RadhtmlChart programmatically using simple SQL request.

 

thank you very much

Marin Bratanov
Telerik team
 answered on 18 Aug 2016
5 answers
372 views
Hi,

I do have one RadCombobox and one Radgrid in my page separately. Depends upon the combo box selection the radgrid record will change. It is working fine now. But if I click the Insert option in radgrid, it show the input text fields and all other control, in that time I changed the combo box, the event is not get firing. May I know why? But the selection changed event firing, when I am in the editable mode in the radgrid.

Thanks
Madhu
Top achievements
Rank 1
 answered on 17 Aug 2016
1 answer
205 views

Hello,

I bind my rad grid client-side. 

Here I am trying to export grid data to excel on button click event from server side.

However, exporting is not working.

So, could someone suggest any workaround to achieve above case?

Thanks in advance.

Rahul

Doug
Top achievements
Rank 1
 answered on 17 Aug 2016
4 answers
145 views

I have a reproducible problem that I encounter when the RadWizard Finish button is clicked.  I believe it is Telerik related and not my code ... here is a description of the behavior.

 

1) User clicks Finish button.  The entire browser window freezes.  (i.e. cannot minimize, cannot change the page).

2) This behavior occurs in IE 10, IE 11, and Edge.

3) This behavior does not occur in Google Chrome.

4) When it happens no errors are thrown to the console window.

5) The code behind function for the Finish event is not fired.  All code (including the freeze) occurs client-side in the browser.

6) The behavior does NOT occur in IE 10, IE 11, and Edge if the Visual Studio debugger is attached.  No errors are thrown.

 

This is for an application in production and this issue causes work stoppage.  Any guidance or suggestions is greatly appreciated.  Thank you!

Peter Milchev
Telerik team
 answered on 17 Aug 2016
0 answers
48 views

Hello,

We have a Rad grid and a hyperlink in a rad window

Here on hyperlink click we are trying to bind the rad grid from client side by calling Web Method via $.Ajax() function, however 

the rad grid  - get_masterTableView() finds null.

So, could someone please advise is there any workaround/better way to bind the rad grid as per the above case?

Thanks in advance.

 

systems
Top achievements
Rank 1
 asked on 17 Aug 2016
6 answers
772 views

I have an ASP.Net page with a RadGrid within the RadPageLayout.

There is a RadTextBox within the RadPageLayout.  A user will enter in the Serial Number into the RadTextBox and click the SCAN button which is a RadButton. Clicking on the SCAN button causes the VB.Net code-behind to a number of checks on the Serial Number entered and puts the results in a table that was bound to the RadGrid.  A Rebind is done with the RadGrid to show the results and the row with the Serial Number is selected.

Once the Rebind is done and row is selected, I need the RadGrid to scroll to the selected row.  I am having trouble getting that to work.  I have tried what the Telerik documentation states about scrolling to selected row and did not work.  I have tried using SelectedIndexChanged event with RadGrid and did not work.

Here is a portion of the code-behind for the Scan button click:

' Rebind Grid to show status of scan.
rgInvntCycleReconcl.Rebind()
 
' Select Row with Serial Number
Dim gdiItem As GridDataItem = rgInvntCycleReconcl.MasterTableView.FindItemByKeyValue("SERIAL_NO", strSerialNbr)
gdiItem.Selected = True

Here is the RadGrid in ASP.Net page:

<telerik:RadGrid ID="rgInvntCycleReconcl" runat="server" GroupPanelPosition="Top" Height="246px" AutoGenerateColumns="False" AllowPaging="True" RenderMode="Auto"
    PageSize="2000" OnNeedDataSource="rgInvntCycleReconcl_NeedDataSource" OnSelectedIndexChanged="rgInvntCycleReconcl_SelectedIndexChanged">
    <GroupingSettings CollapseAllTooltip="Collapse all groups" />
    <ExportSettings IgnorePaging="True">
        <Pdf AllowPrinting="False">
        </Pdf>
        <Excel FileExtension="xlsx" Format="Xlsx" />
    </ExportSettings>
    <ClientSettings>
        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" />
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
    <MasterTableView EnableViewState="true" Font-Size="Medium" DataKeyNames="SERIAL_NO">
        <Columns>
            <telerik:GridBoundColumn DataField="SERIAL_NO" FilterControlAltText="Filter column column" HeaderText="Serial No." ReadOnly="True" UniqueName="SerialNbr">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="LOCATION" FilterControlAltText="Filter column1 column" HeaderText="Location" ReadOnly="True" UniqueName="Location">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="STATUS" FilterControlAltText="Filter column2 column" HeaderText="Status" ReadOnly="True" UniqueName="Status">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="SCAN_LOC" FilterControlAltText="Filter column3 column" HeaderText="Scan Location" ReadOnly="True" UniqueName="ScanLocation">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="WEIGHT_KGS" FilterControlAltText="Filter column4 column" HeaderText="Weight KGS" ReadOnly="True" UniqueName="WeightKGS">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
    <PagerStyle Mode="NextPrevNumericAndAdvanced" />
</telerik:RadGrid>

Please help!

Sincerely,

Keith Jackson

Keith
Top achievements
Rank 1
 answered on 17 Aug 2016
5 answers
178 views

I can't seem to trigger my validators within my FormTemplate on my grid. I can't find any examples of this either. Is it possible? Do I have to resort to using client side JS to manually trigger them on the submit?

 

<ValidationSettings EnableValidation="true" CommandsToValidate="PerformInsert,Update" />

<FormTemplate>
                                    <table>
                                        <tr>
                                            <td>Milestone Name: </td>
                                            <td>
                                                <asp:TextBox runat="server" Text='<%# Bind("Name") %>' ID="txtMilestoneName" />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtMilestoneName" 
                                                    runat="server" ErrorMessage="* - Required Field"  Display="Dynamic" ValidationGroup="Milestone"
                                                    ForeColor="Red" Font-Bold="true"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>Pipline: </td>
                                            <td><asp:DropDownList runat="server" SelectedValue='<%# Bind("PipelineID") %>' ID="ddlPipline"
                                                ItemType="ONEOK.BusinessData.BusinessObjects.Pipeline"
                                            DataTextField="Name" DataValueField="PipelineID" SelectMethod="getPipelines" AppendDataBoundItems="true">
                                                <asp:ListItem Text="Select..." Value="0" />
                                            </asp:DropDownList>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddlPipline"
                                                    ErrorMessage="* - Required Field" InitialValue="" ForeColor="Red" Font-Bold="true"></asp:RequiredFieldValidator>

                                            </td>
                                        </tr>
                                        <tr>
                                            <td>Threshold Value: </td>
                                            <td>
                                                <asp:TextBox runat="server" Text='<%# Bind("MilestoneThresholdValue") %>' ID="txtMilestoneThresholdValue" />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtMilestoneThresholdValue" runat="server" ErrorMessage="* - Required Field" ForeColor="Red" Font-Bold="true"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>Latitude: </td>
                                            <td>
                                                <asp:TextBox runat="server" Text='<%# Bind("Latitude") %>' ID="txtLatitude" />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtLatitude" runat="server" ErrorMessage="* - Required Field" ForeColor="Red" Font-Bold="true"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>Longitude: </td>
                                            <td>
                                                <asp:TextBox runat="server" Text='<%# Bind("Longitude") %>' ID="txtLongitude" />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="txtLongitude" runat="server" ErrorMessage="* - Required Field" ForeColor="Red" Font-Bold="true"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="top">Photo: </td>
                                            <td>
                                                <telerik:RadBinaryImage ID="rbiMilestone" DataValue='<%# Eval("Photo") %>' runat="server" />
                                                <telerik:RadAsyncUpload ID="radMilestoneImage" AllowedFileExtensions="jpg,jpeg,png,gif" runat="server" 
                                                     
                                                    AutoAddFileInputs="false" Localization-Select="Upload Image"></telerik:RadAsyncUpload>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>Milestone Information: </td>
                                            <td><telerik:RadEditor ID="radEventLongDesc" Content='<%# Bind("MilestoneInformation") %>' ContentAreaCssFile="~/content/rte.css" runat="server" Width="500px" ToolbarMode="PageTop" BackColor="White"></telerik:RadEditor></td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2">
                                                <asp:Button ID="btnUpdate" CausesValidation="true" ValidationGroup="Milestone" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                    runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'></asp:Button>&nbsp;
                                                <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                                    CommandName="Cancel"></asp:Button>
                                            </td>
                                        </tr>
                                    </table>
                                </FormTemplate>

Eyup
Telerik team
 answered on 17 Aug 2016
5 answers
50 views
Hi, I have a RadGrid with collapsed rows. If I expand group 1 and modify data, and then expand group 2 to enter more data, the data in group1 is gone. Is this a bug or am I doing something wrong?
Eyup
Telerik team
 answered on 17 Aug 2016
1 answer
211 views

I am writing this simple page with two RadAjaxPanel as:

 

<html lang="en">
<body>
    <form runat="server">
        <telerik:RadScriptManager runat="server"></telerik:RadScriptManager>
        <telerik:RadAjaxLoadingPanel runat="server" ID="rdProgressPanel"></telerik:RadAjaxLoadingPanel>

        <telerik:RadAjaxPanel ID="upd1" runat="server" LoadingPanelID="rdProgressPanel">
            <asp:Panel runat="server" ID="panel1">
                step 1
            <asp:Button Text="text" runat="server" OnClick="Unnamed_Click" />
            </asp:Panel>
        </telerik:RadAjaxPanel>

        <telerik:RadAjaxPanel ID="upd2" runat="server" LoadingPanelID="rdProgressPanel">
            <asp:Panel runat="server" ID="panel2">
                step 2            
            <asp:Button Text="text" runat="server" OnClick="Unnamed_Click1" />
            </asp:Panel>
        </telerik:RadAjaxPanel>
    </form>
</body>
</html>

 

On the server side, I have written to simply visible the panels as:

        protected void Unnamed_Click(object sender, EventArgs e)
        {
            panel1.Visible = false;
            panel2.Visible = true;
        }

        protected void Unnamed_Click1(object sender, EventArgs e)
        {
            panel1.Visible = true;
            panel2.Visible = false;
        }

 

Issue is, when I click first button that makes panel 2 visible and panel 1 invisible. But, when I click second button panel 2 is getting invisible but panel1 is not getting visible again.

Viktor Tachev
Telerik team
 answered on 17 Aug 2016
2 answers
34 views

Hi

I need to add some attributes to the data source so that when my JS function on the OnRequestEnd event is called it can interrogate the attributes.  

Most controls have the attributes but I cant seem to find anything for the ClientDataSource.

Any ideas?

Regards

Jon

Jon
Top achievements
Rank 1
 answered on 17 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?