Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
155 views
Does Telerik have any thoughts/plans on introducing a Diagram control? I would love to abandon my diagram control that cost a fortune (and can't afford anymore) in favour of something from Telerik.
Rumen
Telerik team
 answered on 24 Apr 2014
5 answers
202 views
Is it possible to have more than one background color in a radgrid cell? - i.e. can the cell painting method be overridden?

The colors that might need to be used and the percentage of the cell width that each color would occupy would vary from cell to cell, so I can't use CSS to control it.

Thanks
Shinu
Top achievements
Rank 2
 answered on 24 Apr 2014
9 answers
127 views
Hi,

I want to customize filter-menu according to column.
there are 4 columns in my rad-grid and all that columns contains filter-menu , I want to customise all of them filter-menu.

issue is when i customize first column(filter-menu) using unique-id of column , changes apply to all filter-menu on rad-grid.
another issue is when i put customize code for more than one column, filter-menu drop-down stops working.

following code i used.....


    protected void RadGridUserActionLog_Init(object sender, System.EventArgs e)
        {
            foreach (GridColumn column in RadGridUserActionLog.Columns)
            {             
                if (column.UniqueName == "Date")
                {
                    GridFilterMenu menu = RadGridUserActionLog.FilterMenu;
                    int i = 0;

                    while (i < menu.Items.Count)
                    {
                        if (menu.Items[i].Text == "IsNull" || menu.Items[i].Text == "NotIsNull")
                        {
                            i++;
                        }
                        else
                        {
                            menu.Items.RemoveAt(i);
                        }
                    }                    
                }
                              

                if (column.UniqueName == "Username")
                {
                    GridFilterMenu defaultmenu = RadGridUserActionLog.FilterMenu;
                    int i = 0;

                    while (i < defaultmenu.Items.Count)
                    {
                        if (defaultmenu.Items[i].Text == "NoFilter" || defaultmenu.Items[i].Text == "EqualTo" || defaultmenu.Items[i].Text == "NotEqualTo" || defaultmenu.Items[i].Text == "GreaterThan" || defaultmenu.Items[i].Text == "LessThan" || defaultmenu.Items[i].Text == "GreaterThanOrEqualTo" || defaultmenu.Items[i].Text == "LessThanOrEqualTo")
                        {
                            i++;
                        }
                        else
                        {
                            defaultmenu.Items.RemoveAt(i);
                            
                        }
                        RadGridUserActionLog.FilterMenu.DataBind();
                    }
                }
             }          
        }

Pradip
Top achievements
Rank 1
 answered on 24 Apr 2014
1 answer
98 views
Hello,

Is there any way to set the default behavior for reloading the editor dialogs?
I know that you can set the "ReloadOnShow" property for the "DialogDefinition" class but i cant find a way to set it for the editor dialogs.

Thank you
Ianko
Telerik team
 answered on 24 Apr 2014
1 answer
219 views
Hi,
Anybody can help me how to make drag and drop cell inside grid view? I would like to publish my sample code. I appricate any help or any tutorial.

Script.
function AssignDragandDrop() {
                $telerik.$('.RmEmtpyRoom').each(function () {
                    $telerik.$(this).droppable({ drop: celldrop });
                });
                $telerik.$('.RmReservation').each(function () {
                    $telerik.$(this).draggable({ helper: 'clone' });
                });
            }
            function celldrop(e, a) {
                //var oWnd = radopen(null, "winMove");
                var targetCell = $telerik.$(this);
                var targetCellIndex = targetCell.context.cellIndex;
                var targetRow = targetCell.context.parentElement;
                var targetRowIndex = targetRow.rowIndex;
                var newdate = $find('<%=grdAvailability.ClientID%>').MasterTableView.get_columns()[targetCellIndex].get_uniqueName();
                var roomkey = $find('<%=grdAvailability.ClientID%>').MasterTableView.get_dataItems()[targetRowIndex].getDataKeyValue("RoomKey");
                var reservationkey = a.draggable.context.id.split('_')[1];
                var url = '../Reservation/Update/NewMoveReservation.aspx?RK=' + reservationkey + '&D=' + newdate + '&R=' + roomkey;

                ShowRadWindow('Move Reservation', url, 650, 650);
                //var oWnd = radopen('../Reservation/Update/NewMoveReservation.aspx?RK=' + reservationkey + '&D=' + newdate + '&R=' + roomkey, "winMove");

                //var oWnd = radopen('../Reservation/Test.aspx?RK=' + reservationkey + '&D=' + newdate + '&R=' + roomkey, "winMove");
            }
Viktor Tachev
Telerik team
 answered on 24 Apr 2014
4 answers
203 views
Hello,
I have a dropdown that contains time zones. I would like change the time zone of the radscheduler client side without doing a post back. Is this possible?

Thanks,
Ron
Plamen
Telerik team
 answered on 24 Apr 2014
1 answer
82 views
Why is support for Dynamic Data not included in the Telerik assemblies by default? It seems that the only way to get controls that actually work with Dynamic Data is to post a question to this forum and hope you get a sample back with code that supports the features you intend to use.

Do you ever intend to rectify this? Is there a package I'm missing that will fill in the holes in your base product?
Danail Vasilev
Telerik team
 answered on 24 Apr 2014
1 answer
171 views
Please help me how to open PDF file on moust over on Template column

Shinu
Top achievements
Rank 2
 answered on 24 Apr 2014
1 answer
148 views
Hi there

I have a grid that exports to Excel, the data in the SQL Server table are NVARCHAR(4000) fields. It displays correctly, but when exporting it changes some of the diacritics to foreign characters, for example:

DB: André Letoit
Excel:  André Œetoit

The code I am using to export is:

/// <summary>
/// Export the Grid to XLS on Server instead of Clientside
/// </summary>
/// <param name="source"></param>
/// <param name="e"></param>
protected void uxExportRequests_GridExporting(object source, GridExportingArgs e)
{
    User currentUser = new User(HttpContext.Current.User.Identity.Name.ToString());
    string fileName = currentUser.UserID.ToString() + "_TitleRequests_" + DateTime.Now.ToShortDateString().Replace("/", "").Replace("-", "") + ".xls";
    string path = Server.MapPath("~/Requests/") + fileName;
 
    using (FileStream fs = File.Create(path))
    {
        Byte[] info = System.Text.Encoding.Default.GetBytes(e.ExportOutput);
        fs.Write(info, 0, info.Length);
    }
}
and
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {               
            uxExportRequests.GridLines = GridLines.Both;
            uxExportRequests.GridExporting += new OnGridExportingEventHandler(uxExportRequests_GridExporting);
            uxExportRequests.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;
            uxExportRequests.ExportSettings.ExportOnlyData = true;
    }
}
Is there any setting I need to change for this to keep the database characters?

Thank you.
Daniel
Telerik team
 answered on 24 Apr 2014
1 answer
332 views
Hi,

I am using RadGrid for ASP.NET. It contains a function to export data to PDF. I could achieve most of what I want but it seems it is not possible to change the font size and style of PageTitle.

Any help or comment is welcome.


The code snippet of the code-behind is shown below.

            radGrid.ExportSettings.Pdf.Title = "My Data"
            radGrid.ExportSettings.Pdf.Subject = "My Data";
            radGrid.ExportSettings.Pdf.PageTitle = "This is a page title"
            radGrid.ExportSettings.Pdf.PageWidth = Unit.Parse("297mm");
            radGrid.ExportSettings.Pdf.PageHeight = Unit.Parse("210mm");
            radGrid.ExportSettings.Pdf.PageLeftMargin = Unit.Pixel(15);
            radGrid.ExportSettings.Pdf.PageRightMargin = Unit.Pixel(15);
            radGrid.ExportSettings.Pdf.DefaultFontFamily = "Segoe UI";
            radGrid.ExportSettings.Pdf.AllowModify = false;
            radGrid.ExportSettings.Pdf.FontType = Telerik.Web.Apoc.Render.Pdf.FontType.Embed;
            radGrid.ExportSettings.Pdf.ForceTextWrap = true;
            radGrid.ExportSettings.UseItemStyles = true;



Daniel
Telerik team
 answered on 24 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?