Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
269 views

Hello, i have really simple RadTreeView control. 

but there is an issue, nodes only display if they have "0" ParentID. I put the code like telerik's examples and also table content is correct.

Why i cant put any child nodes which their ParentID is ParentID > 0


var ds = db.Finding.AsQueryable().ToList();
 
treeView.DataTextField = "VulnerabilityCode";
treeView.DataValueField = "ScanId";
treeView.DataFieldID = "Id";
treeView.DataFieldParentID = "ParentId"; // only shows where this value is ZERO
treeView.DataSource = ds;
treeView.DataBind();

 

<telerik:RadPane runat="server" Scrolling="None">
                        <telerik:RadSplitter runat="server" Orientation="Horizontal">
                            <telerik:RadPane runat="server">
                                <telerik:RadTreeView ID="RadTreeView2" IsExpanded="True" runat="server" Skin="WebBlue" Height="600px" Width="100%">
                                </telerik:RadTreeView>
                            </telerik:RadPane>
...

 

Peter Milchev
Telerik team
 answered on 29 Nov 2017
3 answers
233 views

Hi

I have a simple Rad grid using the Bootstrap skin.

Based on the data I'm using the ItemDataBound to change the row COlour, however its not being applied to Alternate rows.

How can I fix this?

Here is my code:

Protected Sub rgHousekeeping_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgHousekeeping.ItemDataBound
 
    If TypeOf e.Item Is GridDataItem Then
 
        Dim RowDataItem As GridDataItem = CType(e.Item, GridDataItem)
        Dim TaskComplete As System.Web.UI.WebControls.Image = DirectCast(RowDataItem("TaskComplete").Controls(0), System.Web.UI.WebControls.Image)
 
        If CBool(e.Item.DataItem("TaskComplete")) Then
            TaskComplete.ImageUrl = "Content/Images/Tick_24.png"
        Else
            RowDataItem.BackColor = Drawing.ColorTranslator.FromHtml("#ff7474")
        End If
 
    End If
 
End Sub

 

Andy

Vessy
Telerik team
 answered on 29 Nov 2017
5 answers
138 views
We are currently rebuilding a module in one of our applications that takes a document template, replaces marked placeholders within the template with specific data , and then allows the user to download the file as a word document.

The user would like to be able to edit these templates online, before they are rendered.  One key feature that we need to include is conditional blocks - certain sections of the template will only be rendered if the data in the system meets specific conditions.  We need to make these conditional blocks as user friendly to edit as possible.  

What i have envisaged is creating a custom module for the RadEditor that can be used to select and insert conditional blocks, that the user can then edit to their liking.  It is important that the end user (who is non technical) can identify and understand these conditional sections easily and click on them to load them in the custom module editor.  

I notice i can create custom content filters in javascript that can hook into the rendering of the designer/html view, which would seem appropriate for this kind of solution.

The problem is that there is no documentation on the customFilter object - where can i find more info on how to use this?
Philippe GRACA
Top achievements
Rank 1
 answered on 29 Nov 2017
24 answers
2.4K+ views
Hi Telerik,

I want to use your filtered combobox as given in web link: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx

But I am getting "CS0234: The type or namespace name 'QuickStart' does not exist in the namespace 'Telerik' (are you missing an assembly reference?)" error.

I tried to find QuickStart in my telerik package but can not found this file/dll. Please help me to implement the required control and get the proper dll.

Regards,
Harmeet
hardik
Top achievements
Rank 1
 answered on 29 Nov 2017
4 answers
540 views
hi everyone
i have problem with dropdowntree
in my local site whene i have some postback in my site and change some views of multiview this error appears :
the control collection cannot be modified during databind init load prerender or unload phases
and this is my stack trace:
[HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.]
   System.Web.UI.ControlCollection.Add(Control child) +9600379
   Telerik.Web.UI.RadDropDownTree.CreateHeader() +135
   Telerik.Web.UI.RadDropDownTree.CreateChildControls() +57
   System.Web.UI.Control.EnsureChildControls() +83
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +27
   System.Web.UI.Control.FindControl(String id) +12
   Telerik.Web.UI.HierarchicalControlItemContainer.FindDataSourceControl() +124
   Telerik.Web.UI.HierarchicalControlItemContainer.GetDataSource() +107
   System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +58
   System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +19
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

any one know any thing about this error??
i have no mention of this control in my code view (code behind)
Seham
Top achievements
Rank 1
 answered on 28 Nov 2017
0 answers
88 views

I've done some server side validation on Insert, and then called the confirmation box 

RadWindowManager1.RadConfirm("Are you sure?", "confirmInsertCallBackFn", 330, 100, null, "System Alert");

 

So on my client side I can cancel the user response ...

function confirmInsertCallBackFn(arg) {
                if (arg) {
                    $find("<%=RadGrid1.ClientID%>").get_masterTableView().fireCommand("InitInsert", "");
                    ### NEED TO CLOSE THE INSERT FORM ###
                }
            }

The only issue is that the the Insert form doesn't close when the RadConfirm is OK. What is the java script equivalent of "RadGrid1.MasterTableView.IsItemInserted =False" in order to close the Insert form.

 

I found general guidance here, but the cancelInsert() call actually cancels the Insert altogether and closes the insert form, rather than just close the form.

https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/client-side-programming/gridtableview-object/methods/cancelinsert

$find("<%=RadGrid1.ClientID%>").get_masterTableView().cancelInsert();

 

Paul
Top achievements
Rank 1
 asked on 27 Nov 2017
22 answers
438 views
We are implementing a treeview where the # of nodes could exceed 5000 nodes. We are using ServerSideCallBack to populate the children nodes and have noticed that the treeview control stops responding if the # of nodes exceeds 800-900.  After a while an error  message pops up "A script on this page is causing internet explorer to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script". If I select "No", sometimes (based on the # of nodes)  it loads the children and at other times it just freezes.

What would suggest in this scenario ? Is there a way that we could load the children in smaller chunks ? Let us know.

Sundaresan
Top achievements
Rank 1
 answered on 27 Nov 2017
0 answers
141 views

Hello,

I am using below code block to bind filter combobox but the not able to bind data to combobox. can anyone help me in this?

 

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
       {
           if (e.Item is GridFilteringItem)
           {               
               GridFilteringItem item = (GridFilteringItem)e.Item;
               RadComboBox combo = (RadComboBox)item.FindControl("RadComboboxName");
               combo.DataSource = Data(0,0).DefaultView.ToTable(true, "Name");
               combo.DataTextField = "Name";
               combo.DataValueField = "Name";
           }
       }
Kod
Top achievements
Rank 1
 asked on 27 Nov 2017
0 answers
81 views

 Hello,

I want to implement radgrid filter as per the screen shot attached. can anyone help me with Radgrid filter column with all the values in it. I came across this link but i dont know how to bind filter combobox since i am biding grid in code behind.

http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/filter-templates/defaultcs.aspx

Kod
Top achievements
Rank 1
 asked on 27 Nov 2017
10 answers
194 views
Hi,

I am creating a dynamic rad grid with multiple templatefield .  when I am scrolling horizondally the Grid is becoming invisible and some text like System.Data.DataRowView are visible. For your information I am creating grid entirely in the page init but declaration is in the .aspx page. Any help will be greatly apreciated.
Ilaya
Top achievements
Rank 1
 answered on 27 Nov 2017
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?