Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
Hi there,

I was able to connect to my hierarchical sql data according to demo
http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/databinding/defaultcs.aspx.

Now I need to transfer the items between two TreeViews, similar to the demo below except for the demo is using ListBoxs:
http://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/transfer/defaultcs.aspx

But I need to keep the hierarchy information during transfer. Say, if the item belongs to group1 in TreeView1, it will also be shown as group1 item in TreeView2 after transfered to TreeView2.

TreeView2 is blank at first, after finished selecting data from TreeView1, I would like to write everything in TreeView2 to database with hierarchy info.

How could I accomplish that?

Thanks,
Di
Nikolay Tsenkov
Telerik team
 answered on 28 Mar 2011
3 answers
68 views
Hi all, I have in the same page.aspx a RadToolBar with its RadToolBarButton and a simple <asp:Button>.
In this page I have also a simple RadWindow so defined:
<telerik:RadWindowManager ID="RadWinMngr" runat="server"
    <Windows> 
        <telerik:RadWindow ID="RadWindowAddUser" runat="server" NavigateUrl="http://www.google.com" VisibleOnPageLoad="true" Visible="false" /> 
    </Windows> 
</telerik:RadWindowManager>   


In the code behind, for the simple <asp:Button> I have:

Private Sub Button1_click(...) 
    RadWindowAddUser.Visible = True 
End Sub 


and for the RadToolBarButton I have:
 
Private Sub AddUser() 
    RadWindowAddUser.Visible = True 
End Sub 


I'm sure that the AddUser sub is correctly called because I've verified it by debug breakpoint.

The problem is that when I click on <asp:Button> the RadWindowAddUser is shown correctly, but when I click on RadToolBarButto it doesn't!
Why???

Anybody can help me? Thanks.

Giulio Ferri
Georgi Tunev
Telerik team
 answered on 28 Mar 2011
5 answers
369 views
Is there any good documentation, how to really do a professional master page layout, Im having alot of trouble.
Im new to telerik and also asp.net.

can you assist me?
what are some good websites with the layout structure, i understand how to add the contentholders, now im trying to
come up to speed on the layout. my layouts are horrible

Mira
Telerik team
 answered on 28 Mar 2011
3 answers
186 views
I'm pretty new at this so I don't know much about how to use this or the proper way to call things so I apologize if I don't explain it very well.
Use this picture for reference: http://i178.photobucket.com/albums/w270/marcoshid/Other/Ethernet_View.jpg

  I'm trying to make a treeview that will display the nodes '01', '02', etc one right under the other without the black node that is currently above the '02' node. Here is my code for it:


Eth_Rel ethernet_1 = new Eth_Rel();
       protected void Ethernet_Load(object sender, EventArgs e)
       {
           RadTreeNode aParent = new RadTreeNode();
 
           aParent.Text = "Ethernet Connection";
           using (MapTest.Model.Computer_InventoryEntities context = new Computer_InventoryEntities())
           {
               int _roomID = 10;
               var list = (from c in context.Eth_Rel where c.rm_id == _roomID select c).ToList();
               
               string temp=null;
               int id=999999;
              // string etherName = null;
               foreach ( Eth_Rel eth in list)
               {
                   RadTreeNode ethernet = new RadTreeNode();
                   RadTreeNode ethernet1 = new RadTreeNode();
                   RadTreeNode panel = new RadTreeNode();
                   RadTreeNode panel1 = new RadTreeNode();
                   if ((temp != eth.SocketReference.Value.sck_pnl))
                   {
                       
                       ethernet.Text = eth.Room.rm_code + " - " + eth.SocketReference.Value.sck_pnl;
                       panel.Text = "0" + eth.pnl_id.ToString();
 
                       RadTreeNode speed = new RadTreeNode();
                       speed.Text = "Speed: " + eth.SpeedReference.Value.spd_type;
                       panel.Nodes.Add(speed);
 
                       RadTreeNode connects = new RadTreeNode();
                       connects.Text = "Connects to: " + eth.ComputerReference.Value.comp_name;
                       panel.Nodes.Add(connects);
 
                       RadTreeNode location = new RadTreeNode();
                       location.Text = "Location: " + eth.LocationReference.Value.loc_name;
                       panel.Nodes.Add(location);
                       
                   }
                   if ((temp == eth.SocketReference.Value.sck_pnl && id != eth.pnl_id))
                   {
 
                       panel1.Text = "0" + eth.pnl_id.ToString();
 
                       RadTreeNode speed = new RadTreeNode();
                       speed.Text = "Speed: " + eth.SpeedReference.Value.spd_type;
                       panel1.Nodes.Add(speed);
 
                       RadTreeNode connects = new RadTreeNode();
                       connects.Text = "Connects to: " + eth.ComputerReference.Value.comp_name;
                       panel1.Nodes.Add(connects);
 
                       RadTreeNode location = new RadTreeNode();
                       location.Text = "Location: " + eth.LocationReference.Value.loc_name;
                       panel1.Nodes.Add(location);
                        
                   }
                   else
                   {
                      
                   }
                   ethernet.Nodes.Add(panel);
                   aParent.Nodes.Add(ethernet);
                   ethernet.Nodes.Add(panel1);
                   aParent.Nodes.Add(ethernet);
                   
                   temp = eth.SocketReference.Value.sck_pnl;
                   id = eth.pnl_id;
               }        
               
           }
           RadTreeView3.Nodes.Add(aParent);
       }



 


Thanks for the help in advance,
Marcos H.


Nikolay Tsenkov
Telerik team
 answered on 28 Mar 2011
4 answers
326 views
Hi All,

Have two RadDatePicker and a RadGrid, which works fine.

Have to enter the Start Date and End Date, and click the Tick button.

while the Tick button is clicked the RadGrid displays with Datas.

Works fine in FireFox and IE

But in Google Chrome RadGrid is not displayed. The cursor points to the Start Date.

Have attached the screen shot.

Is there any option to rectify this

Thanking You

-Anto
Vasil
Telerik team
 answered on 28 Mar 2011
4 answers
84 views

I am using ReadScriptManager and RadAjaxManager with Navigate event for the back and forward button browser where I add the historypoint within the method that fire the event.
RadScriptManager.AddHistoryPoint("","");

it works fine locally but once I moved the application to development web server. it generates error where the history points are not configured and returned empty values
the navigate event fires but the history state e.State["mid"] is empty with no value.

Now is there any IE requirements for navigate event? Do I have to restart IIS? ...Etc

I appreciate your help

Simon
Telerik team
 answered on 28 Mar 2011
4 answers
52 views
Standard Grid via LINQ DS
<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="Are you sure? Delete means delete." />

  
Protected Sub ReportGrid_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles ReportGrid.ItemCommand
    If e.CommandName = "Delete" Then
        Dim filepath As String = (CType(e.Item, GridDataItem)).OwnerTableView.DataKeyValues(e.Item.ItemIndex)("Doc_Path").ToString
        If System.IO.File.Exists(Server.MapPath("/Files/" & filepath)) Then
            System.IO.File.Delete(Server.MapPath("/Files/" & filepath))
         End If
    End If
   
End Sub

Fires every time faithfully in IE 7. In FF 4.0 it fails miserably. Ideas/Workarounds?

Lenny_shp
Top achievements
Rank 2
 answered on 28 Mar 2011
4 answers
342 views
hi,
  In edit form template of gridview i used radnumerictextbox. I validate the value using requiredfiled validator. My initial value is 0 and i set in the required field validator. How can i handle empty text. When i delete values in textbox and press update the validator not captured the error and i got the old value before the textbox used.

How can i hablde this issue?
Devinder
Top achievements
Rank 1
 answered on 28 Mar 2011
3 answers
324 views
I have a couple of textbox in an Edit Form Template and I need to show or hide one of these textboxes depending upon the data value for that particular row item.  How would I set this textbox to be invisible in the inline edit mode.
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Mar 2011
4 answers
96 views
Hi,

I have a requirement like:

I have a datatable with 10 columns, out of which I am showing only 5 columns on page. Page also have export button, which is working fine and exporting only five columns with sorting & filtering.

Now due to some requirement , client is expecting to show 5 columns as is on page but while exporting, excel should contain all 10 columns.

Is it possible to full fill this requirement?
Avinash
Top achievements
Rank 1
 answered on 28 Mar 2011
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?