Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
797 views
The market leading RadControls for ASP.NET bring unparalleled richness, responsiveness and interactivity to your SharePoint 2007 projects. You can easily incorporate all Telerik ASP.NET UI products into Windows SharePoint Services (WSS) v3 and Microsoft Office SharePoint Server (MOSS) 2007. The integration is a straight-forward process and we supply several resources to help you along the way:

Whitepaper
Screencast

(Download utilities referenced in the Whitepaper and Screencast.)

Although these resources refer to RadMenu, other controls in the Telerik RadControls suite follow the same deployment model and requirements. While the demonstration site used in the resources is a MOSS 2007 Publishing site, these same steps apply to all WSS v3 based sites, including sites created using the Team Site or Blank Site site template.

More information is available at www.telerik.com/sharepoint

Best Regards,
the Telerik team

Sebastian
Telerik team
 answered on 04 Jun 2010
3 answers
119 views
Hi,

I use RadDock, and have the EnableRoundedCorners= true, so i get three table columns in the header which is fine.
But i also get three table columns in the contents area. I need it to be One table-cell with colspan=3 in the contents area. Is this possible?

The issue is, I don't want borders inside the radDock for my content.

regards,
Birger
Pero
Telerik team
 answered on 04 Jun 2010
2 answers
97 views
So i have a grid in a tree...

and if someone sorts that grid, the ajax loading panel spins...

but if they close the tree node that houses the grid... the panel stays even though the grid behind it has been hidden inside the node.

what to do?

http://test.volvoaeroservices.com/parts/320115

sort and then close the node...

open to suggestions :)

thanks!

sircutbreaker
Top achievements
Rank 1
 answered on 04 Jun 2010
3 answers
102 views
Use your version of centre ;)

Ok, I have the following set up:

<telerik:GridTemplateColumn   
    HeaderText="Content"   
    UniqueName="ActivityContent"   
    Visible="false">    
    <EditItemTemplate>    
        <telerik:RadEditor   
            ID="ContentEditor"   
            runat="server"   
            ContentAreaCssFile="~/Assets/Styles/GridHtmlEditor.css" 
            Content='<%# Bind("Content") %>' />    
    </EditItemTemplate>    
    <ItemTemplate>    
        <asp:Label ID="ContentLabel" runat="server" Text='<%# Eval("Content") %>' />    
    </ItemTemplate>    
</telerik:GridTemplateColumn>   

And the stylesheet:

body      
{      
    background-color: white !important;  
    background-image: none !important;  
    color: black;  
    font: 12px Verdana,Arial,Helvetica,Sans-Serif !important;  
    text-align:left !important;  
}     

Works really great but the content will not left-align!

How can I left-align my content?

Richard


Yavor
Telerik team
 answered on 04 Jun 2010
5 answers
335 views
I see that I can add custom fields, and following an example from the forums, I have added a "Title" and "Description" input fields to my upload form.  But not sure what to do now.  How to I get the values of the Title and Description fields into the arguments array of the StoreFile() method?

protected void RadFileExplorer2_ItemCommand(object sender, Telerik.Web.UI.RadFileExplorerEventArgs e)  
        {  
            if (e.Command == "UploadFile")  
            {  
                RadFileExplorer explorer = sender as RadFileExplorer;  
                RadUpload upload = explorer.Upload;  
 
                //e.Path holds the file path  
                string name = e.Path.Split(new char[] { '/' }).Last(); // get the filename including extension ;  
 
                foreach (UploadedFile uploadedFile in upload.UploadedFiles)  
                {  
                    if (name.Equals(uploadedFile.GetName()))  
                    {  
                        string fileName = uploadedFile.GetName();  
                        string title = uploadedFile.GetFieldValue("Title");  
                        string description = uploadedFile.GetFieldValue("Desc");  
 
                        // ********** What do I do now? ***************//  
                        break;  
                    }  
 
                }  
            }  
        } 

From my custom FileBrowserContentProvider:

public override string StoreFile(Telerik.Web.UI.UploadedFile file, string path, string name, params string[] arguments)  
        {  
            int fileLength = Convert.ToInt32(file.InputStream.Length);  
            byte[] content = new byte[fileLength];  
            file.InputStream.Read(content, 0, fileLength);  
            string fullPath = CombinePath(path, name);  
 
            if (!Object.Equals(DataServer.GetItemRow(fullPath), null))  
            {  
                DataServer.ReplaceItemContent(fullPath, content);  
            }  
            else 
            {  
                string title; string description;  
                try 
                {  
                    title = arguments[0];  
                    description = arguments[1];  
                      
                }  
                catch (IndexOutOfRangeException)  
                {  
                    DataServer.CreateItem(name, path, file.ContentType, false, fileLength, content);  
                    return string.Empty;  
                }  
                DataServer.CreateItem(name, path, file.ContentType, false, fileLength, content, title, description);  
            }  
            return string.Empty;  
        } 
Fiko
Telerik team
 answered on 04 Jun 2010
1 answer
176 views
If I'm using the Editor to manage content on a different domain, is there an easy way to set the base URL for the content displayed in the Editor so that images relative to the other domain will resolve?  I see that if I'm editing an entire HTML document, I have the ability to set the "Base location" in the "Page Properties."  Is there a way for me to set this value programmatically?
Rumen
Telerik team
 answered on 04 Jun 2010
2 answers
183 views
hi

how to list directory files in a radcombobox?

please help me..
thanks in advance...
geetha priya
Top achievements
Rank 1
 answered on 04 Jun 2010
1 answer
123 views

1. I have a grid that is created dynamically where col 1 has a dropdown box. Based on what the user selects in col 1,  I should show either a textbox or dropdownlist or datepicker in col 2. How can I accomplish this?

2. Also how do I handle events when the selecteditem in col 1 changes?

The data isn't coming from a datasource, I'll be creating each row programmatically.

Thanks

Yavor
Telerik team
 answered on 04 Jun 2010
1 answer
125 views
I'm attempting to use the Editor to manage content from a web site with a different URL than the site the Editor is hosted in.  I'd like to have the CSS styles drop-down list available styles from that external style sheet and also have that style sheet be applied to the content within the Editor so that it is displayed with the look-and-feel of the web site; however, based on some of the posts on this forum, it doesn't sound like the Editor can use an external style sheet on a different domain.  Is there a simple way to programmatically read the style sheet and add it to the CSS drop-down as well as apply it to the content area?
Rumen
Telerik team
 answered on 04 Jun 2010
1 answer
327 views
Test code below:

aspx
<telerik:RadGrid runat="server" ID="rgContents" AutoGenerateColumns="false"   
        AllowPaging="true" AllowCustomPaging="true" PageSize="10"   
        OnPageIndexChanged="rgContents_PageIndexChanged"   
        OnItemDataBound="rgContents_ItemDataBound">  
        <MasterTableView> 
            <Columns> 
                <telerik:GridTemplateColumn> 
                    <ItemTemplate> 
                        Times: <asp:Literal ID="ltlTimes" runat="server" /> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
            </Columns> 
        </MasterTableView> 
        <PagerStyle Mode="NextPrevNumericAndAdvanced" /> 
    </telerik:RadGrid> 

asp.cs
private int Times  
    {  
        get 
        {  
            return ViewState["Times"] != null ? (int)ViewState["Times"] : 0;  
        }  
        set 
        {  
            ViewState["Times"] = value;  
        }  
    }  
 
    protected void Page_Load(object sender, EventArgs e)  
    {  
        if (!IsPostBack)  
        {  
            Bind();  
        }  
    }  
 
    protected void rgContents_PageIndexChanged(object source, GridPageChangedEventArgs e)  
    {  
        rgContents.CurrentPageIndex = e.NewPageIndex;  
        Bind();  
    }  
 
    protected void rgContents_ItemDataBound(object sender, GridItemEventArgs e)  
    {  
        if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)  
        {  
            Times = Times + 1;  
            Literal ltlTimes = e.Item.FindControl("ltlTimes") as Literal;  
            ltlTimes.Text = Times.ToString();  
        }  
    }  
 
    private void Bind()  
    {  
        var biz = new ContentBiz();  
        var contents = biz.GetAll();  
 
        int pageSize = rgContents.PageSize;  
        int start = rgContents.CurrentPageIndex * pageSize;  
        int count = contents.Count();  
 
        var dataSource = contents.Skip(start).Take(pageSize);  
 
        rgContents.VirtualItemCount = count;  
        rgContents.DataSource = dataSource;  
        rgContents.DataBind();  
    } 

when I change page index post back will fire itemdatabound twice.
I am call rgContents.DataBind() in the rgContents_PageIndexChanged, this line code will cause that.
and when use NeedDataSource will correct, but above code why cannot work correct?

Shinu
Top achievements
Rank 2
 answered on 04 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?