Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
115 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
113 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.3K+ 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
168 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
93 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
419 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
906 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
112 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
9 answers
328 views
Hi, 
 
Is it possible to send insert command in hierarchical grid using a java script? 
I need to pass argument from client side and also refresh the selected parent/child grid.

Some thing like the delete command :
NGgridTableView.deleteItem(NGgriditemIndexHierarchical);

This is the kind of grid i  am  referring to  and i am binding the grid with data table 'On-Need-DataSource' event.
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultcs.aspx

I would really appreciate any suggestions.

Thanks
Meera
Eyup
Telerik team
 answered on 01 Nov 2018
1 answer
192 views

https://demos.telerik.com/aspnet-ajax/button/examples/css3buttons/defaultcs.aspx?skin=Bootstrap

The issue is visible within the above demo. I attached a screenshot comparing Sunset theme (Focus does work on this theme) to Bootstrap.

Is there a workaround for this?

Vessy
Telerik team
 answered on 01 Nov 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?