Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
500 views


If I had long text in table cell. eg:
    "the quick brown fox jumped over the gate"

I would click to clip the Text in the cell like this:
    "the quick brown ...."

I DON'T want it to wrap on many lines eg
    "The quick brown 
    fox jumped over 
    the gate"

I have tried nowrap. did not work


Dimo
Telerik team
 answered on 19 Jan 2009
3 answers
124 views
Can anybody help me the list of elemets for styling the Radgrid e.g. (color,text-align,background-color)
Shinu
Top achievements
Rank 2
 answered on 19 Jan 2009
0 answers
58 views
Hi,

After clicking "All day" checkbox inside adv edit, take a look on the start time and end time inputs - their font styles are lost. Forecolor turns to black and sometimes font family is changed. It happens only under IE.

It can be observed at online demos too.

Rycho
Rycho
Top achievements
Rank 1
 asked on 19 Jan 2009
2 answers
158 views
Hi guys,

I think this is a basic question. Is there anyway I can stop the auto wrapping of the rad panel item?
The "Item 3" has long text.

Right now the output is like this:
=============
Item 1
=============
Item 2
=============
item 3 long text,
long text, long te
xt, long text, long
text
=============
Item 4
=============

We tried to use - white-space: nowrap; - in css but not working. Or, maybe we're doing something wrong.

.RadPanelItemThingy
{
 background-image: url('/_layouts/images/PanelSelected.gif');
 background-repeat: no-repeat;
 width:190px;
 height:25px;
 font-family:Arial;
 font-weight:bold;
 font-size:12px;
 padding-left:10px;
 line-height:25px;
 white-space: nowrap;
 color:#FFFFFF
}

Regards,
Juan
juan
Top achievements
Rank 1
 answered on 19 Jan 2009
6 answers
312 views
Hi all,
here is the problem I ran into while seeing how far I could complicate a demo and then got stumpd :-)

I wanted a detailsview with ofcourse its own datasource but then use the demo example of the 3 comboboxes to limit user options when editing. As far as I can tell a externalcallpage is best.

However I dont know if should put the javascript on the externalcallbackpage or on the default page with the detailsview using findcontrol?

The second part Im not sure about is what goes into the backend of the default page. I found a couple examples for a Grid view but I think that has gotten me more lost than not. Was wondering if someone could do a quick example of hadling the 3 combobox demo nested in a detailsview? As I have never used a externalcallbackpage and only simple detailsviews.

Thanks in advance for any help

Anon


Anon
Top achievements
Rank 1
 answered on 18 Jan 2009
1 answer
115 views
I'm using the RadGrid in DNN and everything works great.

However, I'm trying to implement a custom filter.  Here's what I've got:

The header of my .ascx (Notice the "Register" directive):

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="admin.ascx.cs" Inherits="DesertedRoadStudios.Modules.DiscipleHatTournament.admin" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<%@ Register TagPrefix="custom" Namespace="DesertedRoadStudios.Controls" %> 
 
 

A few lines down, I have a RadGrid control with the registered control as one of my columns:

            <custom:GenderCustomFilter UniqueName="gender" DataField="gender" HeaderText="Gender" /> 
 

In the code-behind:

namespace DesertedRoadStudios.Controls  
{  
    public class GenderCustomFilter : GridBoundColumn  
    {  
        //RadGrid calls this method when it initializes the controls inside the filtering item cells  
        protected override void SetupFilterControls(TableCell cell)  
        {  
            base.SetupFilterControls(cell);  
            cell.Controls.RemoveAt(0);  
            DropDownList list = new DropDownList();  
            list.ID = "list" + this.DataField;  
 
            list.AutoPostBack = true;  
            list.SelectedIndexChanged += new EventHandler(list_SelectedIndexChanged);  
            list.Items.Add("Male");  
            list.Items.Add("Female");  
            cell.Controls.AddAt(0, list);  
            cell.Controls.RemoveAt(1);  
        }  
 
        void list_SelectedIndexChanged(object sender, EventArgs e)  
        {  
            GridFilteringItem filterItem = (sender as DropDownList).NamingContainer as GridFilteringItem;  
            filterItem.FireCommandEvent("Filter"new Pair("Contains"this.UniqueName));  
        }  
 
        //RadGrid calls this method when the value should be set to the filtering input control(s)  
        protected override void SetCurrentFilterValueToControl(TableCell cell)  
        {  
            base.SetCurrentFilterValueToControl(cell);  
            DropDownList list = (DropDownList)cell.Controls[0];  
            if (this.CurrentFilterValue != string.Empty)  
            {  
                list.SelectedValue = this.CurrentFilterValue;  
            }  
        }  
          
        //RadGrid calls this method to extract the filtering value from the filtering input control(s)  
        protected override string GetCurrentFilterValueFromControl(TableCell cell)  
        {  
            DropDownList list = (DropDownList)cell.Controls[0];  
            return list.SelectedValue;  
        }  
 
        protected override string GetFilterDataField()  
        {  
            return this.DataField;  
        }  
    }  
 
}  
 


Please notice a few things...

The .ascx inherits "DesertedRoadStudios.Modules.DiscipleHatTournament.admin" and the in the code-behind the public partial class "DesertedRoadStudios.Modules.DiscpleHatTournament.admin" inherits PortalModuleBase (what its suppose to inherit for DNN).

However, at the END of the code-behind, I create a new namespace "DesertedRoadStudios.Controls" in which I place the custom filter "GenderCustomFilter" that inherits the GridBoundColumn.

I thought this would be okay, but perhaps, I'm not setting up the "Register" directive correctly. Nonetheless, the control "<custom:GenderCustomFilter />" cannot be located. How do I do this correctly without having to compile classes and install them into the DNN BIN folder?

Thanks,
Joshua
Joshua
Top achievements
Rank 1
 answered on 18 Jan 2009
2 answers
116 views
Hello,
If you have seen the Vistaprint.com business card builder, I'm trying to build something similar (without spending 3 month writing custom JavaScript)
Do you guys think using the RadDock like this: http://67.199.68.133/vista.aspx is a smart choice?

Also, I there a way to force the end user to drop the dock only onto the white square, without the snap-locking into place action?

thanks!
LUIS
Top achievements
Rank 1
 answered on 17 Jan 2009
0 answers
252 views
Please delete this topic. This was my mistake (I used wrong RadGrid for exporting).
GrZeCh
Top achievements
Rank 2
 asked on 17 Jan 2009
0 answers
47 views
Hello,

The scheduler stops responding when we set its TimeLabelRowSpan property to zero. It works well with other integer numbers.

Shailaja
shailaja
Top achievements
Rank 1
 asked on 17 Jan 2009
1 answer
114 views
I have RadGrid in user control that contains Javascript and i need to export code to external .js file. I can't figure out what i'm doing wrong.

If i have 2 user controls on page i get 2 copies of Javascript functions in main page.
Murray
Top achievements
Rank 1
 answered on 16 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?