Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
135 views
Hi,

I am using Google Map API.
When i use spliter with the MAP at that time it is not render.

Regards,
Parthesh
Tsvetie
Telerik team
 answered on 21 Apr 2010
1 answer
89 views
Hello,

We're curious if there is a way to utilize the great ConvertToXhtml filter functionality server-side.  

We have some database fields that allow HTML and we're in the process of developing reports that then return the HTML to the user in the form of a Word document.  The document generator we use to process and serve the documents only allows Xhtml compliant html and is very strict.  Problem is, before we implemented Telerik's ASP.NET AJAX RadEditor we allowed (I know it's very bad practice) bits of malformed HTML into the database.  We've since added the ConvertToXhtml filter to the editors.

Do you know of a way to get access to the filter functionality server-side?

I found a post a while back that had some javascript that would achieve what we'd like but we're between a rock and a hard place trying to call back to client-side, perform the filter, then return to the server.  Here is the code I came across:

    <script type="text/javascript"> 
        function SetContent(content) 
        { 
            var editor = $find("reContent"); 
            editor.set_html(content); 
        } 
         
        function GetContent() 
        { 
            var editor = $find("reContent"); 
            editor.get_html(true); 
        } 
    </script> 


Any help?

Thanks in advance!
Allen
Rumen
Telerik team
 answered on 21 Apr 2010
2 answers
155 views
Hi
     Is there any control which is equivalent to Ajax tool kit AlwaysVisibleControl (http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/AlwaysVisibleControl/AlwaysVisibleControl.aspx)in Telerik control. My requirement is to place a set of control in my form which is always visible mode(not depend on the form scroll bars).
Sree
Top achievements
Rank 1
 answered on 21 Apr 2010
3 answers
506 views
Hi,
    I have a radgrid with command item template.

 

This template has Add Icon and Delete Icon.
I want to make Add icon to be disabled/invisible in certain conditions.
How can we achieve this from code-behind?


Thanks.

Shinu
Top achievements
Rank 2
 answered on 21 Apr 2010
1 answer
124 views
I have 2 Radgrid ,1st Radgrid shows detail data with grouping and 2nd Radgrid shows total count ,i want to export data from both Radgrid to one excel file ,dataset for both Radgrid are different.

for this i have taken one another Parent Radgrid inside the div tag and above 2 Radgrids are inserted into the ItemTemplate column of
Parent RadGrid,data for both child Radgrid  binds on the Item_DataBound event of Parent Radgrid.Visibilty of div tag for Parnt Grid set to hidden.

I have used  "GridGroupByExpression" and " GridGroupByField" for grouping of 1st Child grid

Data successully bind to both child Radgrid and for export to excel i have used "RadGrid.MasterTableView.ExportToExcel()"syntax
Data for both child Radgrid shows in one excel file

but my issue is that after exporting  "grey colour patches"  are shown in excel sheet for 1child Radgrid with grouping .
due to which data is not properly visible and overlapped by the grey colur patches.please find the attached file "Report1.xls" for reference.

on removing the grouping "grey colour patches"  are not visible.

Any help or suggetion on  how to remove "grey colur patches " will be Grateful.

setting for Parent  Radgrid  OpenInNewWindow="True" IgnorePaging="True" ExportOnlyData = "false"

code snippet for Grouping:

GridGroupByExpression expression = new GridGroupByExpression();
            GridGroupByField gridGroupByField;

            gridGroupByField = new GridGroupByField();
            gridGroupByField.FieldName = ApplicationConstants.Reports.Name;
            gridGroupByField.HeaderText = "Report";
            gridGroupByField.HeaderValueSeparator = " : ";
            gridGroupByField.FormatString = "<strong>{0}</strong>";
            expression.SelectFields.Add(gridGroupByField);

         
            gridGroupByField = new GridGroupByField();
            gridGroupByField.FieldName = ApplicationConstants.Reports.Name;
            expression.GroupByFields.Add(gridGroupByField);



Code snippet for Export to excel:

            RadGrid.ExportSettings.OpenInNewWindow = true;
            RadGrid.Page.Response.ClearHeaders();
            RadGrid.Page.Response.Cache.SetCacheability(HttpCacheability.Private);

            RadGrid.ExportSettings.ExportOnlyData = false;
            RadGrid.ExportSettings.Excel.Format = GridExcelExportFormat.Html;
            RadGrid.MasterTableView.ExportToExcel();


   Environment details:

   Asp.Net  3.5 version
  OS : Windows server 2003
  Internet explorer : ie 6.0







Daniel
Telerik team
 answered on 21 Apr 2010
1 answer
56 views
Hi all,
  I haven't found any thread about common mistakes and pitfalls when using RAD controls.
Does such list exsist somewhere, if not I think it would be a nice thing to have.

Yours
    Bjössi
Sebastian
Telerik team
 answered on 21 Apr 2010
1 answer
122 views
Hello,

It seems I am having an issue with the grid adding un-needed functionality to my grid.  Specifically, I am trying to create an list of news articles, sorted by month (Jan, Feb, etc.) with the articles listed within each month.  I am NOT using skins for the control, and instead, using standard HTML code to format the list since our site is not using anything fancy at this moment.

What I would like to do is not have the button to allow the expanding/collapsing of the categories (see attached screen shot).  I tried using the documentation at this link (http://www.telerik.com/help/aspnet-ajax/grdpreventgroupsexpansion.html)  but it seems as though the code behind is not being read at runtime.  I am putting my code below so you can see how I have done this.  A quick response is greatly appreciated.  Thank you!

Kevin

The HTML:
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
    </telerik:RadScriptManager> 
        <telerik:RadGrid  
        ID="gridNews" 
        runat="server"  
        AutoGenerateColumns="false"  
        ShowHeader="false" EnableEmbeddedSkins="False"> 
<HeaderContextMenu EnableEmbeddedSkins="False"></HeaderContextMenu> 
 
        <MasterTableView DataKeyNames="NewsID" GroupLoadMode="Server"> 
                <GroupByExpressions>         
                    <telerik:GridGroupByExpression> 
                        <SelectFields> 
                            <telerik:GridGroupByField FieldName="MonthYear" HeaderText=" " SortOrder="None"></telerik:GridGroupByField>                                                         
                        </SelectFields> 
                        <GroupByFields> 
                            <telerik:GridGroupByField FieldName="MonthYear" HeaderText=" " SortOrder="Descending"></telerik:GridGroupByField>                            
                        </GroupByFields> 
                    </telerik:GridGroupByExpression>            
                </GroupByExpressions> 
            <Columns> 
            <telerik:GridTemplateColumn HeaderText="Date" GroupByExpression="Month Date Group By Month" DataType="System.DateTime" > 
            <ItemTemplate> 
            <b> 
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("dtNewsDate") %>' DataType="System.DateTime" ></asp:Label></b> 
                <p> 
                    <b> 
                        <asp:Label ID="lblPublication" runat="server" Text='<%# Eval("strPublication") %>'></asp:Label></b><br /> 
                    <b> 
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("strArticleLink") %>' 
                            Target="_blank"> 
                            <asp:Label ID="lblArticleTitle" runat="server" Text='<%# Eval("strArticleTitle") %>'></asp:Label> 
                        </asp:HyperLink></b> 
                    <br /> 
                    <asp:Label ID="lblArticleSynopsis" runat="server" Text='<%# Eval("strArticleSynopsis") %>'></asp:Label> 
                    <br /> 
                </p> 
            </ItemTemplate> 
            </telerik:GridTemplateColumn> 
            </Columns> 
 
<EditFormSettings> 
<EditColumn InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif" EditImageUrl="Edit.gif" CancelImageUrl="Cancel.gif"></EditColumn> 
</EditFormSettings> 
        </MasterTableView> 
 
            <ClientSettings AllowExpandCollapse="False"> 
                <Resizing AllowColumnResize="True" /> 
            </ClientSettings> 
 
<FilterMenu EnableEmbeddedSkins="False"></FilterMenu> 
    </telerik:RadGrid> 

The code-behind:
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using Telerik.Web.UI; 
 
public partial class AboutUs_NewsRoom_News : System.Web.UI.Page 
{ 
    protected void Page_Load(object sender, EventArgs e) 
    { 
        Master.imgHeroTitle = "~/img/hero-news.gif"; 
        Master.HeroClass = "hero_"; 
        ucAboutNav1.NewsPanel = true; 
 
        if (!IsPostBack) 
        { 
            LoadGrid(); 
        } 
 
    } 
    public void LoadGrid() 
    { 
        gridNews.DataSource = new List<string>(0); 
        gridNews.DataBind(); 
        gridNews.DataSource = MainName.core.CMS.News.GetNewsList(); 
        gridNews.DataBind(); 
 
        MainName.core.CMS.News n = new MainName.core.CMS.News(); 
        n.dtNewsDate.Month.ToString(); 
    } 
 
    protected void gridNews_ColumnCreated(object sender, GridColumnCreatedEventArgs e) 
    { 
        if (e.Column is GridGroupSplitterColumn) 
        { 
            e.Column.HeaderStyle.Width = Unit.Pixel(1); 
            e.Column.HeaderStyle.Font.Size = FontUnit.Point(1); 
            e.Column.ItemStyle.Width = Unit.Pixel(1); 
            e.Column.ItemStyle.Font.Size = FontUnit.Point(1); 
            e.Column.Resizable = false; 
        } 
    } 
    protected void gridNews_ItemCreated(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridGroupHeaderItem) 
        { 
            (e.Item as GridGroupHeaderItem).Cells[0].Controls.Clear(); 
        } 
    } 

Pavlina
Telerik team
 answered on 21 Apr 2010
1 answer
131 views
I have the following code on item command

 

protected void RadGrid_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

if (e.CommandName == RadGrid.InitInsertCommandName)

 

{

 

// cancel the default operation

 

e.Canceled =

true;

 

 

//Prepare an IDictionary with the predefined values

 

System.Collections.Specialized.

ListDictionary newValues = new System.Collections.Specialized.ListDictionary();

 

 

//set default checked state for the checkbox inside the EditItemTemplate

 

newValues[

"SET0"] = false;

 

 

//Insert the item and rebind

 

e.Item.OwnerTableView.InsertItem(newValues);

}

}

This sets the dafault value of a checkbox to false on an insert.
When there is data in the table already this works but if the table is empty I get
"Sys.WebForms.PageRequestManagerServerErrorException: Collection was modified; enumeration operation may not execute."
any suggestions?

Nikolay Rusev
Telerik team
 answered on 21 Apr 2010
5 answers
146 views
Hi there,

We have a grid that uses resize= true and context menu = true
The problem is that when hide columns and resize the column the column goes wild.. i mean if we go to the left, its column goes to the right and vice versa......

I found out the hiding columns can ruin your grid resizing property...

Is there a workaround to make it work... I would like to hide and show columns in my grid and i can resize my grid column at the same time

Thanks,
Nikolay Rusev
Telerik team
 answered on 21 Apr 2010
1 answer
136 views
Hi,

Can I use SSL with RAD upload control ? Does the certificate have to be installed on the web page using this control?

Thanks
T. Tsonev
Telerik team
 answered on 21 Apr 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?