Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
193 views
I have a grid that uses a single template column for display data in each row.  It contains a few labels and linkbuttons, nothing fancy.  Whenever anything in the grid causes a postback, a <td> element is added to the row, causing the linkbuttons to move to the left.  They have their style set to float:right so that they'll line up against the right side of the column.  Every time I click a row or do anything causing a postback (I'm using ajax, so it's not a full postback), a blank <td> gets added to the row.  What could be causing this?  The first <td> contains my template column controls, and then all the other <td> elements are blank, one for each time the page has performed an ajax postback.
Sebastian
Telerik team
 answered on 10 Jul 2009
1 answer
161 views
Is there a way to define the image size for items on the menu.

We are stuck with IE 6 here and are using Angus Turnbull http://www.twinhelix.com fix or PNG alpha transparency. This HTC requires that the images have a size.

One other thought, why is the contol not doing this automatically, do they have suppport for ie 6 PNG problems?

Andy
Kamen Bundev
Telerik team
 answered on 10 Jul 2009
4 answers
1.1K+ views
Hi,

I am trying to duplicate an example from the Grid Demos here but with a few minor differences.  I would like to achieve this serverside if possible.

Instead of counting the number of rows selected (in the example), I want the values of each column within each row selected to be displayed in a separate control (listbox/label/something that can handle multiple selections and values)on the same page.

Example: A user clicks the row(s) they are interested in and the values of every column within the selected row(s) get listed in another control for the user to see.  Basically a shopping cart without using another grid.  These values will be used to send out as fields within an email.

There are LOTS of  great examples I found by Shinu, Princy, and others (a good client-side example for 1 row is here) that demonstrate this functionality with 1 selected row, but I just can't (and don't really know how) seem to paste together multiple row selections and getting their values to another control.  Many of the examples for 1 row at a time look similar to this:
protected void Button3_Click(object sender, EventArgs e)  
{  
    foreach (GridDataItem item in RadGrid1.SelectedItems)  
    {  
        TextBox1.Text = item["ColumnUniqueName1"].Text.ToString();  
        TextBox2.Text = item["ColumnUniqueName2"].Text.ToString();  
        TextBox3.Text = item["ColumnUniqueName3"].Text.ToString();  
        . . .           
    }  
}  
Maybe server-side is a bad way to go?  Is client-side 'better'? Ajax?  Any ideas? Thanks. Joe
Joe
Top achievements
Rank 1
 answered on 10 Jul 2009
1 answer
113 views
How do I make the text a clickable hyperlink:

 <telerik:RadTicker AutoStart="true" runat="server" ID="Radticker1" Loop="true" Font-Size="Smaller" 
      LineDuration="8000" TickSpeed="5">  
<Items> 
<telerik:RadTickerItem>TURKEY: Stocks go up after a surge in investor confidence.</telerik:RadTickerItem> 
<telerik:RadTickerItem>ROMANIA: Privatization drives the stock market this week.</telerik:RadTickerItem> 
<telerik:RadTickerItem>BULGARIA: Government plans for a new wave of privatization.</telerik:RadTickerItem> 
</Items> 
</telerik:RadTicker> 

I have seen the demo but still don't get how to do it ...

TT
Fiko
Telerik team
 answered on 10 Jul 2009
2 answers
229 views
Below is a simple example using a fieldset decorated with the form decorator.  If you remove the form decorator, in both FF3 and IE7, the fieldset spans the entire width of the screen.  If you include a form decorator on this page, however, IE7 collapses the width of the fieldset to the minimum amount necessary to show the contents.  I need the fieldset to render consistently in both browsers.

Something in the formdecorator is causing this to happen.  I've duplicated the issue on both the Q3 2008 and Q1 2009 releases.  I've tried setpping thru some the ScriptResource.axd calls (where I suspect the fieldset is being resized with javascript) in vs.net, but wasn't able to decipher them.  Can someone help me with this?

Thanks,

Zac

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FieldsetTest.aspx.cs" Inherits="Symbio.Web.FieldsetTest" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>

    <form id="form1" runat="server">
    
    <asp:ScriptManager runat="server" ID="ScriptManager"></asp:ScriptManager>        
    <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="All" Skin="WebBlue"></telerik:RadFormDecorator>

    <div>
    
        <fieldset>
            <legend>test legend</legend>
            test contents
        </fieldset>
    
    </div>
    </form>
</body>
</html>
Matthew
Top achievements
Rank 1
 answered on 10 Jul 2009
3 answers
115 views
Hi All,

<telerik:RadCalendar FirstDayOfWeek="Monday" ID="Calendar" runat="server" Skin="Default" TitleFormat="MMMM yyyy" Width="500px" Height="400px" ShowOtherMonthsDays="false" AutoPostBack="true" OnDayRender="Calendar_OnDayRender" TitleStyle-Height="10px" ShowRowHeaders="false" HeaderStyle-Height="10px">
</telerik:RadCalendar>

While increasing the height width of calendar, if I'll select multiple dates it'll post back page and then the cell effect with selected date will be spoiled.

How to deal with this problem?

Thanks in advance.
Iana Tsolova
Telerik team
 answered on 10 Jul 2009
5 answers
119 views
Hi,
    I am openoing a page in radwindow .when first time i open page page load event
is fired but after closing the radwindow and on again opening it pageload event not fired.
i am using IE 7.0 but in firefox pageload event is fired..
Please Help.
Shweta S
Top achievements
Rank 1
 answered on 10 Jul 2009
2 answers
112 views
Hi ,
           I have a check box grid. Once i select a row it gets high lighted. Please can you tell me how do i remove the highlight. It makes the grid look ugly.

Thank you

Regards,
Ajit
ajit
Top achievements
Rank 1
 answered on 10 Jul 2009
1 answer
101 views
Ok I have a dynamic menu which consists of dynamically generated images. Since these images are generated dynamically there are no heights and widths associated with them.

The menu has two levels and I would like the child group to be displayed starting beneath the first item of the menu, not directly below its parent! The reason is that the child group will actually span too long if it's directly below its parent item.

I want it like this:

| PARENT 1 | PARENT 2 |
| CHILD 1 | CHILD 2 | CHILD 3 |

The following JavaScript works if I don't use Images, only text, but unfortunately it doesn't work with images!

Can anyone help me please

    function OnClientLoad(sender, args) { 
 
 
        var counter = 0; 
        var width = 0; 
        menu = sender; 
        var temp = 0; 
        for (var i = 0; i < menu.get_allItems().length; i++) { 
            width = 0; 
            var item = menu.get_allItems()[i]; 
            if (item.get_level() == 1) { 
                var parent1 = item.get_parent(); 
                var parent2 = parent1.get_parent(); 
                var items = parent2.get_items(); 
                for (var j = 0; items.getItem(j).get_text() != parent1.get_text(); j++) { 
                    widthwidth = width + items.getItem(j)._getWidth();    
                } 
                parent1.get_groupSettings().set_offsetX(0 - width); 
                } 
 
        } 
 
 
    } 

Atanas Korchev
Telerik team
 answered on 10 Jul 2009
1 answer
144 views
Hello Everyone,


I am in a problem. I have taken a rad combobox and i have to bind items in combobox.
Items are arround 2500. when i am binding this, a warning is coming "script on this page is causing internet explorer to run slowly".
and when i select an item from this combobox it was opening and closing dropdowns very slowly.
i am binding data using the following method:

 

for (var rowIndex = 0; rowIndex < table.rows.length; rowIndex++) {

 

 

var rows = table.rows[rowIndex];
comboItem = new Telerik.Web.UI.RadComboBoxItem();

 

comboItem.set_text(rows.crm_sug_country);

comboItem.set_value(rows.crm_sug_country);

countryControl.get_items().add(comboItem);
}

 

countryControl.commitChanges();



Does anyone knows what is the best way to bind items in combobox ?
I am holding these tables in javascript arrays. can we load items from this array on demand as like server side?

Please tell me ASAP....

I will be highly oblized to yours..>>>>>>>>>>>>>>>

Thanks & Regards
Brijendra pandey
Simon
Telerik team
 answered on 10 Jul 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?