.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Post New Web Links

TreeView with parent to single child relation from multiple children c#

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :.NET Framework
 

Hi,

how to populate treeview  with a child node and with all its parent nodes

ex:

FROM:

A

---a1

       -----a11 // if selected i want to draw treeview with its all parents

B

---b1

       -------b11

 

 


View Complete Post


More Related Resource Links

Treeview: Select all children if Parent is selected etc...

  

Hi,

I'm using a Treeview with  ShowCheckBoxes="All" , so basically I have a tree with all CheckBox Nodes. I'm using the TreeView inside an update panel, and populate the Tree code behind dynamically.

My requrements are the following:

1) Select all the children if parent is selected,

2) When parent is selected, and if we de-select a child, set parent unselected

3) Track if new nodes were selected and previously selected nodes were de-selected (becasue I need to update the database according to the selections in the Tree)

For above 1, I do the following:

protected void TreeView1_TreeNodeCheckChanged(object sender, TreeNodeEventArgs e)
    {
        foreach (TreeNode node in TreeView1.Nodes)
        {
            TreeNodeCollection col = node.ChildNodes;
            //select all children when the parent is checked
            if (col != null && node.Checked)
            {
 &nb

Best design option for multiple parent / multiple child list?

  

I made 2 lists.  "User Groups" and "Resource Groups".  In User Groups, I setup a column to do a multi-select lookup to the Resource Groups lists title column.  Obviously as this gets built, groupings will form in the other direction as well... Is there a way to programatically do that, so I don't have to complete a multi-select colum in the Resource Groups list that does a lookup to the User Groups list to get info I logically already have.

I tried to do it with a workflow, but was only able to update 1 item so the multi-select concept was pointless. 

I want to have the multi-select information displayed regardless of which list your looking in.  If you look in a User Groups list item, you can see all the resources the users have access to... if you look at a Resource Group list item, you can see what User Groups have access to it (linked by multi-select lookup), and i'd like to only have to populate the lookup in 1 direction and build the reverse relationships on automatically.

Hope that makes sense.  You'd think you could auto import this info but I can't get Domain Local groups to show up, seems to be a limitation of the WSDL for connecting to AD (forget the correct term for that piece), so I'll add them manually..

Thanks

Mark


How to add multiple reports in single parent pane with each report had its own pane and dropdown to

  

We had a report to create which should show multiple reports with each of them had there own pane and each of them had drop down to select the parameters to run this report. We had to create this report using SSRS, any ideas???

Thanks.

Tony


Multiple Parent Child Hierarchies in SSAS 2008 R2

  

I'm trying to create a dimension containing financial accounts in SSAS 2008 R2 where individual accounts can belong to one or more hierarchies.  I also need to be able to specify a unary operator since a leaf level account may be subtracted from one parent but additive to another parent.  For example revenues and expenses may be grouped one way for statutory reporting and a completly different way for management reporting and further belong to some arbitraty groupings that users find necessary.

I can't seem to find a way to have a leaf level member in a dimension more than one time in a Parent child hierarchy, and I can't seem to find any way to include the unary operator in a hierarchy where I use attributes to define the hierarchy.

Are there any work arounds that anyone knows about?  What I found from the help file was that multiple parent child hierarchies which supported in SSAS 2000 are not supported in 2008.  However there is no suggestion for what to do.

Any insight would be greatly appreciated.

Regards

Bill Webster


Parent-child relation conflict

  

Hello,

I have a dimension with a parent-child relation and a package that can be configured to clear all the data in the table used as a source for the dimension and load data into it from another database. The problem is that I get a "The INSERT statement conflicted with the FOREIGN KEY SAME TABLE constraint" error message. My assumption is that it happens due to some child rows being inserted to the table before their related parent rows. How can I handle such a situation? The inferred members option in the slowly changing dimension component is only for values in fact tables that have not yet been loaded to the respective dimension tables.

Thanks.

 


Custom Control: Multiple children, "{0} can accept only one child."

  

Long story short - I'm trying to build a custom accordion control that in essence is a Scroll Viewer wrapped around a Stack Panel.  Once I get past the hump I'm at now which is getting the custom control to accept multiple children I should have no further issues.  

 

Below is my style for the control:

 

  <Style TargetType="{x:Type local:ScrollableAccordion}">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type local:ScrollableAccordion}">
          <!--
          <Border Background="{TemplateBinding Background}"
              BorderBrush="{TemplateBinding BorderBrush}"
              BorderThickness="{TemplateBinding BorderThickness}">
          </Border>
          -->
          <ScrollViewer Height="{TemplateBinding Height}"
                 Width="{TemplateBinding Width}"
                 CanContentScroll=

how to make a TreeNode in treeview as the 1st child node for every or specific Parent Treenode? w

  

Hi,

 

How to  make a treenode  as the 1st child node for every parent node or for some specific parent nodes.

thanks in advance


how to create multiple dimensions on single parent column

  

How i cant create multiple dimensions on single parent column? 

This is the senario

 

Workflow fact table

Wf_id (int)

Source_Department_ID

Service_Department_ID

Created_Date

Etc

 

Department Dimension Table

Dept_id

DepartmentName

 

Now if i create dimension from dimdept , it have only one department name column, how i can use this same lookup to represent the service and source department names? Same senario pops up in sales fact tables as well , like manage_id and salesman_id both looks up to same parent table "Emp_id"


GridView Parent Child View with JQuery Effects

  
I was just checked how to add some more cool effects to the GridView control using JQuery. In this post I will display parent-child data in the GridView control with some help of the wonderful JQuery library.

Let's first populate the GridView control.

merging multiple tables in a single dataset to single table

  

 i have a stored procedure which returns three tables to a dataset ..... now i need to merge all three tables to a single table from d same dataset 


like dataset1 has table1 table2 and table3 .... i want all the three tabels to be merged into dataset1 itself .... instead of three diffrent tables so that i can show all three table data in a single datagrid  as a compact data and combination of 3 tables from d single dataset.....



can some1 help me please.....


How to keep the hover for Parent menu and set the selected menu item css for child menu item?

  

Hi,

I'm using cssfriendly control adapter for menu. My asp.net menu control's datasource is a sitemap file I'm using which contains all the urls.

I have the following questions:

  1. Is there a way to keep the parent menu item hovered while hovering over the respective child menu items?
  2. Is there a way to keep the child menu item selected? I am able to set the css for the parent menu, however I was wondering if the same is possible with the child items.

Please help! Smile

Thanks,

Moneka Smile



way of calling "javascript function of parent window from child window."

  
The article way of calling "javascript function of parent window from child window." was added by raja.s on Sunday, June 06, 2010.

Hi,Here i am going to explain how to call the javascript function of a parent window from the child window(pop-Up).Some may know before reading this post.Parent Java Script Function:script language="Javascript" type="text/javascript">

how to set multiple button in single image

  

Hi friends,

I need to make multiple button in a single image in asp.net.

and need coding also for vb.net.

thanx in advance



single form multiple buttons in MVC

  

In a single page  has two buttons , ddown and tempname.

I wrote two actionresult separetly each one for ddown and tempname.

I need one is post and another one is get method. so i gave like

1. Get Method

------------------

[ActionName("ddown")]
        [AcceptVerbs(HttpVerbs.Get)]
        [AcceptParameter(Name = "button", Value = "tempname")]
        public ActionResult ddown_tempname(string statusName, NewsLetterAdminViewModel viewModel)
        {

return View();

}

 

2.Post Method

------------------

[ActionName("ddown")]
        [AcceptVerbs(HttpVerbs.Post)]
        [AcceptParameter(Name = "button", Value = "ddown")]
        public ActionResult ddown(string statusName, string button, NewsLetterAdminViewModel viewModel, FormCollection collection)
        {

return View();

}

 

if i call the post method its worked well. but if i call the get method, the code does not execute. the brea

using single function to open multiple colorbox

  

Hi I have li like this

<li class="game">
                                    <div class="game-thumb">
                                        <a href="include/games/words.swf" class="gamelink">
                                            <img src="include/games/words.jpg" /></a></div>
                                    <div class="thumb-desc">
                                        Word</div>
                                </li>
                                <li class="game">
                                    <div class="game-thumb">
                                        <a href="include/games/cat.swf" class="game2">
                                            <img src="include/games/dots.jpg" /></a></div>
                                    <div class="thumb-desc">
                                        Trap the CAT</div>
                                </li>
                                <li class="game">
                                    <div class="game-thumb">
                                        <a href="include/games/gravitymaster.swf" class=&qu
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend