Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
95 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
448 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
211 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
375 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
102 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
82 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
366 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
354 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
114 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
17 answers
447 views
I set EnableEmbeddedSkins="false" and set my custom skin for my radgrid.

The below 3 problems occured when the grid has scrollbar :

1. scrollbar Header background image is not displaying. How to get scrollbar header background.
2. When scrolls, the scrollbar displays tooltip saying that "Page 1 of 1". How to remove this.
3. After the data rows in the grid, one empty row was added at the end. How to remove this.
4. The styles are not applied to the grid when I browse from Firefox.

Kindly help me to fix those problems.

See the attached image for your reference. The problems are circled in Red color in the image.
Rabeek Ahamed
Top achievements
Rank 1
 answered on 28 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?