Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
894 views
When trying to use Telerik Report Wizard to connect to an objectdatasource, I get the error "An error occurred while invoking data retrieval method"  Try restarting VisualStudio."

Please can someone help me troubleshoot this. I am using version Q3_2012_v6_2_12_1017.

Thanks.
Silviya
Telerik team
 answered on 02 Nov 2018
7 answers
1.6K+ views
We have ASP.NET web application which will be generating a word document based on various parameters and it will be saved in the server. In the next level of users want to edit the word document our application instead of downloading the file and make on it. Does Telerik any editor to support MS-Word documents?
Rumen
Telerik team
 answered on 02 Nov 2018
1 answer
171 views

Hello, see attached for a cosmetic issue found in Bootstrap skin. As you may notice the problem occurs due to box-sizing used.

The Bootstrap skin works fine alone but usually you want use this skin together with the bootstrap framework. The bootstrap sets global box-sizing: border-box which causes cosmetic issues in some Telerik controls (I've already reported one in RadWindow). 
Please change your test cases to use the Bootstrap skin together with the bootstrap framework.

Rumen
Telerik team
 answered on 02 Nov 2018
3 answers
142 views
Hello,
I've a RadGrid that allow Group and show the Group Panel on the top of the Grid.
The problem is that I need to add a Button Link inside the panel, like I show you in picture attached.

I tried to do this functionality, on PreRender Event of the Grid, but the problem is that the link doesn't appers, and it's shown after first postback.

Can you help me with this functionality?
Thanks.

Julio.

 

 

protected void OnGridPreRender(object sender, System.EventArgs e)

 

{

   RadGrid1.GroupPanel.Controls.Add(

 

new LiteralControl("<div style='float:right;padding-left:5px;'>"));

 

   RadGrid1.GroupPanel.Controls.Add(new LinkButton { ID = "btnClearAllFilter", Text = "Clear all ilters"});

   RadGrid1.GroupPanel.Controls.Add(

 

new LiteralControl("</div>"));
}

 

Rumen
Telerik team
 answered on 02 Nov 2018
4 answers
1.4K+ views
i have a RadGrid with a lot of columns with autogenerated column headers, is there a way to:
1) set width for each column individually,
2) set one common width for all columns,
3) add a scroll bar for when columns outsize the original size of the grid?

this can be done either client side or server side.
Rumen
Telerik team
 answered on 02 Nov 2018
1 answer
212 views

Hello

I don't find an option to translate the Text "All" (added with the EnableAllOptionInPagerComboBox property). Can someone name me the key for it or can't we translate it at all?

 

christian

Rumen
Telerik team
 answered on 02 Nov 2018
3 answers
125 views

Hi, 

I noticed that the TagCloud control is not available in asp.net core.  Is there any plans on porting this control to asp.net core? 

Or, how well would this control play, (in it's current form of asp.net ajax) in an asp.net core application? 

 

Vessy
Telerik team
 answered on 02 Nov 2018
1 answer
491 views

I have a grid, in which particular cells need to be disabled.

The enabled cells need to have a validator added to give a warning if the value isn't in a particular range, each cells range can be different

I tried disabling the cell in the PreRender, or Item created, but the edit control still appears when you tab to the cell

 

 protected void PriceUpdateGrid_PreRender(object sender, EventArgs e)

        {
            foreach (GridDataItem item in PriceUpdateGrid.MasterTableView.Items)
            {
                foreach (GridTableCell cell in item.Cells)
                {
                   cell.Enabled = false;
                    cell.Item.Edit = false;
                }
                //item.Enabled = false;
            }
        }

        protected void PriceUpdateGrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            if (e.Item is GridEditableItem)
            {
                GridEditableItem dataItem = (GridEditableItem)e.Item;
                (e.Item as GridEditableItem)["377"].Enabled = false;
                dataItem["377"].Enabled = false;
                dataItem["377"] = false;
                dataItem["377"].Controls[0].Enabled = false;
                dataItem["377"].Visible = false;
            }
        }

 

 

 

 

 <telerik:RadGrid ID="PriceUpdateGrid" runat="server" RenderMode="Lightweight" ViewStateMode="Enabled"
        AllowSorting="False" GridLines="None" ShowGroupPanel="False" Skin="WebBlue" AutoGenerateColumns="False"
        OnNeedDataSource="PriceUpdateGrid_NeedDataSource" AllowMultiRowSelection="True"
        OnPreRender="PriceUpdateGrid_PreRender"
        OnItemCreated="PriceUpdateGrid_ItemCreated"
        OnItemUpdated="PriceUpdateGrid_ItemUpdated"
        OnItemDataBound="PriceUpdateGrid_ItemDataBound"
        OnBatchEditCommand="PriceUpdateGrid_BatchEditCommand"
        AllowAutomaticUpdates="True">
        <PagerStyle AlwaysVisible="False" />
        <MasterTableView ClientDataKeyNames="SurveyEntityId" EnableViewState="true" DataKeyNames="SurveyEntityId,SubRegionSiteId" EditMode="Batch" CommandItemDisplay="TopAndBottom">
            <BatchEditingSettings EditType="Cell"></BatchEditingSettings>
            <Columns>
                <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="40px">
                </telerik:GridClientSelectColumn>
            </Columns>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>

        </MasterTableView>


        <ClientSettings EnableRowHoverStyle="true" AllowKeyboardNavigation="true">
            <ClientEvents OnBatchEditOpening="BatchEditOpening" />
            <Resizing AllowColumnResize="true" />
            <Selecting AllowRowSelect="True" UseClientSelectColumnOnly="True" />
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
        </ClientSettings>
    </telerik:RadGrid>

Attila Antal
Telerik team
 answered on 01 Nov 2018
5 answers
1.0K+ views

Trying to set the radwindow to a percent of the screen size.  This way the user still knows its  a pop-up window and has to be closed apporpriately instead of thinking its a real window, found an example online but it does not work, so I though Telerik has done this somewhere, so here I am asking the question.

Here is what I have but nothing works.  I need to set it at about 90% of the screen size.

function SelectedName(source, eventArgs) {
            var txt = eventArgs.get_text();
            var val = eventArgs.get_value();
            var radWidow = $find("<%= RadWindow.ClientID%>");
            var textbox = document.getElementById("<%=txtSearch.ClientID%>");
 
            if (val == '') {
                alert('You must pick a recruit from drop down list.');
            }
            else {
                radWidow.show();
                radWidow.setUrl("ManageProcessor.aspx?Pass=" + val);
                var browserWidth = $telerik.$(window).width();
                var browserHeight = $telerik.$(window).height();
                radWidow.setSize(Math.ceil(browserWidth * value / 100), Math.ceil(browserHeight * value / 100));
                radWidow.center();
                textbox.value = '';
            }
           }
 
        function VerifyEnlist() {
            var Enlist = document.getElementById("<%=ddlEnlistment.ClientID%>").value;
            var radWidow = $find("<%= RadWindow.ClientID%>");
            if (Enlist == 4) {
                radWidow.show();
                radWidow.setUrl("WoTracker.aspx");
                var browserWidth = $telerik.$(window).width();
                var browserHeight = $telerik.$(window).height();
                radWidow.setSize(Math.ceil(browserWidth * value / 100), Math.ceil(browserHeight * value / 100));
                radWidow.center();
            }
            else {
                radWidow.show();
                radWidow.setUrl("ManageProcessor.aspx?Type=" + Enlist);
                var browserWidth = $telerik.$(window).width();
                var browserHeight = $telerik.$(window).height();
                radWidow.setSize(Math.ceil(browserWidth * value / 100), Math.ceil(browserHeight * value / 100));
                radWidow.center();
            }
        }

Rumen
Telerik team
 answered on 01 Nov 2018
0 answers
163 views

When i check nodes in a tree (by mouse) selected values appended in title. Which is good.

However, on server side node is getting checked, but title stays empty.

Here is my code:

  rddtRegion.DataSource = dtContractCounties
  rddtRegion.DataBind()

  For Each dr As DataRow In dtSelectedCounties.Rows
                Dim nodeValue As String = dr("CountyID")
                Dim node_region As RadTreeNode = rddtRegion.EmbeddedTree.FindNodeByValue(nodeValue)
                node_region.Checked = True
  Next

Please advice

David
Top achievements
Rank 1
Iron
Iron
Veteran
 asked on 01 Nov 2018
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?