Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
309 views

How can I disable RadDropDownTree node based on nodeid?

I want to disable the first and second node in the tree based on the database nodeid 1 and 2

Peter Milchev
Telerik team
 answered on 04 Mar 2019
4 answers
583 views
I have a RadGrid that contains a GridTableView in the DetailTables, as such:

<telerik:RadGrid ID="RelatedProductsGrid" runat="server" Width="95%" ShowStatusBar="true"
            AutoGenerateColumns="False" PageSize="20" AllowSorting="False" AllowMultiRowSelection="False"
            AllowPaging="True">
            <pagerstyle mode="NextPrevAndNumeric"></pagerstyle>
            <mastertableview width="100%" datakeynames="PartId" allowmulticolumnsorting="False">
        <DetailTables>
            <telerik:GridTableView DataKeyNames="PartId" Name="RelatedProducts" Width="100%">
                <Columns>

...

<telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right">
                        <ItemTemplate>
                            <telerik:RadButton ID="RemoveRelatedProductButton" runat="server" CommandName="Delete">
                            </telerik:RadButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </telerik:GridTableView>
        </DetailTables>

So, the above button, "RemoveRelatedProductButton" shows up allright, but whenever I press it - nothing happens.

I have this in the code behind:

_relatedProductsGrid = FindControl("RelatedProductsGrid") as RadGrid;
_relatedProductsGrid.ItemCommand += RelatedProductsGrid_ItemCommand;

And finally:

protected void RelatedProductsGrid_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
        {
            if (e.CommandName == "Delete")

etc.

However, this method never fires. What do I need to do?
Tonya
Top achievements
Rank 1
 answered on 04 Mar 2019
4 answers
1.3K+ views
How implement "OnClientClicked" to GridButtonColumn?
Travis Richardson
Top achievements
Rank 1
 answered on 04 Mar 2019
1 answer
560 views

When I upgrade an existing project to a newer version the Upgrade Wizard Log shows success but I get this error:

https://drive.google.com/open?id=1l1KqfmqRnsCgWJ5O5LeBDCH_fpjDoiRr

Also if I bring up the Launch Toolbox Configurator and then click "Finish" button, I get the same error.

I do NOT run VS 2015 "As Admin" for many reason I don't want to get into, so please don't suggest that ;)  

Cheers, Rob.

Rumen
Telerik team
 answered on 04 Mar 2019
5 answers
241 views
Hi All

I have an ASP.NET datalist which is displaying data in the form of a repeated list.

I have set the RepeatColumns to 6, so that I have the data displayed repeatedly in 6 columns.

Is there a telerik control that can do this, ie repeat the data in columns?

I tried using a RadGrid but cannot get the data to display in 6 columns.

Any help is very much appreciated.

Thanks

Johann  
Rumen
Telerik team
 answered on 04 Mar 2019
5 answers
312 views
There are only two settings I can set from the aspx file for the AddNewRecord Button of a radgrid (when it's visible).

CommandItemSettings-AddNewRecordText
CommandItemSettings-AddNewRecordImageUrl

...but this is not enough.


Is there a way to control the appearance of the add button with css?



I can do this for the edit button (for example) of each row by:

      Dim ImgBtn As ImageButton = DirectCast(e.Item.FindControl("EditCommandColumn"), ImageButton)
      ImgBtn.CssClass = "editbutton"

...in the itemCreated event.

Thanks
Marin Bratanov
Telerik team
 answered on 04 Mar 2019
12 answers
462 views
Hi,

I can successfully delete rows from my TreeList but I need to show the user a popup confirmation box first. I have searched extensively for a solution and cannot find anything.

My code for removing a row is listed below:

protected void OnSettingsTreeListDeleteCommand(object sender, TreeListCommandEventArgs e)
{
    TreeListDataItem treeListDataItem = e.Item as TreeListDataItem;
    TableRow tableRow = e.Item as TableRow;
    if (treeListDataItem != null && tableRow != null)
    {
        string name = tableRow.Cells[3].Text;
        string id = treeListDataItem.GetDataKeyValue("Id").ToString();
        SettingsTreeListDataTable.Rows.RemoveAt(Convert.ToInt32(id));
        PropertyType.GetPropertyType(typeof(Brand)).RemoveSetting(name);
    }
}

I guess I need some kind of java script popup.

Thanks

SurfRat.

Marin Bratanov
Telerik team
 answered on 04 Mar 2019
2 answers
219 views

Hello ,

 

Can you please advise how the Tree view should be setup to give this type of functionality with database table attached ?

 

thanks


KinG
Top achievements
Rank 1
 answered on 04 Mar 2019
11 answers
121 views
I upgraded from 2013.3.1324.40 to 2014.1.403.40 and when I perform DataBind() on my RadTreeList it fails with:

An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll

I switch back to the old version and it works fine.

Was there a breaking change for 2014.1.403.40?  

Thanks,

Dave


Maxime
Top achievements
Rank 1
 answered on 02 Mar 2019
1 answer
207 views

Hello..........

I want to create a check box to show by group. Where it will show only 1 checkbox per 1 group

 

- I Can  pic1.png
 - I want pic2.png

Rumen
Telerik team
 answered on 01 Mar 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?