Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
205 views
I would like to have fixed column widths on a grid and not allow a row to wrap onto multiple lines.  The way I've achieved this is to:-

1. Set TableLayout="Fixed"

2. Set fixed sizes in the ColumnCreated event...

        If (TypeOf e.Column Is GridBoundColumn) Then
            CType(e.Column, GridBoundColumn).HeaderStyle.Width = 140
            CType(e.Column, GridBoundColumn).DataFormatString = "<nobr>{0}</nobr>"
        End If

3. Apply a CSS Class to ItemStyle and AlternatingItemStyle...

            <ItemStyle CssClass="grid-row" />
            <AlternatingItemStyle CssClass="grid-row" />

4. My CSS Class is defined as follows...

            .grid-row td {overflow:hidden;}


Is this the best way to achieve this or is there a built in way or preferred way?

Thanks
Chris
Top achievements
Rank 2
 answered on 09 Jul 2009
1 answer
235 views
Hi,
I am trying to set focus and then validate RadCaptcha using javascript. But I could't find any resource about Client API's of Captcha. Do you have any documentation? Or could you please show me how will I validate Captcha with javascript. 
I use the code below to set focus to captcha? Please tell me where am I wrong?
        $find('<%=myCaptcha.ClientID %>').set_focus(); 

I would appreciate it a lot, if you could share any documentation about client support of captcha.
Thanks in Advance.
Aytaç Utku TOPAL
Pero
Telerik team
 answered on 09 Jul 2009
1 answer
230 views

I used telerik menu to display Icon and text vertically so I have written following code it display Icon and text but text not display in center of the image.

My requirement is that I have to display text in bottom of the image and also it should be in center.

 

<telerik:RadMenu ID="RadMenu1" runat="server" DataSourceID="SiteMapSetup" OnItemDataBound="RadMenu1_ItemDataBound" DataNavigateUrlField="url" Flow="Vertical"   >

</telerik:RadMenu>

 

protected void RadMenu1_ItemDataBound(object sender, Telerik.Web.UI.RadMenuEventArgs e)

{

        SiteMapNode node = (SiteMapNode)e.Item.DataItem;

        e.Item.ImageUrl = node["ImageURL"];

        e.Item.Text ="<br><br><br>" +  node["text"] ;

}

Yana
Telerik team
 answered on 09 Jul 2009
3 answers
115 views
Hi All,

  I am facing below issues in radGrid when running my page in different browser.

(1) The cell contents gets overlapped  to next cell if the size of text increases then the cell width

 I have tried out the below style as posted in another thread for wrapping issue of mozilla

.GridRow_Default

 

td,

 

.GridAltRow_Default

 

td

 

{

 

overflow: hidden;

 

}

My Client settings for grid are 

 

 

<Resizing ClipCellContentOnResize="true" AllowColumnResize="true" ResizeGridOnColumnResize="true" />

 

Dimo
Telerik team
 answered on 09 Jul 2009
1 answer
68 views
Is it possible to force a user who double clicks a file using FileExplorer to only
save the file vice opening in new RadWindow?  Thanks in advance.

Joshua
Fiko
Telerik team
 answered on 09 Jul 2009
1 answer
392 views
Hi all,

I'am currently evaluating the Telerik ASP.NET AJAX Controls.
I'am missing the functionality to invoke a AJAX Request which should call a function in the codebehind class asynchronly by providing a callbackfunction. The codebehindclass should return a value and call the callbackclass i provided with the returnvalue.

This works with WebServices which i registered within the ScriptManager but i think there must also be posibillity to do this with the CodeBehind Class. I've seen som peoples doing this, by using the function:
private void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
 
//code to handle the generic AJAX request
}

But then i need to return the value by putting it into a hidden input field. Thats no solution for me because i have several asynchron requests.

I hope you can help me.

Thank you

Alex



Veli
Telerik team
 answered on 09 Jul 2009
3 answers
207 views
Hi There,

I'm wondering if anyone has attempted this before and can possibly point me in the right direction. I have a rather long list of company names and would like to be able to group them alphabetically, with the letter of the alphabet being the title for the group. So it would look something like:
A
ABC Company
Apple Company
B
BCD Company
Banana Company

Any ideas? I assume this would be a Custom GroupByExpression but I have very limited experience with the Telerik Grid (this is for a SItefinity project that uses the grid). Any help would be greatly appreciated!

Cheers,
Phill
Phill Hodgkinson
Top achievements
Rank 1
 answered on 09 Jul 2009
4 answers
183 views

Greetings,

I have a page that has a CheckboxList on it which needs to have tooltips also.  Seeing how CheckboxLists don't have that option, I decided to try using  a RadToolTip.  There is a problem though.  It causes an error.  Here is what I have thus far.

public void SetSelectedModules(DTOCoP cop)  
{  
            string url = BuildURL(Request.Url.ToString());  
 
            foreach (ListItem li in cblModules.Items)  
            {  
                var hit = (from a in cop.Modules where a.ModuleID == Int32.Parse(li.Value) select a).FirstOrDefault();  
                li.Selected = hit.Selected;  
                RadToolTip tip = new RadToolTip();  
                tip.RelativeTo = ToolTipRelativeDisplay.Element;  
                tip.Text = hit.Description;  
                tip.TargetControlID = li.Attributes["ID"];  
                tip.IsClientID = true;  
                this.cblModules.Controls.Add(tip);  
            }  
} 

This is called during PageLoad, after setting the DataSource of the CheckboxList (cblModules).  The page loads fine till I click on one of the Checkboxes, in which I get an error saying "Input string was not in a correct format."  The only input I have is tip.Text, which receives a string.  If anyone has any ideas, or has a better way of instantiating a RadToolTip for a CheckboxList, I'll be thankful.  Thanks.

~Chad Johnson
Chad Johnson
Top achievements
Rank 1
 answered on 09 Jul 2009
3 answers
134 views
I have requirement to move copies of  docks from one zone to another zone. I did not get any demo example on telerik site.
please suggest me how to implement using dock components with some source code as early as possible.

Waiting for reply,

Rajeev Kumar
Pero
Telerik team
 answered on 09 Jul 2009
1 answer
122 views
hiya,

I need to be able to give the text a "wave" effect, ie the1st character begins at a specific height, then 2nd character a bit higher, the 3rd, a bit higher still, then the 4th char moves down to the same height as that of the 2nd, the 5th char to that of the 1st, then the 6th char moves down to BELOW the hight of the 1st...  etc.

Hope the above explanation makes sense.
Can it be done with the radRotator?

Many thanks,

yogi
Fiko
Telerik team
 answered on 09 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?