Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
192 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
344 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
91 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
351 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
334 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
102 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
417 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
1 answer
134 views
Hi,
    I am using RadGrid. but I am facing some design related prob.
Please download attached .jpeg file and you will get my prob.

RadGrig is like this - 

<telerik:RadGrid runat="server" ID="rgQuestions" OnNeedDataSource="rgQuestions_NeedDataSource"
                                AllowPaging="True" AllowMultiRowSelection="true" OnRowDrop="rgQuestions_RowDrop"
                                Width="100%" PageSize="30" EnableHeaderContextMenu="true" Skin="Default" AutoGenerateColumns="false">
                                <MasterTableView DataKeyNames="Q_QuestionId" TableLayout="Fixed">
                                    <GroupByExpressions>
                                        <telerik:GridGroupByExpression>
                                            <SelectFields>
                                                <telerik:GridGroupByField FieldAlias="Category" FieldName="Q_CategoryName" HeaderValueSeparator=" : ">
                                                </telerik:GridGroupByField>
                                            </SelectFields>
                                            <GroupByFields>
                                                <telerik:GridGroupByField FieldName="Q_CategoryName" SortOrder="Ascending"></telerik:GridGroupByField>
                                            </GroupByFields>
                                        </telerik:GridGroupByExpression>
                                    </GroupByExpressions>
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="Q_Categoryid" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Q_CategoryName" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Q_Order" ItemStyle-Width="25px" HeaderStyle-Width="25px"
                                            ItemStyle-HorizontalAlign="Left">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Q_Question">
                                        </telerik:GridBoundColumn>
                                        <%-- <telerik:GridTemplateColumn HeaderText="Edit">
                                    <ItemTemplate>
                                         <asp:HyperLink id="hlinkEdit" runat="server" ToolTip="Edit" ImageUrl="../Images/edit.gif" NavigateUrl='<%#"AddQuestions.aspx?mode=Edit&Id="+DataBinder.Eval(Container.DataItem,"Q_Questionid")+"&Choice=Preview&answertype="+ DataBinder.Eval(Container.DataItem,"Q_AnswerType")%>' >                                          </asp:HyperLink>
                                    </ItemTemplate>
                                    </telerik:GridTemplateColumn>--%>
                                    </Columns>
                                </MasterTableView>
                                <ClientSettings AllowRowsDragDrop="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true">
                                    <Resizing AllowColumnResize="true" />
                                    <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
                                    <%-- <ClientEvents OnRowDropping="onRowDropping" />--%>
                                    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                </ClientSettings>
                                <PagerStyle Mode="NumericPages" PageButtonCount="4" />
                            </telerik:RadGrid>


waiting for reply...
Pavlina
Telerik team
 answered on 28 Mar 2011
11 answers
215 views
Hi,

We have created a user control which has one radgrid control. The paging/sorting/filtering works well when tested locally.
But when we upload the user control to sitefinity site, the radgrid binds the data correctly but paging/sorting/filtering does not work.
On clicking on these options, it does a post back but no change on the grid.

Can you please help us figure out the issue?

Thank you,
Jay Mehta.
Tsvetina
Telerik team
 answered on 28 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?