Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
163 views
Hi,

I have a page running a generated Crystal Report which is producing a PDF file.  I then display this using the following code:

Using client As System.Net.WebClient = New System.Net.WebClient()
    HttpContext.Current.Response.ContentType = "application/pdf"
    HttpContext.Current.Response.WriteFile(FileName)
    HttpContext.Current.Response.Flush()
    HttpContext.Current.Response.Close()
    HttpContext.Current.Response.End()
End Using

This works fine when the page does not use Ajax, but as soon as I add Ajax to it an error gets thrown.  I would like to Ajaxify the page so I can show a progress spinner as the report is generated, rather than leave a few seconds when it looks like nothing is happening.

If I remove Ajax from the page thie code works fine.

Add Ajax and it stop working.

Is there an alternative, or better method of showing the PDF (I also show a Word or Excel document, depending on the selection the user has made)

Dave Penny
Peter Milchev
Telerik team
 answered on 10 Apr 2019
3 answers
170 views

Dear all,

I need your help for my Web application. The problem is the incorrect display of the menu.
The application works correctly through VisualStudio and also by publishing to the local IIS of the computer where I installed the development software (image1). When publishing on the remote server (IIS10, Windows Server 2016) The menu appears as (Image2).

I attached also the application pool and the web.config of the server.
Can Someone help me?

Best Regards

Andrea Novelli

Rumen
Telerik team
 answered on 09 Apr 2019
1 answer
107 views

Hi,

I have a grid with template columns. In the grid, the rows are merged when the data are same. Since the number of columns in the grid are exceeding the grid's view, it is set to be scrollable. The problem is, when the grid is scrolled, there control in the column went missing.

This is the code that I use to merge the row

Protected Sub gvMain_PreRender(ByVal sender As Object, ByVal e As EventArgs) Handles gvMain.PreRender
        For Each dataItem As GridDataItem In gvMain.MasterTableView.Items
 
            If (dataItem.OwnerTableView.Name = "gvMain") Then
                Dim gtv As GridTableView = CType(dataItem.OwnerTableView, GridTableView)
                For rowIndex As Integer = gtv.Items.Count - 2 To 0 Step -1
                    Dim row As GridDataItem = gtv.Items(rowIndex)
                    Dim previousRow As GridDataItem = gtv.Items(rowIndex + 1)
 
                    If row("Name").Text = previousRow("Name").Text Then
                        For col As Integer = gtv.Columns.Count - 1 To 0 Step -1
                            Dim gbcCol As String = CType(gvMain.MasterTableView.Columns(col).UniqueName, String)
 
                            If Not (gbcCol.Equals("inclTrx") Or gbcCol.Equals("inclKYC") Or _
                                gbcCol.Equals("ShareholdingID") Or gbcCol.Equals("Shareholding") Or gbcCol.Equals("Remark")) Then
                                row(gbcCol).RowSpan = If(previousRow(gbcCol).RowSpan < 2, 2, previousRow(gbcCol).RowSpan + 1)
                                previousRow(gbcCol).Visible = False
                                previousRow(gbcCol).Text = " "
                            End If
                        Next
                    End If
                Next
            End If
        Next
    End Sub

 

Any thoughts?

Eyup
Telerik team
 answered on 09 Apr 2019
7 answers
658 views

hi all again, i asked you about muptiple line series  in radchart in this post: https://www.telerik.com/forums/multiple-line-series-radhtmlchart

I created RadHtmlChart with the same parameters as previous post and using SqlDataSource. And this is my ASPX code:

    <telerik:RadHtmlChart ID="RadHtmlChart1" runat="server" DataSourceID="dsJournal"><br>        <PlotArea><br>            <YAxis MaxValue="100" MinValue="-100"><br>            </YAxis><br>            <Series><br>                <telerik:LineSeries DataFieldY="param_d" Name="LineSeries1"><br>                </telerik:LineSeries><br>                <br>            </Series><br>            <XAxis DataLabelsField="sensor_type"><br>                <LabelsAppearance RotationAngle="-90" Visible="false"></LabelsAppearance><br>            </XAxis><br>            <CommonTooltipsAppearance Visible="true" Shared="true" /><br>            <YAxis Step="10000"></YAxis><br>        </PlotArea><br>        <br>    </telerik:RadHtmlChart>

 

This is my C# code with setting RadHtmlChart:

        protected void RadChart1_ItemDataBound(object sender, ChartItemDataBoundEventArgs e)<br>        {<br>            e.SeriesItem.Name = (string) DataBinder.Eval(e.DataItem, "sensor_type");<br>        }

Bellow i will attach two picture: 

1. what i have right now in RadHtmlChart with one LineSeries

2. the same structure table from database, where i need only a column "sensor_type" for multiple LineSeries in RadHtmlChart.

 

Thank you for your attention, i hope you will help me, and sorry for two similar post

Marin Bratanov
Telerik team
 answered on 09 Apr 2019
0 answers
115 views
I have to provide the estimate to one our client for the migration of Telerik UI component upgrade from 2014.1.403 to latest.
When application is upgrade with 2019.1.215(trail) and tried to Build the application its raise the build errors for RadSearchBox.

Error
CS1061
'RadSearchBox' does not contain a definition for 'OnClientValueChanged' and no extension method 'OnClientValueChanged' accepting a first argument of type 'RadSearchBox' could be found (are you missing a using directive or an assembly reference?)

Error
CS1061
'RadSearchBox' does not contain a definition for 'OnClientDataRequested' and no extension method 'OnClientDataRequested' accepting a first argument of type 'RadSearchBox' could be found (are you missing a using directive or an assembly reference?)


Now, These methods mention above are no more exists with SearchBox then “What is the alternate approach/method we have for these method?”
Hemant
Top achievements
Rank 1
 asked on 09 Apr 2019
3 answers
190 views

Hi Everyone,

I am trying to use set_html function (besides other functions) but for some reason it stoped to work properly some weeks ago. Maybe related to jQuery version update, I don't know. This issue is freaking me out and I don't know how to solve it since it looks like something internal. Below you can see what I am saying, the error that I am facing.

 

Uncaught TypeError: Cannot read property 'selection' of undefined
    at b.Selection.getRange (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:11847)
    at b.Selection.getParentElement (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:11857)
    at Telerik.Web.UI.Editor.TableInsertColumn.getSelectedCell (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:6130)
    at Telerik.Web.UI.Editor.TableInsertColumn.getState (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:6179)
    at c.RadEditor.getToolState (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:12870)
    at b.DefaultToolAdapter.setToolState (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:16231)
    at b.DefaultToolAdapter._onEditorSelectionChange (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:16408)
    at Array.<anonymous> (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:6)
    at Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:6
    at c.RadEditor.raiseEvent (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:1038)

 

Could you guys help me to figure this out?

 

Thanks in advance!

Rumen
Telerik team
 answered on 08 Apr 2019
5 answers
1.4K+ views
I have a grid with an form template for editing and adding.  The grid also has a deletebutton column to delete rows.  All the events are firing but the grid doesn't refresh after itemcommand completes its work after an insert, update or delete is performed on the database.  I've stepped through the code and rebind() is being called.  We bind to a list of objects.

This is the behavior I'm experiencing

Clicking Add
The edit form opens, I enter the data and press Save.  The data saves, the form does not close.  I then click Cancel, the form closes and the grid refreshes without a full postback,

Clicking the Edit icon in the row

The edit form opens, I modify the data and press Save. The data saves, the form does close (but only because I included Me.rgAccountGroupAuthorizations.MasterTableView.ClearEditItems()  The grid does not refresh.  If I click Cancel the form closes and the grid doesn't refresh.

Clicking the Delete icon in the row
After confirmation, the data is deleted but the grid doesn’t refresh.

I've isolated the code on its own page.  The page doesn't have any ajax proxy (we use master pages)  We would really prefer to use the form template feature rather than a custom edit page or user control. 

Here is the markup and codebehind

<telerik:RadGrid ID="rgAccountGroupAuthorizations"
                    OnNeedDataSource="rgAccountGroupAuthorizations_NeedDataSource"
                    OnItemDataBound="rgAccountGroupAuthorizations_ItemDataBound"
                    OnItemCommand="rgAccountGroupAuthorizations_ItemCommand"
                    Width="600"
                    Height="100%"
                    AllowFilteringByColumn="false"
                    AllowPaging="false"
                    AllowSorting="true"
                    AutoGenerateColumns="false"
                    Skin="Web20"
                    ShowHeader="true"
                    ShowFooter="false"
                    CellSpacing="0"
                    GridLines="Both"
                    BorderWidth="0"
                    EnableViewState="false"
                    runat="server" >
    <ClientSettings Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true" EnableRowHoverStyle="true">
    </ClientSettings>
    <MasterTableView TableLayout="Fixed"
                     DataKeyNames="AuthorizationGroupID,OrganizationID"
                     ClientDataKeyNames="AuthorizationGroupID,OrganizationID"
                     CommandItemDisplay="Top"
                     AllowMultiColumnSorting="false"
                     AllowNaturalSort="false"
                     EnableViewState="true">
        <CommandItemTemplate>
            <div style="height: 30px; margin-left: 10px;">
                <div style="float: left;">
                    <asp:LinkButton ID="btnInserAuthorizationGroup" CommandName="initinsert" font-size="Larger" Font-Bold="true" runat="server" ><img style="border:0px;vertical-align:middle;" alt="" src="../Images/add.gif" /><span style="padding-left: 10px; padding-top: 20px;">Add New Permission Group</span></asp:LinkButton>
                </div>
            </div>
        </CommandItemTemplate>
        <EditFormSettings EditFormType="Template">
            <FormTemplate>
                <table id="Table2" class="baseTable">
                    <tr>
                        <td class="col1">
                            <asp:Label AssociatedControlID="txtAuthorizationGroup" Text="Permission Group" runat="server" /><uc:rfm runat="server" />
                        </td>
                        <td>
                            <telerik:RadTextBox ID="txtAuthorizationGroup" Width="300" MaxLength="100" runat="server" />
                            <asp:RequiredFieldValidator ID="rfvtxtAuthorizationGroup" ControlToValidate="txtAuthorizationGroup" EnableClientScript="true" Display="Dynamic"
                                ValidationGroup="AuthorizationGroup" ForeColor="red" ErrorMessage="Required" runat="server" />
                        </td>
                    </tr>
                    <tr class="footer">
                        <td colspan="2">
                            <telerik:RadButton ID="btnSaveAuthorizationGroup" Text="Save Permission Group" CommandName="InsertAuthorizationGroup" ValidationGroup="AuthorizationGroup" runat="server" />  
                            <telerik:RadButton ID="btnSaveAuthorizationGorupCancel" Text="Cancel" CommandName="cancel" runat="server" />
                        </td>
                    </tr>
                </table>
            </FormTemplate>
        </EditFormSettings>
        <SortExpressions>
            <telerik:GridSortExpression FieldName="AuthorizationGroup" SortOrder="Ascending" />
        </SortExpressions>
        <Columns>
            <telerik:GridBoundColumn DataField="AuthorizationGroup" HeaderText="Permission Group Description" SortExpression="SortName" HeaderStyle-Font-Size="Larger" HeaderStyle-Width="180px" HeaderStyle-Font-Bold="true" ItemStyle-Font-Bold="true" ItemStyle-Font-Size="Larger">
            </telerik:GridBoundColumn>
            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditButton" EditImageUrl="../Images/edit.gif" HeaderText="Edit">
                <HeaderStyle HorizontalAlign="Center" ForeColor="#000000" Font-Bold="true" Width="50px" />
                <ItemStyle HorizontalAlign="Center" ForeColor="#000000" Font-Bold="true" Width="50px" />
            </telerik:GridEditCommandColumn>
            <telerik:GridButtonColumn ConfirmText="Delete this Permission Group?"
                                        ConfirmDialogType="RadWindow"
                                        ConfirmTitle="Delete"
                                        ButtonType="ImageButton"
                                        CommandName="Delete"
                                        ConfirmDialogHeight="160px"
                                        ConfirmDialogWidth="250px"
                                        UniqueName="DeleteButton"
                                        ImageUrl="../Images/delete.gif"
                                        HeaderText="Delete" >
                <HeaderStyle HorizontalAlign="Center" ForeColor="#000000" Font-Bold="true" Width="50px" />
                <ItemStyle HorizontalAlign="Center" ForeColor="#000000" Font-Bold="true" Width="50px" />
            </telerik:GridButtonColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Protected Sub rgAccountGroupAuthorizations_NeedDataSource(sender As Object, e As GridNeedDataSourceEventArgs)
 
    Me.rgAccountGroupAuthorizations.DataSource = AuthorizationGroupManager.GetListOfAuthorizationGroupsByOrganizationID(Convert.ToInt32(Me.hidOrganizationID.Value))
 
End Sub
 
Protected Sub rgAccountGroupAuthorizations_ItemDataBound(sender As Object, e As GridItemEventArgs)
 
    Select Case True
        Case TypeOf e.Item Is GridEditFormInsertItem
 
        Case TypeOf e.Item Is GridEditFormItem
            Dim GridEditFormItem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
            If GridEditFormItem.IsInEditMode Then
                Using AuthorizationGroup As AuthorizationGroup = DirectCast(GridEditFormItem.DataItem, AuthorizationGroup)
                    Dim txt As RadTextBox = DirectCast(GridEditFormItem.FindControl("txtAuthorizationGroup"), RadTextBox)
                    txt.Text = AuthorizationGroup.AuthorizationGroup
                End Using
                DirectCast(GridEditFormItem.FindControl("btnSaveAuthorizationGroup"), RadButton).Text = "Update Permission Group"
                DirectCast(GridEditFormItem.FindControl("btnSaveAuthorizationGroup"), RadButton).CommandName = "updateauthorizationgroup"
            End If
 
        Case TypeOf e.Item Is GridDataItem
            Dim GridDataItem As GridDataItem = DirectCast(e.Item, GridDataItem)
            Dim AuthorizationGroupID As Int32 = Convert.ToInt32(GridDataItem.GetDataKeyValue("AuthorizationGroupID"))
            Dim imgbtn As ImageButton
            imgbtn = DirectCast(GridDataItem.FindControl("EditButton"), ImageButton)
            If imgbtn IsNot Nothing Then
            End If
            imgbtn = DirectCast(GridDataItem.FindControl("gbcDeleteButton"), ImageButton)
            If imgbtn IsNot Nothing Then
                imgbtn.CommandArgument = AuthorizationGroupID.ToString()
            End If
 
        Case TypeOf e.Item Is GridCommandItem
            Dim GridCommandItem As GridCommandItem = DirectCast(e.Item, GridCommandItem)
            Dim lnkb As LinkButton
            lnkb = DirectCast(GridCommandItem.FindControl("btnInserAuthorizationGroup"), LinkButton)
            If lnkb IsNot Nothing Then
 
            End If
 
    End Select
 
End Sub
 
Protected Sub rgAccountGroupAuthorizations_ItemCommand(sender As Object, e As GridCommandEventArgs)
 
    If TypeOf e Is GridCommandEventArgs And e.CommandName.ToLower = "delete" Then
        Dim GridDataItem As GridDataItem = DirectCast(e.Item, GridDataItem)
        Using AuthorizationGroup As AuthorizationGroup = AuthorizationGroupManager.GetAuthorizationGroup(DirectCast(GridDataItem.DataItem, AuthorizationGroup).AuthorizationGroupID)
            AuthorizationGroupManager.Delete(AuthorizationGroup)
            Me.rgAccountGroupAuthorizations.Rebind()
        End Using
        Me.rgAccountGroupAuthorizations.Rebind()
 
    ElseIf TypeOf e.Item Is GridEditableItem Then
        Dim GridEditableItem As GridEditableItem = DirectCast(e.Item, GridEditableItem)
        If Not GridEditableItem.IsInEditMode And e.CommandName.ToLower = "updateauthorizationgroup" Then
            Dim GridDataItem As GridDataItem = DirectCast(e.Item, GridDataItem)
            Dim AuthorizationGroupID As Int32 = Convert.ToInt32(GridDataItem.GetDataKeyValue("AuthorizationGroupID"))
            Dim txt As RadTextBox = DirectCast(GridDataItem.EditFormItem.FindControl("txtAuthorizationGroup"), RadTextBox)
            Using AuthorizationGroup As AuthorizationGroup = AuthorizationGroupManager.GetAuthorizationGroup(AuthorizationGroupID)
                AuthorizationGroup.AuthorizationGroup = txt.Text
                AuthorizationGroupManager.Update(AuthorizationGroup)
            End Using
            txt.Text = ""
            Me.rgAccountGroupAuthorizations.MasterTableView.ClearEditItems()
            Me.rgAccountGroupAuthorizations.Rebind()
 
        ElseIf GridEditableItem.IsInEditMode And e.CommandName.ToLower = "insertauthorizationgroup" Then
            Dim GridEditFormInsertItem As GridEditFormInsertItem = DirectCast(e.Item, GridEditFormInsertItem)
            Dim x As String = ""
            Dim txt As RadTextBox = DirectCast(GridEditFormInsertItem.FindControl("txtAuthorizationGroup"), RadTextBox)
            Using AuthorizationGroup As New AuthorizationGroup()
                AuthorizationGroup.OrganizationID = Convert.ToInt32(Me.hidOrganizationID.Value)
                AuthorizationGroup.AuthorizationGroup = txt.Text
                AuthorizationGroupManager.Insert(AuthorizationGroup)
            End Using
            txt.Text = ""
            Me.rgAccountGroupAuthorizations.MasterTableView.ClearEditItems()
            Me.rgAccountGroupAuthorizations.Rebind()
        End If
 
    End If
 
End Sub

Jalal
Top achievements
Rank 1
 answered on 08 Apr 2019
2 answers
131 views

Hello,

I am using Telerik 2012 Q3 (.NET40) in a web application. The last few months, I am getting occasional bug reports about broken functionality. I have been able to trace this down to a radWindow not opening in a pop-up, but in fact replacing the complete page. Users claim they open the page by clicking the designated button and this is confirmed by the URL in the address bar, showing a query string like ?rwndrnd=0.8599367708780101. For them, the bug occurs sometimes.

So far, I have not been able to reproduce this issue. Users reporting it, all seem to be using Internet Explorer 11. The start of this bug may or may not be related to the upgrade of the web application, or the introduction of a newer version of Internet Explorer. It is hard to find out. I have seen a report in which a javascript error was in the Console, of some unrelated code.

Unfortunately, I cannot point to the actual web application, as it is non-public.

Has this behaviour been seen before and is there a solution to it?

I use the following code to open the radWindow:

function OpenForNewCase() {
var oManager = $find('<%= RadWindowManager1.ClientID %>');
var oWnd = oManager.GetWindowByName("wndNewCase");
oWnd.SetUrl('<%= ResolveClientUrl("Forms/NewCase.aspx") %>');
oWnd.Show();
}
Roel
Top achievements
Rank 1
 answered on 08 Apr 2019
1 answer
305 views

Hi all,

I have a 'people' view listing users in a RadGrid, with an expand icon to show a detail table for each user.  Inside the detail table I have a tabstrip separating areas for the user.  My latest tab is 'documents' which needs to be dynamically generated server side, and contains a list of categorised (by tabs) list (in radgrids) of documents.  My application is working ok, except when I open/expand another user's detail table.  The documents tab renders correctly for the current open user only.  All of the others just disappear.  See screenshot attached for reference.

I am using the itemcommand event to check for the existence of the tabstrip tab(s) and if it exists I add the radgrid(s) (to the documents tabs), and if it does not I create the tab(s) and then add the radgrid(s).

Any ideas?  Is there a better way to do this?  I notice when I expand the details view the entire parent radgrid refreshes (loading panel).  Is there a way, perhaps, just to refresh the open details view?

Thanks,
Alex.

Attila Antal
Telerik team
 answered on 08 Apr 2019
1 answer
247 views

Good morning

I shall create a functionality for my users: at double click on RadComboBox (with the dropdown close) the combo is cleared.

ComboBoxs don't have client-side events as double click, right click, or others events that I can use.

Can you help me? How can I do this directly with combo?

Rumen
Telerik team
 answered on 08 Apr 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?