Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
351 views
Hi Supporters!

I've used 2 listbox controls ( i called available listbox and selected listbox) in a page. The available listbox is showing all available items which user can select. Other listbox is showing all user selected items. User can select an item or select many items in available listbox, and drag, drop those into selected listbox. This page seems like the demo ListBox page in Telerik website.
Both are support autopostback, drag & drop, multi-select... except reorder.

However, i met a strange behaviour when i drag some items in available listbox and drop to selected one. The order of dragging items are reversed when dropped into target listbox. For example:

Available listbox:
1. Item1.
2. Item2.
3. Item3.
4. Item4.

Selected listbox is empty.

I choose item1,item2,item3 in available listbox and drop into selected listbox. The order of those items is reversed. So the selected listbox has items in order of item3, item2, item1. I expect the selected listbox should keep the same order of source items.

I saw the same result in demo ListBox in Telerik demo site. Is it a bug of ListBox control? or do you have an alternative solution to work around?

Thanks for your attention.
Triet Pham.
Jeff Berry
Top achievements
Rank 2
 answered on 16 Oct 2009
13 answers
266 views
For all of my grids, the data and headings all render one pixel lower in Firefox vs. IE 8.0. In IE8 everything is vertically centered, but in Firefox it is one pixel lower making the data harder to read. Why is this and how can I fix it? I've tested with both the Outlook and Office 2007 skins. I also tried autogenerating the columns so that my formatting could not have any effect, but I still get the same problem. Help please :)?

Thanks,
Levi
Dimo
Telerik team
 answered on 16 Oct 2009
1 answer
147 views
Hi,

I have one xml file which contains tree nodes.
I need to add some nodes to tree based on condition.
And after adding the node i should display the tree structure.

Ex: XML File Contains nodes like - [In XML file I have aronud 250 Nodes like  this so I dont want hard code this in my aspx page.]

Group
    Group Type
Home
    Home Type

After adding new nodes at server side it should look like as below.

Group
    Group Type
        Group Type = 'A'
Home
    Home Type
        Home Type = 'N'

Is there in sample code to demonstrate this scenario in Telerik web site?
Princy
Top achievements
Rank 2
 answered on 16 Oct 2009
3 answers
129 views
hiya,

vs2005.

I've installed Q2 2009. And I try to create a c# telerik webSite frpm the project templates.
It asks for the telerik.ui.dll.
I point it to C:\Program Files\telerik\RadControls for ASP.NET AJAX Q2 2009\Live Demos\Bin

I get a message that informs me that I might lose design time functionality because I haven't referenced the "design.dll".
I ok this, and go ahead.

The project opens, but it only contains a single default.aspx page, and there's no telerik controls on it.

The project compiles ok, but the page is blank.

Any ideas?

Thanks
plamen
Top achievements
Rank 1
 answered on 16 Oct 2009
1 answer
87 views
Hello Developers,

Does anyone know if it's possible to add/chenge the page size options?
by default we have 10,20,50 and if i'd like to put also 70 and 100?

many thanks

cheers,
marco
Princy
Top achievements
Rank 2
 answered on 16 Oct 2009
5 answers
722 views
I have setup the file explorer control on my site but the actual .txt files constantly appear as a black background with black text thus not visible (I know there is text as I can see it when I highlight it blindly).

The url is http://www.theplaygrounds.co.uk/Samples.aspx. Any idea where the problem lies?

Also, how can I increase the size of the popup dialog which appears after double clicking a file?

Thanks
Fiko
Telerik team
 answered on 16 Oct 2009
1 answer
135 views
Hi,

I have looked at a couple of other threads here that have told me how to call a Radwindow from a Radmenu, and my Javascript is getting called, but gives an error.  I think it may be caused because the RadMenu is on a master page, and I am not sure whether RadWindow needs to be on the master page or the content page that is loaded.

My definition has the master page containing the RadMenu with the javascript being executed also on the Master page.  The RadWindow is on the master page as well, but when called gives "object undefined".  The internal calling routine is shown as:

window.radopen=

function(b,a){var c=GetRadWindowManager();

 

return

 

c.open(b,a)

 

};

Where c is returned as undefined.  My values have been passed in b and a correctly.

This is almost working, but I'm not sure whether it's because of the Master Page issue.

David Penny.

Georgi Tunev
Telerik team
 answered on 16 Oct 2009
4 answers
152 views
Hello,
I have a project that uses a pop up RadWindow. The window pops up after the user clicks a button and should stay open until some calculations are made and data entered into the database and the parent page is redirected.  That part works.

On the parent page however are some asp .net validation controls. If the user make a wrong selection or no selection to some controls I need the pop up window to close so the user can make the required selections. Right now the window just stays open. I can't figure out how to close the pop up window if the user makes a mistake on the parent window.

Is there anyway to do this or is there an example you can point me to? I guess all I need is for the pop up window to close if some information is missing or worng on the parent page.
Georgi Tunev
Telerik team
 answered on 16 Oct 2009
1 answer
138 views
In IE8 a basic login page using the ASP:Login control will ask the user if they would like IE to rememeber their password.  If the RadWindowManager is included on that same login page IE8 will not show that prompt.  Also, if IE is already storing a password and I include a RadWindowManager IE will not autocomplete the password field.  However, IE will return to behaving normally if the RadWindowManager control is commented out or removed. 

The markup below can be used to reproduce the issue:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="SandboxWebApp._Default" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"> 
    <title></title> 
</head> 
<body>   
    <form id="form1" runat="server"> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
    <%--<telerik:RadWindowManager ID="RadWindowManager1" runat="server" />--%> 
    <div> 
      <asp:Login ID="Login1" runat="server"> 
      </asp:Login> 
      <asp:LoginStatus ID="LoginStatus1" runat="server" />       
    </div> 
    </form> 
</body> 
</html> 

Georgi Tunev
Telerik team
 answered on 16 Oct 2009
1 answer
236 views
Hi there,

I am developing a Evaluation Control where Questions are listed and I need to get the following from the Grid to save as a 'Answer' to each of the Questions listed in the Grid:

~ The True/False Reply associated to a Question. [Basically which RadioButton is selected.]
~ Then also the Notes associated to a Question. [The Value from the TextBox.]

I am doing all my binding from the Code-behind. So I basically have to iterate through each bound row in the Grid and then persist the 'Answers' whan the Save Button is pressed.

Here is the Grid Markup:

<telerik:RadGrid ID="radgridList" runat="server" AllowSorting="False" AutoGenerateColumns="False" 
        GridLines="none" OnNeedDataSource="radgridList_NeedDataSource"> 
        <MasterTableView Width="100%"> 
            <GroupByExpressions> 
                <telerik:GridGroupByExpression> 
                    <SelectFields> 
                        <telerik:GridGroupByField FieldAlias="Catergory" FieldName="Title"></telerik:GridGroupByField> 
                    </SelectFields> 
                    <GroupByFields> 
                        <telerik:GridGroupByField FieldName="Title" SortOrder="Descending"></telerik:GridGroupByField> 
                    </GroupByFields> 
                </telerik:GridGroupByExpression> 
            </GroupByExpressions> 
            <Columns> 
                <telerik:GridBoundColumn HeaderText="QuestionId" DataField="QuestionId" UniqueName="QuestionId" 
                    Visible="False"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn HeaderText="Body" DataField="Body" UniqueName="Body"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn HeaderText="Weighting" DataField="Weighting" UniqueName="Weighting"> 
                </telerik:GridBoundColumn> 
                <telerik:GridTemplateColumn HeaderText="True" UniqueName="TrueSelection"> 
                    <ItemTemplate> 
                        <asp:RadioButton ID="rbTrue" runat="server" GroupName="Selection" /> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn HeaderText="False" UniqueName="FalseSelection"> 
                    <ItemTemplate> 
                        <asp:RadioButton ID="rbFalse" runat="server" GroupName="Selection" Checked="True" /> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn HeaderText="Notes" UniqueName="Notes"> 
                    <ItemTemplate> 
                        <telerik:RadTextBox ID="txtNotes" runat="server" Width="250px"> 
                        </telerik:RadTextBox> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
            </Columns> 
        </MasterTableView> 
        <ClientSettings> 
            <Selecting></Selecting> 
            <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True" 
                ResizeGridOnColumnResize="False"></Resizing> 
        </ClientSettings> 
        <GroupingSettings ShowUnGroupButton="true" /> 
    </telerik:RadGrid> 
    <div id="bottom" style="float:right; padding-top:10px;"> 
    <asp:Button ID="btnSave" Text="Save" runat="server" CausesValidation="True" onclick="btnSave_Click" /></div> 

Any help as to how best to achieve the above functionality will be much appreciated.

Thanks!
Princy
Top achievements
Rank 2
 answered on 16 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?