Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
44 views
Hello people,

I'm using 3 RadListBoxes with 2 RadGrids on the same page aspx, but i' d'ont know how to arrange them in the page...

I'm using a <table> to group them in columns but it's not working...I d'ont like the appearence

Can you help me?

My code aspx is the next:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AssignInvoices.aspx.cs" Inherits="iConnect.InvoicesScaling.Views.AssignInvoices"
    Title="AssignInvoices" MasterPageFile="~/Shared/Silver.master" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="content" ContentPlaceHolderID="DefaultContent" runat="Server">
    <script src="../Shared/js/jquery-1.6.2.min.js" type="text/javascript"></script>
    <script src="../Shared/js/jquery.tooltip.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Silverlight.js"></script>
    <h1 style="text-align: center;">
        Assign Invoices</h1>
    <br />
    <table>
        <tr>
            <td>
                <telerik:RadListBox ID="RadListBox1" runat="server" AllowReorder="True" Skin="Black"
                    Sort="Ascending" Height="400px" Width="250px" EnableDragAndDrop="True">
                    <ButtonSettings TransferButtons="All"></ButtonSettings>
                    <HeaderTemplate>
                        <h5 style="color: White; text-align: center">
                            USERS</h5>
                    </HeaderTemplate>
                </telerik:RadListBox>
            </td>
            <td>
                <telerik:RadListBox ID="RadListBox2" runat="server" SelectionMode="Multiple" EnableDragAndDrop="True"
                    Height="400px" Width="150px" AllowReorder="True" Skin="Black">
                    <ButtonSettings TransferButtons="All"></ButtonSettings>
                    <HeaderTemplate>
                        <h5 style="color: White; text-align: center">
                            GROUPS</h5>
                    </HeaderTemplate>
                </telerik:RadListBox>
            </td>
            <td>
                <telerik:RadListBox ID="RadListBox3" runat="server" EnableDragAndDrop="True" Height="400px"
                    Width="150px" AllowReorder="True" Skin="Black">
                    <ButtonSettings TransferButtons="All"></ButtonSettings>
                    <HeaderTemplate>
                        <h5 style="color: White; text-align: center">
                            STAGING</h5>
                    </HeaderTemplate>
                </telerik:RadListBox>
            </td>
            <td>
                <telerik:RadButton ID="RadButton1" runat="server" Text="Assign" Skin="Black" Width="100px"
                    Height="50px" OnClick="RadButton1_Click">
                </telerik:RadButton>
                <br />
                <br />
                <telerik:RadButton ID="RadButton2" runat="server" Text="Unassign" Skin="Black" Width="100px"
                    Height="50px" OnClick="RadButton2_Click">
                </telerik:RadButton>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
                <h1>
                    Total Invoices Resume </h1>
                <telerik:RadGrid ID="RadGrid1" runat="server" Skin="Windows7">
                </telerik:RadGrid>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <tr>
                <td>
                </td>
                <td>
                    <telerik:RadGrid ID="RadGrid2" runat="server" Skin="Windows7">
                    </telerik:RadGrid>
                    <h1>
                    Total Invoices Resume </h1>
                <telerik:RadGrid ID="RadGrid3" runat="server" Skin="Windows7">
                </telerik:RadGrid>
                </td>
            </tr>
        </tr>
    </table>
    <br />
    <br />
</asp:Content>
Ricardo
Top achievements
Rank 1
 asked on 11 Aug 2011
1 answer
98 views
Is there a way to make the text of RadSliderItems vertical?

Example
Niko
Telerik team
 answered on 11 Aug 2011
1 answer
133 views
Hi,

I was wondering what the preferred method of using a custom skin (all controls) within a theme and what the possible impacts of combining the 65+ css files (base + skin as I need to tweak some of the base styles) into a smaller number so they load correctly in IE (31 style sheet limit issue).

Thanks
Gavin.

Dobromir
Telerik team
 answered on 11 Aug 2011
1 answer
123 views
Hi,

Can by any mean i fix the width of a bar in a bar chart.

as if the number of bars are less ,then each bar takes enormous width whereas if the number of bars are more ,then  all the bars  shrinks to very small width.


can any one suggest me any fix for this .

ASAP.


Evgenia
Telerik team
 answered on 11 Aug 2011
1 answer
64 views
Hi, I'm trying to create a custom FilterTemplate but I'm having trouble maintaining the same look and feel as the other columns filters.
How can I insert a filter button (like the one attached) with it's menu just as in the other columns?

Regards,
Santiago.
Pavlina
Telerik team
 answered on 11 Aug 2011
1 answer
46 views
I am using RadEditor for SharePoint in SP 2010 SP1. I have looked at video on how to add the radeditor for sharepoint webpart to a page.

I am a bit confused and need some help.

1. I want to set Telerik properties of the webpart. for example I want to have access to all of the toolbars for rad editor and not just the default ones. How do I do that?

2. It looks like the only way a user can edit the content is for them to click on the webpart dropdown menu and select edit webpart. This makes the user editing process unecessarily complex. I.e check out page, edit page, edit webpart etc. In vanilla SP when a user edits a page they can select the sp editor webpart and can immediately start editing without haveing to select an edit web part option.

Am I missing something or is this the way it works?

3. Is it possible to add the radeditor webpart to a SP page layout? If I try inserting a web part within SPD  the sharepoint radeditor is not listed and I cannot see the misc section where it is located.

Rumen
Telerik team
 answered on 11 Aug 2011
1 answer
83 views

the folowing is my drag and drop code behind but the problem is that every row drags and drops and works except for the last row in the grid.  Is there something I need to change or do differnetly to get the last row to drag and drop.

Protected Sub myGridPErsonnel_RowDrop(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridDragDropEventArgs) Handles myGridPErsonnel.RowDrop
      If e.DestDataItem.OwnerTableView.ClientID = myGridPositions.MasterTableView.ClientID Then
          For i As Integer = 0 To e.DraggedItems.Count - 1
              Dim SSN As String = e.DraggedItems(i).GetDataKeyValue("SSN")
              Dim PositionId As Integer = e.DestDataItem.GetDataKeyValue("intPositionId")
              HFSSN.Value = SSN
              HFPosition.Value = PositionId
              FillInfo(SSN, PositionId)
              pnlPersonnelInfo_POP.Show()
          Next
      End If
  End Sub
Maria Ilieva
Telerik team
 answered on 11 Aug 2011
3 answers
241 views
Hi!

I'm trying to speed up performance in a User Control Edit Form used to edit items from a main grid.  Currently, the custom edit form opens in 3-5 seconds.  I've isolated the problem to a grid on the edit form which contains four RadNumericTextBox editors in each row.  If I remove these, the form opens and closes in less than a second.

I followed guidance on these forums to replace the RadNumericTextBoxes with asp:TextBox and use a RadInputManager to validate the input.  In the grid's ItemCreated event, I assign each TextBox to the RadInputManager's control collection.  The problem is, the controls in the grid rows don't seem to pick up any of the validation.  I even added a test TextBox on the form to verify that the input manager was configured correctly.

The grid columns are defined like this (I changed two of the four to TextBox for testing):

<telerik:GridTemplateColumn HeaderStyle-Width="100" HeaderText="Min Distance" UniqueName="MinDistance">
     <ItemTemplate>
         <telerik:RadNumericTextBox ID="rntbMinDistance" Type="Number" MinValue="0" MaxLength="4"
             NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator="" Width="40" DbValue='<%# Eval("MinDistanceToLocation") %>'
             Enabled='<%# Eval("IsIncludedInOrder") %>' runat="server" />
     </ItemTemplate>
 </telerik:GridTemplateColumn>
 <telerik:GridTemplateColumn HeaderStyle-Width="100" HeaderText="Max Distance" UniqueName="MaxDistance">
     <ItemTemplate>
         <telerik:RadNumericTextBox ID="rntbMaxDistance" Type="Number" MinValue="0" MaxLength="4"
             NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator="" Width="40" DbValue='<%# Eval("MaxDistanceToLocation") %>'
             Enabled='<%# Eval("IsIncludedInOrder") %>' runat="server" />
     </ItemTemplate>
 </telerik:GridTemplateColumn>
 <telerik:GridTemplateColumn HeaderStyle-Width="100" HeaderText="Min HSGY" UniqueName="MinHSGY">
     <ItemTemplate>
         <asp:TextBox ID="txtMinHSGY" Type="Number" Width="40" Text='<%# Eval("MinHighSchoolGraduationYear") %>'
              runat="server" />
     </ItemTemplate>
 </telerik:GridTemplateColumn>
 <telerik:GridTemplateColumn HeaderStyle-Width="100" HeaderText="Max HSGY" UniqueName="MaxHSGY">
     <ItemTemplate>
         <asp:TextBox ID="txtMaxHSGY" Type="Number" Width="40" Text='<%# Eval("MaxHighSchoolGraduationYear") %>'
              runat="server" />
     </ItemTemplate>
 </telerik:GridTemplateColumn>


I defined the input manager as follows: 

<telerik:RadInputManager ID="RadInputManager1" runat="server" >
    <telerik:NumericTextBoxSetting BehaviorID="hsgyBehavior" InitializeOnClient="false"
        ErrorMessage="Valid year is required" Type="Number" DecimalDigits="0" MinValue="1900"
        MaxValue="2099" >
        <TargetControls>
            <telerik:TargetInput ControlID="txtTest" />
        </TargetControls>
    </telerik:NumericTextBoxSetting>
</telerik:RadInputManager>


And finally, I added this handler to the grid: 

protected void rgrdLocations_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem && e.Item.IsDataBound && e.Item.DataItem != null)
    {
        NumericTextBoxSetting hsgySetting = (NumericTextBoxSetting)RadInputManager1.GetSettingByBehaviorID("hsgyBehavior");
         
        TextBox txtMinHSGY = e.Item.FindControl("txtMinHSGY") as TextBox;
        TextBox txtMaxHSGY = e.Item.FindControl("txtMaxHSGY") as TextBox;
        hsgySetting.TargetControls.Add(new TargetInput(txtMinHSGY.UniqueID, true));
        hsgySetting.TargetControls.Add(new TargetInput(txtMaxHSGY.UniqueID, true));
    }
}

txtTest validates as expected, but the textBoxes in the grid do not.  What am I missing?

I'm new to Telerik and new to web development, so I apologize if it's something obvious.

Thanks,

Drew
Tsvetina
Telerik team
 answered on 11 Aug 2011
1 answer
187 views
Hi,
I am currently wanting to implement the RadTreeView "Expand All" functionality.
I used "ServerSideCallBack" mode to expand nodes and used a menuitem to call the event(Expand All).
But when I click "ExpandAll" button to expand  a selected node which its child child nodes count is more than 5, the first time it will get correct result.
At the second time to click  "ExpandAll" button to  expand this node,  its child child nodes will appear in a confuse way. Only the top 5 child child nodes are correct, the others are wrong. Although we do nothing  but only toggle the selected node in server side codes. 

Below codes maybe helpful to understand it. Please tell me how to resolve it.

[Function:ExpandNode]
  .....
  foreach (RadTreeNode radTreeNode in treeNodes)
    {
             radTreeNode.NodeTemplate = new MyTemplate(radTreeNode);
             currentNode.Nodes.Add(radTreeNode);
             radTreeNode.DataBind();
    }
[Function:Expand All]
   if (!radTreeNode.Expanded)
      {
             if (radTreeNode.ExpandMode == TreeNodeExpandMode.ServerSideCallBack)
             {
                 ExpandNode(radTreeNode);
             }
             else if(radTreeNode.Nodes.Count>0)
             {
                  radTreeNode.Toggle();
             }
       }
       foreach (RadTreeNode node in radTreeNode.Nodes)
       {
            ExpandAllNode(node);
       }
Plamen
Telerik team
 answered on 11 Aug 2011
1 answer
69 views

Scenario:

I am developing an application using Telerik RadControls for ASPX.NET AJAX. I have tree

different Rad controls in the main page. A RadTreeview, a RadTabStrip and a RadGrid.

The basic functionality is: I select a node from the Treeview, that builds dynamic questions sourced from a database) in the RadTabStrip. And the answer to those questions is given by

selection an option in the single column RadGrid.

My questions are:

1. How can I set a default selection in the RadGrid?

2. When a node is selected the RadTabStrip is rebuilt but the page always blinks. How can I

avoid that blinking from the whole page running some server side code like the example here: http://demos.telerik.com/aspnet-classic/treeview/Examples/Programming/ServerSideApi/DefaultCS.aspx?

3. After a node selection and rebuilding the tabstrip pages, the RadTreeView loses the selected node focus. How can I keep the focus on the previously selected node? (it has something to do with that blink, can it be from the PostBack of the page?)

4. How can I load the grid having for each row a value and a text (value is an id related to the text element)?

Thank you all.

Regards

Bruno

Plamen
Telerik team
 answered on 11 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?