Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
91 views
hi,

In this link we can see that drag and drop an item from a listbox to one listbox. In example using "TransferToID" propert we can transfer an item one to one. Now, I have 3 listbox  which are names a,b,c. I want to transfer items from a to b and from a to c.

How can I do that?

Baris
Top achievements
Rank 1
 answered on 07 Feb 2014
1 answer
54 views
Version 2010.3.1317.20 (it's a .NET 2.0 site)

Protected Sub grdMaintReceived_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles grdMaintReceived.ItemDataBound
    If TypeOf e.Item Is GridDataItem Then
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
        Dim deactivated As Boolean = DirectCast(item("deactivated").FindControl("checkDeactivated"), CheckBox).Checked
        Dim contractBtn As LinkButton = DirectCast(item("service_provider_name").Controls(0), LinkButton)
        If deactivated Then
            contractBtn.Enabled = False
        End If
    End If
End Sub

This code removes the underline from the links but the user can mouse over the text, making the underline come back and click the button.  How can I stop this?
Princy
Top achievements
Rank 2
 answered on 07 Feb 2014
1 answer
117 views
I have a RadGrid which contains several GridBoundColumn. But no matter what I put in the filter template, It's just not showing!! I wonder how the filter template is triggered? AllowFilteringByColumn is already set as true for the whoke grid.

Please help me~~

        <telerik:GridBoundColumn UniqueName="topper" HeaderText="Global Client Company-test filter" DataField="topper" HeaderStyle-Width="300px">
        
        
        <FilterTemplate>
                            <asp:DropDownList ID="cbbDiscontinued" AutoPostBack="true" runat="server">
                    <asp:ListItem Text="All" Value="-1"></asp:ListItem>
                    <asp:ListItem Text="Active" Value="1"></asp:ListItem>
                    <asp:ListItem Text="Lock" Value="0"></asp:ListItem>
                </asp:DropDownList>
        </FilterTemplate>

        </telerik:GridBoundColumn>
Princy
Top achievements
Rank 2
 answered on 07 Feb 2014
4 answers
197 views
Hi,

I have a rad Grid in my page with "EnableHeaderContextMenu" set to true as well as "AllowColumnResize" set to true.
<Resizing ResizeGridOnColumnResize="false" AllowResizeToFit="true" AllowColumnResize="true"/>.
Prob:
When i remove some columns using headercontextmenu, the grid is getting resized an d i can see a white space at the end of grid, until a postback happens.
I tried setting "AllowColumnResize" to false, then it works fine. But i want both columns to be either resized or removed using header context menu. In both the cases grid should not be resized.
Farjana
Top achievements
Rank 1
 answered on 07 Feb 2014
1 answer
77 views
I'am using radMultipage. If I add the radpageviews at aspx like that
      

  

        <telerik:RadMultiPage ID="RadMultiPage1" Runat="server" OnPageViewCreated="RadMultiPage1_PageViewCreated">
                    <telerik:RadPageView ID="RadPageView1" runat="server" Height="159px" Width="163px">
                        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                        <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click"/>
                    </telerik:RadPageView>
        
                    <telerik:RadPageView
    
     ID="RadPageView2" runat="server" Height="159px" Width="163px">
                    <asp:Label ID="Label2" runat="server" Text="Label">
                    </asp:Label>
                    <asp:Button ID="Button2" runat="server" Text="Button" OnClick="Button2_Click" />
                </telerik:RadPageView>
            </telerik:RadMultiPage>

at code behind I use that 

    Label2.Text = "asdasdasas";


but it if I add the radpageviews at runtime like that

            Telerik.Web.UI.RadPageView dataSelectionPV = new Telerik.Web.UI.RadPageView();
            dataSelectionPV.ID = "dataSelectionPV";
            System.Web.UI.Control ctrl = Page.LoadControl("DevelopmentSample.ascx");
            dataSelectionPV.Controls.Add(ctrl);

            Telerik.Web.UI.RadPageView outOfTimeSamplePV = new Telerik.Web.UI.RadPageView();
            outOfTimeSamplePV.ID = "outOfTimeSamplePV";
            System.Web.UI.Control ctrl2 = Page.LoadControl("OutOfTimeSample.ascx");
            dataSelectionPV.Controls.Add(ctrl2);

I cant reach label2 at runtime at code behind. So ı cant write 

Label2.Text = "asdasdasas";


at runtime how can I reach items in pageview which adds to multipage dynamicly?
Shinu
Top achievements
Rank 2
 answered on 07 Feb 2014
7 answers
221 views

Hello All

When you select a column in RadGrid as "read only" it will be hidden in Edit and Insert mode, I have a requirement to show it, but I don’t know how to do this with Ajax RadGrid? If I put the EditMode="InPlace"  

It appear as label which is good but I wanted to use the EditMode="EditForms"

It I Use this it disappears, Can someone please update me how to resolve this issue. I don’t not want to use template column that will increase huge work on my end

Thanks in advance

Syed Qazafi

Princy
Top achievements
Rank 2
 answered on 07 Feb 2014
6 answers
472 views
Hi ,
I want to make RadGrid Responsive to screen  size.
For Eg:
If I am opening RadGrid in Resolution 1024*786
Then
PageSize=10 and height=360px


If I am opening RadGrid in Resolution 1920*1080
Then
PageSize=15 and height=500px

So that user using bigger resolution monitor can see more data in single page without scroll.

Obvious user can change the page size from the dropdown later from UI to see more records.


Kindly please suggest how to achieve this requirement
Jayesh Goyani
Top achievements
Rank 2
 answered on 07 Feb 2014
2 answers
72 views
I have 2 radcombobox in the GridTemplateColumn, is it possible that when I choose an item in combox #1, it will cause combox#2 to refresh with a new set of data?  I don't care if I accomplish this from serverside or clientside coding.

Thanks!
Princy
Top achievements
Rank 2
 answered on 07 Feb 2014
5 answers
158 views
Can we make in the The Rad File Explorer show small thumbs of the images in the file list?
Shinu
Top achievements
Rank 2
 answered on 07 Feb 2014
3 answers
175 views
Hi,

I have requirement where I have to build a tree view which has skills in it and they are categorized under different domains.
As the data tree has almost 8 levels of drilldown we went with Load on demand mode as the page will be responsive and lite.
But make it easier for the users we are providing them search option where they type in the skill and ajax suggestion come in showing the skills available with the name under different parent nodes.
But to make it even easier we are providing suggestions with radio buttons when user select them they tree will be expanded to that particular skill.

I'm using the following function to expand the tree 
        function findNodes(node, searchString) {
            var nodesarray = new Array();
            nodesarray = searchString.split(".");
            for (var i = nodesarray.length - 1; i >= 0; i--) {
                if ((node.get_value() == nodesarray[i]) && i!=0) {
                    node.set_expanded(true);
                    node.set_visible(true);
                    for (var j = 0; j < node.get_nodes().get_count(); j++) {
                        findNodes(node.get_nodes().getNode(j), searchString);
                    }
                } else if ((node.get_value() == nodesarray[i]) && i == 0) {
                node.set_checked(true);
                }

            }
This function works fine with tree view which is already preloaded but doesn't work with load on demand tree.
It fails at 

   for (var j = 0; j < node.get_nodes().get_count(); j++) {
                        findNodes(node.get_nodes().getNode(j), searchString);
                    }
to be specific node.get_nodes().getNode(j),
It can expand the first level but not able to get nodes after that ...
Any suggestions or workarounds ?

Regards,
Mohan
Princy
Top achievements
Rank 2
 answered on 07 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?