Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
50 views
Hello ,
I have a search page in my application , on editing and saving the results of the search i get the following error -

"Error while executing filter IECleanAnchorsFilter - [object Error]" error message. 

The search page has Rad Editor fields.
Can you please suggest why is this happening?
Rumen
Telerik team
 answered on 03 Jul 2012
34 answers
777 views
Hi to all,
I have upgraded my telerik controls from 2011.2.915.40 to 2012.1.215.40 with msi installer.
After uprade I discovered that defaultbutton declared for asp:Panel does not fire postback on pressing
the key Enter.
Here is small example. It works fine with older Telerik.Web.UI, but not with Q1 2012.
<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="Default.aspx.cs" Inherits="Test._Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Test</title>
</head>
 
<body>
    <form id="MainForm" runat="server">
        <telerik:RadScriptManager ID="RadSCM" runat="server" />
        <asp:Panel ID="pnlWrapper" runat="server" DefaultButton="btnSearch">
            <telerik:RadTextBox ID="tbSearch" runat="server" EmptyMessage="Search" Width="130" />
            <telerik:RadButton ID="btnSearch" ButtonType="StandardButton" Text="Search" ToolTip="Searching" runat="server" OnClick="btnSearch_Click" />
        </asp:Panel>
        <asp:Label ID="lblMsg" runat="server" />
    </form>
</body>
</html>
using System;
 
namespace Test
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lblMsg.Text = string.Empty;
        }
 
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            lblMsg.Text = "O.K. - Button fired";
        }
    }
}

Does anybody know where is the problem?
Thanks
-Marian
Vasil
Telerik team
 answered on 03 Jul 2012
3 answers
85 views

Hi ,
by setting dateinput-label property to any string value for example "DATA:" , the control is rendered with the label duplicate. ("DATA: DATA:")

This is my piece of code:

<telerik:RadDatePicker ID="RadDatePicker1" DateInput-Label="TESTO:" runat="server">
</telerik:RadDatePicker>    

My version of Telerik Library is 2012.2.607.35
Thanks in advance
Gaetano

Vasil
Telerik team
 answered on 03 Jul 2012
1 answer
87 views
The Xaxis does not show the correct labels and all the september's are not grouped together 

What am i doing wrong

Dim oldsubcategory_id As String = "ZZ"
        Dim subcategory_id As String
        Dim currentSeries As ChartSeries = Nothing
        BarChartForAcc.Series.Clear()
        If (ShowList().Count > 0) Then
            For Each DataRow In GuiDataSource().Rows
                subcategory_id = DataRow("ACCOUNTNUM")
                If subcategory_id <> oldsubcategory_id Then
                    currentSeries = BarChartForAcc.CreateSeries(DataRow("ACCOUNTNUM"), Color.Empty, Color.Empty, ChartSeriesType.Bar)
                    currentSeries.Appearance.Border.Color = Color.Black


                    currentSeries.Appearance.ShowLabels = False
                    oldsubcategory_id = subcategory_id
                End If
                If Not (currentSeries Is Nothing) Then
                    currentSeries.AddItem(DataRow("AMOUNTCUR"), DataRow("TRANSDATE"))
                End If
            Next
        End If
        BarChartForAcc.ChartTitle.TextBlock.Text = "By Month For " & TheYear.ToString
Peshito
Telerik team
 answered on 03 Jul 2012
1 answer
59 views
Hi,

How can I avoid the change in style of radtreeview nodes on hover?

Thanks
Princy
Top achievements
Rank 2
 answered on 03 Jul 2012
2 answers
309 views
Hi,
I am using RadGrid from telerik version 2012.1.215.40.

I have two methods RadGrid_NeedDataSource and Page_Prerender event

I am trying to hide AddNewrecordButton based on user permissions

protected override void OnPreRender(EventArgs e)
       {
           try
           {
             
               //Hide controls on the page based on permission
              //Code to hide control
              // code to hide RadGrid AddNewRecordButton
                RadGrid1.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = false;                  
            }
               base.OnPreRender(e);
           }
           catch (Exception ex)
           {
               HandleException(ex, ErrorControl);
           }
       }

This code doesn't hide the AddNewRecordButton from the grid.
But if i write the same code in RadGrid_NeedsdataSource event, it works. I also tried radGrid_PreRender event but that also not working.
If i add RadGrid.Rebind() method in prerender event, it works. But it fires the NeedsdataSource event again that i don't want.
All my code to hide/show controls based on the permissions is inside the PreRender event. So i don't want to use NeedsDataSource event just for hide/show of Add new record button.
Please suggest what is wrong with the PreRender event.
Gaurav
Top achievements
Rank 1
 answered on 03 Jul 2012
5 answers
232 views

Hi Team,
            1) We are using RadGrid in our application, we plan to use the In-built functionality from Telerik Radgrid for Exporting the Grid data to Word document and PDF format document. We have Grid data, and Chart Image for the corresponding Grid Data which we displaying outside the Grid. I have attached the Screenshot of my application, I need to populate the Chart Image along with the Grid Data to word document and pdf document while export.  (attached file Name: Application_ScreenShot.JPG)

            2) Also I would like to know that Isn't it possible to export the Grid data with skin(font color,fort size,font family) to Word and Excel and PDF format.

            3) While I tried to Export into PDF format, the Grid Data is not populating properly. Kindly find the attached file for get me.(attached File Name for reference: PDF.JPG)

Please give me any possible solution on this ASAP.

Thanks
Alexis


Sreekanth
Top achievements
Rank 1
 answered on 03 Jul 2012
0 answers
114 views
Dear Telerik Team

i have a very  basic problem, i have just added a  button on the group header in the pre-render event. following is the code.
when click the button this dont called the ItemCommand event for the grid. Please suggest the true way for calling the event.

protected void Item_PreRender(object sender, EventArgs e)
        {
            string text = ((GridGroupHeaderItem)sender).DataCell.Text;
 
            for (int i = 4; i < ((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns.Length; i++)
            {
                TableCell cell = new TableCell();
                if (((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns[i].UniqueName == "TESTDESC")
                {
                    cell.Text = text.Trim().Replace(": ", "");
                }
                if (((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns[i].UniqueName == "Name")
                {
                    cell.Text = "Name";
                }
                if (((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns[i].UniqueName == "ToTalScores")
                {
                    cell.Text = "Total Scores";
                }
                if (((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns[i].UniqueName == "REPORTINGTIME")
                {
                    cell.Text = "EST Time";
                }
                if (((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns[i].UniqueName == "MainGroupCollapse")
                {
                    Button ExpandControl = ((GridGroupHeaderItem)sender).Cells[0].Controls[0] as Button;
                    ExpandControl.CssClass = "rgCollapse";
                    cell.CssClass = "MainGroupCollapse";
                    cell.Controls.Add(ExpandControl);
                }
                if (((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns[i].UniqueName == "DOWNLOAD")
                {
                    LinkButton lnkDownloadBtn = new LinkButton();
                    lnkDownloadBtn.ID = "btnDownload";
                    lnkDownloadBtn.Text = "Download/Print";
                    lnkDownloadBtn.CommandName = "DownloadAndPrint";
                    lnkDownloadBtn.CssClass = "DownloadAndPrint";
                    cell.CssClass = "DownloadAndPrintCell";
                    cell.Controls.Add(lnkDownloadBtn);
                }
                if (((GridGroupHeaderItem)sender).OwnerTableView.RenderColumns[i].UniqueName == "LeftSide")
                {
                    cell.CssClass = "LeftRightMargin";
                }
                ((GridGroupHeaderItem)sender).Cells.Add(cell);
            }
        }


protected void RadGridTest_ItemCommand(object source, GridCommandEventArgs e)
{
   GridGroupHeaderItem Item2 = e.Item as GridGroupHeaderItem;
   if (Item2 is GridGroupHeaderItem)
            {
                if (e.CommandName.Equals("DownloadAndPrint"))
                {
                     //call custom methods
                    //RenderReport(TestDateTreeView.SelectedNode.Value, "Chem");
                }
            }            
}


Many thanks
Asim Jabbar

Asim
Top achievements
Rank 1
 asked on 03 Jul 2012
3 answers
216 views
Hi,
I have a 3 level hierarchical grid.It is populated programatically (i.e. through 'DetailTableDataBind')

Each row in the middle-level grid has a hyperlink, which if pressed causes a dialog to be displayed (through RadWindowManager).

When the dialog is closed (by clicking 'Save'), the dialog closed, and calls a 'refreshGrid' function in the parent.

The 'refreshGrid' then does a 'ajaxRequest("RebindAndNavigate")'.

All pretty standard stuff, except it doesn't seem to refresh the contents of the 3rd level grid.

Am I missing something- does the rebind refresh all displayed 'programmatic-populated' children tables?

Cheers,
Steve


Jayesh Goyani
Top achievements
Rank 2
 answered on 03 Jul 2012
2 answers
113 views
Hi Team,
I have a radgrid which I want to refresh when File Save Dialogue box is closed.

This is my code behind.

protected void btnPayment_Click(object sender, EventArgs e)
{
   try
    {
             // do some stuff...
           
           // This code below opens the Save File Dialogue box ..
 
 String FilePath = Server.MapPath(".\\GiroPayments\\" + FileName + "");
 System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
 response.ClearContent();
 response.Clear();
 response.ContentType = "text/plain";
 response.AddHeader("Content-Disposition", "attachment; filename=" + FileName + ";");
 response.TransmitFile(FilePath);
 response.Flush();
 response.End();
 
 rgGiroPayments.Rebind();   
    }
   catch() {}
}


If I comment this code to open save file dailogue box, grid gets refreshed. There is some prob with that code..
Could you help me out ?

Thanks,
Lok..
Lokesh
Top achievements
Rank 1
 answered on 03 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?