Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
101 views
I have a RADEditor setup to allow the usual text formatting.  Ive set a header (H1) andf a hyperlink, yet when I save the contents, just the normal text is being saved.  Ive checked the HTML and it does have the H1 tag along with the ,a. tag for the link, yet when I check this

this.RadEditor1.Content;

Content has no tags in it, just the normal text, subsequently this is not being saved.  How can I solve this problem ?
mww
Top achievements
Rank 1
 answered on 20 Jan 2011
1 answer
76 views
Hi, 
 I would like to know if it is possible to have a RadPanelBar in a SharePoint Master Page use a Sharepoint List or BDC as a datasource?

I got the following example http://www.telerik.com/help/aspnet-ajax/replace-sharepoint-quick-launch-menu-with-radpanelbar.html to work but we would like the RadPanelBar to read off a SharePoint List or BDC.  

Is this possible and if so, can someone point the way that I should start with?

Thanks in Advance

We're using SharePoint 2010.

B
Kalina
Telerik team
 answered on 20 Jan 2011
2 answers
98 views
I have a custom appointment template utilizing custom attributes for my scheduler which works fine in Day/Week/Month views, but when I switch to Timeline view I would like to change the the appointment template and reorganize the attributes.

Any suggestions or examples?
Art Kedzierski
Top achievements
Rank 2
 answered on 20 Jan 2011
6 answers
368 views
We recently upgraded our Telerik suite from 2008.X to 2010.X. We have a custom filter defined which was working before, but is now throwing a javascript error: "Uncaught TypeError: Cannot read property 'Filter' of undefined" on the line:
"TableAlignFixFilter.registerClass('TableAlignFixFilter', Telerik.Web.UI.Editor.Filter); "

When examining the code in IE's development tools, I notice that Editor is not a member of Telerik.Web.UI. The only members are __namespace, __typeName, Animations, Calendar, DateParsing, Input, RadWindowController, and RadWindowUtils.

Could someone please explain this?

Thanks,
Boris Zakharin

Boris
Top achievements
Rank 1
 answered on 20 Jan 2011
3 answers
132 views
Hi all,
i was wondering if in a heirarchy grid you can have a different skin for each grid level.  EG. Vista skin for the MasterGrid and Windows7 for the Detail grid and so on.

is this possible?  i know you can use the styles properties to individually change the details grids, but was wondering how to do it more fully with skins.

By the way, what is SkinID used for?

thanks
Jordan
Vasil
Telerik team
 answered on 20 Jan 2011
2 answers
123 views
Hi. I'm using 2 RadEditors to export content to pdf.
I need to generate two different documents and return them to the client.How can I do that with the exportToPdf function from RadEditor.
When I do both radEditors in the same funcion it gives me only the pdf that comes from the second RadEditor.
Here is a sample of the code:


protected void Page_Load(object sender, EventArgs e)
        {

            printStuff1();
            printStuff2();

        }        

        public void printStuff1()
        {
            
            RadEditor1.Content = "<h1> Olá Mundo teste1!!!!</h1>";
            RadEditor1.ExportSettings.OpenInNewWindow = true;
            RadEditor1.ExportSettings.FileName = "teste1";
            RadEditor1.ExportToPdf();
                
        }

        public void printStuff2()
        {  
            RadEditor2.Content = "<h1> Olá Mundo teste2!!!!</h1>";
            RadEditor2.ExportSettings.OpenInNewWindow = true;
            RadEditor2.ExportSettings.FileName = "teste2";
            RadEditor2.ExportToPdf();
        }

Thank you so much.
João
Top achievements
Rank 1
 answered on 20 Jan 2011
7 answers
271 views
We are using wss 3.0 and we wonder if we can freely use the rad editor? We don't plan to buy MOSS.
Thanks...
Emilia
Telerik team
 answered on 20 Jan 2011
2 answers
134 views
hi,

i am trying to use rad grid to create a dynamic control that will bind some data.
the scenario will be like that:
1- i am already declaring a rad grid in the aspx page

<telerik:RadGrid ID="GrdDocuments" runat="server" Skin="WebBlue" dir="rtl" PageSize="10"
            OnItemCreated="GrdDocuments_ItemCreated" OnNeedDataSource="GrdDocuments_NeedDataSource"
            OnDetailTableDataBind="GrdDocuments_DetailTableDataBind"
            AllowMultiRowSelection="false" AllowFilteringByColumn="true" AutoGenerateColumns="false">
            <ClientSettings EnableRowHoverStyle="true">
                <Selecting AllowRowSelect="true" />
            </ClientSettings>
            <MasterTableView AutoGenerateColumns="false" DataKeyNames="arcId" Dir="RTL">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="40px"></HeaderStyle>
                </ExpandCollapseColumn>
                <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
                <DetailTables>
                    <telerik:GridTableView DataKeyNames="arcId,arcFileName" AllowFilteringByColumn="false" Name="Files" Caption="Document Files" Width="100%" AutoGenerateColumns="false" Dir="RTL">
                        <Columns>
                            <telerik:GridBoundColumn SortExpression="arcOrgName" HeaderText="File Name"
                                DataField="arcOrgName" UniqueName="arcOrgName" >
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="arcPageCount" HeaderText="Page Count"
                                DataField="arcPageCount" UniqueName="arcPageCount">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="arcFileSize" HeaderText="File Size"
                                DataField="arcFileSize" UniqueName="arcFileSize">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="arcCreatorUser" HeaderText="Creator"
                                DataField="arcCreatorUser" UniqueName="arcCreatorUser">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn SortExpression="arcCreationDate" HeaderText="Creation Date"
                                DataField="arcCreationDate" UniqueName="arcCreationDate">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </telerik:GridTableView>
                </DetailTables>
            </MasterTableView>
        </telerik:RadGrid>

so as you can see the parent Grid has no column, but the detailed Grid is statically defined.

now in the code behind i am trying to define the parent Grid columns programmatically using some map files.
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        Dictionary<string, string> MappingDefinition = new Dictionary<string, string>();
        MappingDefinition.Add("AAAA", "ColumnName_1");
        MappingDefinition.Add("BBBB", "ColumnName_2");
        MappingDefinition.Add("CCCC", "ColumnName_3");
        MappingDefinition.Add("DATE", "ColumnName_4");
        InitializeGrid(MappingDefinition);
        GrdDocuments.Rebind();
    }
}
 
protected void GrdDocuments_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
    if (!e.IsFromDetailTable)
    {
        DataTable _DataTable = _Object.GetDataTable();
        GrdDocuments.DataSource = _DataTable;
    }
}
 
private void InitializeGrid(Dictionary<string, string> MappingDefinition)
{
    string ErrorMessage= "";
    try
    {
        foreach (KeyValuePair<string, string> pair in MappingDefinition)
        {
            if (pair.Key.ToLower().Contains("date"))
            {
                GridDateTimeColumn dateColumn;
                dateColumn = new GridDateTimeColumn();
                dateColumn.DataField = pair.Value;
                dateColumn.HeaderText = pair.Value;
                dateColumn.AllowFiltering = true;
                dateColumn.AllowSorting = true;
                GrdDocuments.MasterTableView.Columns.Add(dateColumn);
            }
            else
            {
                GridBoundColumn boundColumn;
                boundColumn = new GridBoundColumn();
                boundColumn.DataField = pair.Value;
                boundColumn.HeaderText = pair.Value;
                boundColumn.AllowFiltering = true;
                boundColumn.AllowSorting = true;
                GrdDocuments.MasterTableView.Columns.Add(boundColumn);
            }
        }
    }
    catch (Exception ex)
    {
        ErrorMessage= ex.Message;
    }
}

it is all working fine until i expand any row, the parent grid header text is disapper, but the column remains, i don't know why this happen.
please review the attached images
Mohamed
Top achievements
Rank 1
 answered on 20 Jan 2011
5 answers
126 views
hi all,

I have a rendering problem with the resource headers of the following skins:

Forest, Hay, OutLook, Sunset, Web20, WebBlue, Windows7


When the header had multiple rows to fit the text in, there is a line at the bottom of the header that is not rendered correctly.
It seems the height is not calculated correctly.
I am evaluating the Telerik asp.net ajax controls using the trial version: 2010.3.1215.40

I cannot submit a defect but reproducing the problem is very simple: add some resources to a radscheduler and have them show a header. See screenshots in attachement.

Is there a way i/you can fix this?

regards,
Johan
Kamen Bundev
Telerik team
 answered on 20 Jan 2011
1 answer
78 views
Hello,
In my solution i have master page which contains :
<telerik:RadScriptManager ID="MasterScriptManager" runat="server" EnablePageMethods="true">
</telerik:RadScriptManager><telerik:RadAjaxManager ID="MasterAjaxManager" runat="server" />
<telerik:RadWindowManager ID="MasterWindowManager" runat="server">....
In one of my pages , on button client click i call a js function, showing radconfirm, after the user enter YES i get in other js function and call :
"$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("FINISH");"
In the code behind of the page , on pageLoad i delegate the event of the ajaxrequest:
"var manager = RadAjaxManager.GetCurrent(this);
manager.AjaxRequest +=
new RadAjaxControl.AjaxRequestDelegate(YourContentPage_AjaxRequest);"
, and in the event i make swith case on the parameter i send:
//Handle the Ajax event in your ContentPage code behind
private void YourContentPage_AjaxRequest(object sender, AjaxRequestEventArgs e){
//Optionally process supplied event arg
switch (e.Argument)
{
case "FINISH": //Do something
btnFinish_Click(null, null);
break;
}
}

The problem is:
first click on the button everything works - see the radconfirm, answer yes, get in the server event. but second click on the button happens: see the radconfirm, get in the function, doing the statement of the "find" above, i see that it isnot null, but hte somewhere it falls with this bug:
"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
".

Needs urgent help,
thanks,
gz
Mira
Telerik team
 answered on 20 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?