Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
409 views

Hi,

I am updating my project from VS 202 to 2017 and also updating the Telerik version from 2012 to 2019

Also updating the .net Framework from 2.0 to 4.5. I have installed the Telerik version and added the reference but when I build I am getting the following error. I have also changed the web config with correct version name. What am I missing in the upgrade process? 

 

'Could not load file or assembly 'Telerik.Web.UI, Version=2019.2.514.45, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxxx' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)'

 

Thanks

Rumen
Telerik team
 answered on 25 Jun 2019
2 answers
68 views

Hello, I'm having a problem where the DataPager won't work if my RadListView has more than approximate 1,800 records. Everything is fine with small record counts returned in sql. Is something wrong with my Panels or AjaxManager? Please advise. 

 

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings> 

                    <telerik:AjaxSetting AjaxControlID="ListViewPanel1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                            <telerik:AjaxUpdatedControl ControlID="RadDataPager1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>

                  <telerik:AjaxSetting AjaxControlID="RadDataPager1">
                        <UpdatedControls>                     
                            <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelHeight="100%" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>

            </telerik:RadAjaxManager>

            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="30"></telerik:RadAjaxLoadingPanel>
            <div class="demo-container position-relative" style="height: 65%;"

 

                <div id="demo" class="demo-container no-bg page-wrapper position-relative scroll_vertical height-55percent">
                    <asp:Panel ID="ListViewPanel1" runat="server" Width="100%" Height="50%" CssClass="position-relative height-100percent">
                        <telerik:RadListView
                            ID="RadListView1"
                            runat="server"
                            RenderMode="Lightweight"
                            ItemPlaceholderID="ProductsHolder"
                            OnItemDataBound="RadListView1_ItemDataBound"
                          DataKeyNames="ENTITY_ID,CLAIM_TRANSACTION_SUMMARY_ID,ACTIVITY_NOTES,AGE,COLLECTION_DAYS,LAST_ACTIVITY_DATE,INACTIVE_DATE,FORM_TYPE,FLCOLOR,INCOLOR"
                            AllowPaging="true"
                            AllowCustomPaging="true"
                            CssClass="position-relative height-100percent"
                            OnItemCommand="RadListView1_ItemCommand" Width="100%" Height="100%">
                            <LayoutTemplate>
                                <div class="RadListView position-relative height-100percent" style="height: 100%;">
                                    <asp:Panel ID="ProductsHolder" runat="server" />
                                </div>
                            </LayoutTemplate>
                            <ItemTemplate>.....

                            </ItemTemplate>
                            <EmptyDataTemplate>
                                <fieldset class="noRecordsFieldset">
                                    No records for available.
                                </fieldset>
                            </EmptyDataTemplate>
                        </telerik:RadListView>

                 </asp:Panel>
                </div>

 

  <!-- Pagination -->
                <div class="claims-pagination">
                    <fieldset style="border-width: 1px; border-color: #E6E6E6;">
                        <div>
                            <telerik:RadDataPager RenderMode="Lightweight" ID="RadDataPager1" runat="server" PagedControlID="RadListView1" PageSize="50">
                                <Fields>
                                    <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                    <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="5" />
                                    <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                    <telerik:RadDataPagerPageSizeField PageSizeComboWidth="60" PageSizeText="Page size: " />
                                    <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go" />
                                    <telerik:RadDataPagerTemplatePageField>
                                        <PagerTemplate>
                                            <div class="pager">
                                                <b>Items<asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex + 1%>" />
                                                    to
                                             <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# If(Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex + Container.Owner.PageSize), Container.Owner.StartRowIndex + Container.Owner.PageSize, Container.Owner.TotalRowCount) %>" />
                                                    of
                                                        <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                                    <br />
                                                </b>
                                            </div>
                                        </PagerTemplate>
                                    </telerik:RadDataPagerTemplatePageField>
                                </Fields>
                            </telerik:RadDataPager>
                        </div>
                    </fieldset>
                </div>

 

 

Code behind:

    Protected Sub RadListView1_NeedDataSource(source As Object, e As Telerik.Web.UI.RadListViewNeedDataSourceEventArgs) Handles RadListView1.NeedDataSource
        Try
            iMinRows = (RadListView1.CurrentPageIndex * RadListView1.PageSize)
            iMaxRows = ((RadListView1.CurrentPageIndex + 1) * RadListView1.PageSize)

            If Not IsNothing(dtClaims) Then
                dtClaims.Clear()
            End If

            dtClaims = ucFilters.GetDataTablePage(iMinRows, iMaxRows)

            RadListView1.DataSource = dtClaims
            RadListView1.VirtualItemCount = ucFilters.RowCount
        Catch ex As Exception
            Throw ex
        End Try
    End Sub

Rumen
Telerik team
 answered on 25 Jun 2019
3 answers
528 views

Hi,
I set width=100%, because I want that my editor resizes every time I do the resize of my browser window, like responsive layout. (I would set a minimum width of 600px)
But it does not work: the editor does not resize and the scrollbars appear.how can I do? thanks


to be more clear: I want to act like when it opens in full screen mode!

<
telerik:RadEditor

Width="100%"

Height="750px"

ID="RadEditor1" Skin="Silk"

Runat="server"

ToolsFile="/Admin/DocumentsManagementV3/xml/ToolsFile.xml"

SkinID="DefaultSetOfTools">

</telerik:RadEditor>



Vessy
Telerik team
 answered on 24 Jun 2019
1 answer
96 views

Hi . 

I am having a radgrid with having  3 EditItemTemplate which uses 2 Combobox  and one RadTextBox . When the page is loaded for first time the insert/Add section on top of the grid is available . But after first insertion only the item binded is shown in the grid . The add section is not rendered . However on delete command the Add section reapper and I am able to add the items but then again on adding item insert row vanishes . 

 

I am providing the code of .ascx and code behind below . Kindly help as it is stuck for quite long time .

 

  <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxyReasonReflight" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="GrdReasonReflight">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GrdReasonReflight" LoadingPanelID="DefaultLoadingPanel"
                        UpdatePanelRenderMode="Inline" />
                </UpdatedControls>
            </telerik:AjaxSetting>          
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>

    <asp:Panel ID="Panel1" runat="server" Style="padding: 5px;">
       <div style="margin-top: 0px">
             You have 
                <telerik:RadNumericTextBox ID="TxtTotalOnBoardValue" runat="server" EnableViewState="true" MinValue="0" Value="0" Width="20">
                    <NumberFormat DecimalDigits="0" />
                    <IncrementSettings InterceptArrowKeys="false" InterceptMouseWheel="false" />
                </telerik:RadNumericTextBox>
             reasons for reflight from A/C Follow up.                                   
         </div>
         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <telerik:RadGrid ID="GrdReasonReflight" runat="server"  AutoGenerateColumns="false"
            AllowMultiRowSelection="false" Width="100%" OnPreRender="GrdReasonReflight_PreRender"
            OnItemCommand="GrdReasonReflight_ItemCommand" OnItemDataBound="GrdReasonReflight_ItemDataBound"
            OnNeedDataSource="GrdReasonReflight_NeedDataSource">
            <ValidationSettings ValidationGroup="GrpValReasonReflight" CommandsToValidate="PerformInsert,Update"
                EnableValidation="true" />
            <MasterTableView EditMode="InPlace" InsertItemDisplay="Top"
                EnableNoRecordsTemplate="false" DataKeyNames="TemporaryId">
                <NoRecordsTemplate></NoRecordsTemplate>
                <Columns>

                      <telerik:GridTemplateColumn UniqueName="Details" HeaderText="Details" AllowFiltering="false">
                        <ItemStyle Width="40%" />
                        <HeaderStyle Width="40%" />
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container.DataItem, "AdditionalDetail")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadTextBox runat="server" ID="Details" Text='<%# Bind("AdditionalDetails") %>' MaxLength="50" Rows="2" TextMode="MultiLine" EmptyMessage="Enter details" 
                                Width="95%" onfocus="focusOnInsertButton(this);" Visible="true" ValidationGroup="GrpValReasonReflight">
                            </telerik:RadTextBox>
                            <asp:RequiredFieldValidator ID="ValAdditionalDetail" runat="server" ControlToValidate="Details" Display="None"
                                ErrorMessage="Required field." ValidationGroup="GrpValReasonReflight"></asp:RequiredFieldValidator>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>

                     <telerik:GridTemplateColumn UniqueName="Category" HeaderText="Category" ItemStyle-Width="400px">
                        <ItemStyle Width="20%" />
                        <HeaderStyle Width="20%" />
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container.DataItem, "CategoryName") %>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadComboBox runat="server" ID="CmbCrewCategory" DropDownWidth="150" DataTextField="ReasonCategoryName" EmptyMessage="Select a Reason Category"  
                                DataValueField="IdReasonCategory" Filter="StartsWith" HighlightTemplatedItems="true" 
                                Width="99%"  AllowCustomText="true" OnClientKeyPressing="OnGrdCrewsCmbCrewTrigramKeyPressing"
                                OnClientTextChange="OnTrigramClientTextChange" ValidationGroup="GrpValReasonReflight"
                                OnClientFocus="RadCombobox_OnFocus"  AutoPostBack="true"
                                EnableLoadOnDemand="true"  OnItemsRequested="CmbCategory_ItemsRequested"  OnSelectedIndexChanged="CmbCategory_BoundToReason">
                                <ItemTemplate>
                                    <asp:Label ID="LblCmbCategoryNameTrigram" runat="server"><%# Eval("ReasonCategoryName") %></asp:Label>
                                </ItemTemplate>
                            </telerik:RadComboBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>


                 <telerik:GridTemplateColumn UniqueName="Reason" HeaderText="Reason" ItemStyle-Width="400px">
                        <ItemStyle Width="20%" />
                        <HeaderStyle Width="20%" />
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container.DataItem, "ReasonName") %>
                        </ItemTemplate>
                        <EditItemTemplate>
                             <telerik:RadComboBox runat="server" ID="CmbCrewReason" DropDownWidth="150" DataTextField="ReasonName" EmptyMessage="Select a reason" 
                                DataValueField="IdReason" Filter="StartsWith" HighlightTemplatedItems="true" 
                                Width="99%"  AllowCustomText="true" OnClientKeyPressing="OnGrdCrewsCmbCrewTrigramKeyPressing"
                                OnClientTextChange="OnTrigramClientTextChange" ValidationGroup="GrpValReasonReflight"
                                OnClientSelectedIndexChanged="OnTrigramClientSelectedIndexChanged" OnClientFocus="RadCombobox_OnFocus" EnableLoadOnDemand="true">
                                <ItemTemplate>
                                    <asp:Label ID="LblCmbCrewTrigram" runat="server"><%# Eval("ReasonName") %></asp:Label>
                                </ItemTemplate>
                            </telerik:RadComboBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                  
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"  
                        EditImageUrl="~/Content/images/Edit.gif">
                        <ItemStyle HorizontalAlign="Center" Width="15%" />
                        <HeaderStyle Width="15%" />
                    </telerik:GridEditCommandColumn>

                    <telerik:GridButtonColumn UniqueName="DeleteCommandColumn" CommandName="Delete" ButtonType="ImageButton" ImageUrl="~/Content/images/delete.png"
                        ConfirmText="Are you sure you want to delete this crew member?">
                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                        <HeaderStyle Width="5%" />
                    </telerik:GridButtonColumn>

                </Columns>
            </MasterTableView>
            <ClientSettings>
                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                <ClientEvents OnRowDblClick="GrdReasonReflightRowDblClick" OnCommand="GrdReasonReflight_OnCommand" />
                <KeyboardNavigationSettings EnableKeyboardShortcuts="true" AllowSubmitOnEnter="true" ValidationGroup="GrpValReasonReflight" />
            </ClientSettings>       
        </telerik:RadGrid>
    </asp:Panel>

 

 

 

 

 

 

 

 

Attila Antal
Telerik team
 answered on 24 Jun 2019
1 answer
94 views

I would like an example to assemble a chart into columns from a datatable.

The information in the column named "Type" should be tiled.

The following is an example of the table.

Thank you very much in advance

I'm using an automatic translator.

Vessy
Telerik team
 answered on 24 Jun 2019
3 answers
163 views

     Hi,

  i am  trying  to achieve cascade filtering in Excel like Filtering. but there is no clear information available. Please help me out

Rumen
Telerik team
 answered on 24 Jun 2019
1 answer
84 views

hi all i have a nestedgrid with a theme, i give it the data from a stored procedure, but some row change color after the DataBind() method can you explain me why?

i attached to you an image

Attila Antal
Telerik team
 answered on 24 Jun 2019
1 answer
157 views

Hi,

I am using Kendo ComboBox for one of the functionality like Cascading comboboxes. I am not finding any option or property to have auto complete on ComboBox.

There is requirement to have autocomplete functionality on ComboBox.

Could you please help me out?

Thanks,

Pankaj

Rumen
Telerik team
 answered on 24 Jun 2019
8 answers
546 views
I have code and telerik versions that are the same in my development and production environments and I am getting 2 different looking screens. The columns are not lined up at all.

Attached are the production and development screenshots.

This appears to be an IE issue. Firefox looks good.
Dimo
Telerik team
 answered on 24 Jun 2019
10 answers
189 views

Hi,

i am trying to export multiple radgrid and radhtmlchart to multiple pdf pages. i am able to export but content on aspx page is very big on pdf file. the contents are getting cut and only left most part is partially printed. how can i make contents in my webform (aspx) get printed as is to pdf with same size.

page break is working fine, but the content is getting exported so big that only left more content is printed little.

i have followed the below links but no use:

https://docs.telerik.com/devtools/aspnet-ajax/controls/clientexportmanager/functionality/export-html-elements

https://docs.telerik.com/devtools/aspnet-ajax/controls/clientexportmanager/functionality/pdf-multi-page-export

Rumen
Telerik team
 answered on 20 Jun 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?