Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
258 views
Hello i have been using Telerik rad media player, How do i unhide/ visible= false the media player controls? but i want to play the video when its clicked but not to show the controls.
Maria Ilieva
Telerik team
 answered on 01 Jun 2015
1 answer
866 views

Hi Team,

i am using Rad Wizard in one application, i want to change the position of the previous , Next buttons from bottom to Middle and i want to change the Images for the buttons.

 

Please find the below attachments.

1. Wizard example screen shot.

2. second attachment shows , what exactly i need.

 

Please help us on this.

 

Regards,

Nagendra.

 

Nencho
Telerik team
 answered on 01 Jun 2015
7 answers
705 views
Hi,
in my project in VisualStudio 2008 when I want to add RadToolbar, I get:
http://img412.imageshack.us/img412/8734/clipboard02s.jpg
What's wrong?
Telerik Version: 2009 SP1.
Thanks.
mushtary03
Top achievements
Rank 1
 answered on 01 Jun 2015
1 answer
222 views

Hello - 

 I am playing a video from youtube link have prb like this 

how can i disable the right click of player which having these options to be hide 1.Getvideo url ,GetVideourl at current time etc ,and also hide youtube icon .

how to hide these all with in right click of player any suggestions. 

Regards 

SR

Viktor Tachev
Telerik team
 answered on 01 Jun 2015
4 answers
120 views

Hi Team,

I am new to telerik controls and using Radgrid in my application. I have a DataRangefilter which shows "From" date and "To" date in a single line. So the column become big in size!.(I have  more than 20 date columns!) . I am using latest telerik demo DLLs for my POC. In order to  achieve this i have used EnableRangeFiltering ="true" in aspx page.

 

I heard older DLL has this feature ! 

Is there any way to get the From and To date in multiple lines in the latest version, which can reduce my column size. 

 

Regards

Ramesh.

Ramesh
Top achievements
Rank 1
 answered on 01 Jun 2015
1 answer
376 views

Hi,

I was following the example given about binding data to a radgrid using the needdatasource (Click here to view demo).

Here is my html code, 

<telerik:RadGridID="RadGrid1"runat="server"OnNeedDataSource="RadGrid1_NeedDataSource"AllowSorting="True"AllowPaging="True"ShowGroupPanel="True"GroupingSettings-CaseSensitive="false"AllowFilteringByColumn="True"CellSpacing="-1"GridLines="Both"Skin="Metro"CssClass="rad_header_style"Width="100%">
</telerik:RadGrid>

 

Here is how I bound my data from code behind, 

using System;
using System.Data;
using System.Linq;
using Telerik.Web.UI;
  
publicpartialclasstime_and_action_ganttchart_details : System.Web.UI.Page
{
    protectedvoidPage_Load(objectsender, EventArgs e)
    {
  
    }
  
    protectedvoidRadGrid1_NeedDataSource(objectsender, GridNeedDataSourceEventArgs e)
    {
        shorttechpackID = 93; // short.Parse(Request.QueryString[0]);
  
        DataTable dt = newDataTable();
  
        dt.Columns.Add("Customer", typeof(string));
        dt.Columns.Add("Account", typeof(string));
        dt.Columns.Add("Season", typeof(string));
        dt.Columns.Add("Program", typeof(string));
        dt.Columns.Add("Tech Pack Name", typeof(string));
        dt.Columns.Add("Design Ref", typeof(string));
        dt.Columns.Add("Stroke", typeof(string));
        dt.Columns.Add("Type", typeof(string));
        dt.Columns.Add("Assortment Name", typeof(string));
        dt.Columns.Add("Component", typeof(string));
        dt.Columns.Add("RM Description", typeof(string));
        dt.Columns.Add("Supplier", typeof(string));
        dt.Columns.Add("CSP", typeof(string));
        dt.Columns.Add("Mode", typeof(string));
        dt.Columns.Add("RM Color Code", typeof(string));
        dt.Columns.Add("RM Color Name", typeof(string));
        dt.Columns.Add("Silhoutte", typeof(string));
        dt.Columns.Add("Garment Number", typeof(string));
  
        using(PDLC.Data.PDLCEntities context = newPDLC.Data.PDLCEntities())
        {
            var version = context.V_TimeAndAction_TechPackLeadTime.Where(x => x.TP_ID == techpackID).Select(s => new{ s.VersionID }).Max(p => p.VersionID);
  
            var distinctEvents = context.V_TimeAndAction_TechPackLeadTime.Where(x => x.TP_ID == techpackID && x.VersionID == version).Select(s => new{ s.EventText, s.EventOrder }).Distinct().OrderBy(o => o.EventOrder);
  
            foreach(var eventname indistinctEvents)
            {
                dt.Columns.Add(eventname.EventText, typeof(string));
                dt.Columns.Add("Actual "+ eventname.EventText, typeof(string));
                dt.Columns.Add("Committed "+ eventname.EventText, typeof(string));
            }
  
            var assortmentIdList = context.V_TimeAndAction_TechPackLeadTime.Where(x => x.TP_ID == techpackID && x.VersionID == version).Select(s => new{ s.AS_ID }).Distinct();
  
            foreach(var assortmentId inassortmentIdList)
            {
                var rawMaterialList = context.V_TimeAndAction_TechPackLeadTime.Where(x => x.TP_ID == techpackID && x.VersionID == version && x.AS_ID == assortmentId.AS_ID).Select(s => new{ s.RawMaterialID }).OrderBy(o => o.RawMaterialID).Distinct();
  
                foreach(var rawmaterial inrawMaterialList)
                {
                    DataRow dr = dt.NewRow();
                    var headerDetails = context.V_TimeAndAction_TechPackLeadTime.Where(x => x.TP_ID == techpackID && x.VersionID == version && x.AS_ID == assortmentId.AS_ID && x.RawMaterialID == rawmaterial.RawMaterialID).Select(s => new
                    {
                        s.Cust_Name,
                        s.Account_Name,
                        s.Season_Name,
                        s.ProgramName,
                        s.Design_Ref,
                        s.Stroke,
                        s.StyleTypeName,
                        s.Component_Name,
                        s.Description60Digit,
                        s.sales_office_name,
                        s.Color_Code,
                        s.Color_Name,
                        s.ShapeName,
                        s.GMT_ID,
                        s.TP_Name,
                        s.Assortment_name
                    }).Distinct().First();
  
                    dr["Customer"] = headerDetails.Cust_Name;
                    dr["Account"] = headerDetails.Account_Name;
                    dr["Season"] = headerDetails.Season_Name;
                    dr["Program"] = headerDetails.ProgramName;
                    dr["Tech Pack Name"] = headerDetails.TP_Name;
                    dr["Design Ref"] = headerDetails.Design_Ref;
                    dr["Stroke"] = headerDetails.Stroke;
                    dr["Type"] = headerDetails.StyleTypeName;
                    dr["Assortment Name"] = headerDetails.Assortment_name;
                    dr["Component"] = headerDetails.Component_Name;
                    dr["RM Description"] = headerDetails.Description60Digit;
                    dr["Supplier"] = headerDetails.sales_office_name;
                    dr["CSP"] = "CSP";
                    dr["Mode"] = "Mode";
                    dr["RM Color Code"] = headerDetails.Color_Code;
                    dr["RM Color Name"] = headerDetails.Color_Name;
                    dr["Silhoutte"] = headerDetails.ShapeName;
                    dr["Garment Number"] = headerDetails.GMT_ID;
  
                    var eventIdList = context.V_TimeAndAction_TechPackLeadTime.Where(x => x.TP_ID == techpackID && x.VersionID == version && x.AS_ID == assortmentId.AS_ID && x.RawMaterialID == rawmaterial.RawMaterialID).Select(s => new{ s.EventID, s.EventOrder, s.EventText }).Distinct().OrderBy(o => o.EventOrder);
  
                    foreach(var eventId ineventIdList)
                    {
                        var timeandactiondates = context.V_TimeAndAction_TechPackLeadTime.Where(x => x.TP_ID == techpackID && x.VersionID == version && x.AS_ID == assortmentId.AS_ID && x.RawMaterialID == rawmaterial.RawMaterialID && x.EventID == eventId.EventID).Select(s => new{ s.TimeAndActionES, s.ActualDate, s.CommittedDate }).Distinct().FirstOrDefault();
                        DateTime timeandactiones = (DateTime)timeandactiondates.TimeAndActionES;
                        dr[eventId.EventText] = timeandactiones.ToShortDateString();
                        if(timeandactiondates.ActualDate != null)
                        {
                            DateTime timeandactionactual = (DateTime)timeandactiondates.ActualDate;
                            dr["Actual "+ eventId.EventText] = timeandactionactual.ToShortDateString();
                        }
                        else
                        {
                            dr["Actual "+ eventId.EventText] = timeandactiondates.ActualDate;
                        }
                        if(timeandactiondates.CommittedDate != null)
                        {
                            DateTime timeandactualcommitted = (DateTime)timeandactiondates.CommittedDate;
                            dr["Committed "+ eventId.EventText] = timeandactualcommitted.ToShortDateString();
                        }
                        else
                        {
                            dr["Committed "+ eventId.EventText] = timeandactiondates.CommittedDate;
                        }
                    }
                    dt.Rows.Add(dr);                   
                }
            }
        }
        RadGrid1.DataSource = dt;       
    }
}

Now I want to hide the filter icon and set the column search filter criteria to contains  (CurrentFilterFunction="Contains" ShowFilterIcon="false") in each column. 

Hoping to hear from you soon. Thank you.

 

Maria Ilieva
Telerik team
 answered on 01 Jun 2015
1 answer
112 views
Hello,

I'm having the following problem when I add a "RadGrid" and set the propiedade "EditMode =" Batch "" control "RadNumericTextBox" has strange behavior in their focus,
sometimes identifies the control received the focus and then apply the "SelectAll" content, but sometimes the control receives the focus and position the cursor at the end of the content, and  also not  recognize that there was a change in the content and does not call the "OnTextChanged" event. This only happens when I set the property "EditMode =" Batch "" the "RadGrid"

Thanks in advance for your help.
Kostadin
Telerik team
 answered on 01 Jun 2015
9 answers
263 views

Hi, I have an autocompletebox with an EmptyMessage set.
The problem is that the empty message barely shows.
Basically I only see A few pixel width of the first letter of the EmptyMessage.
It's like something is squishing it to the left.

<telerik:RadAutoCompleteBox
    ID="RdtCmpltBx_1"
    runat="server"
    Width="160px"
    DropDownWidth="150px"
    EmptyMessage="Enter name (ex: Alpha)"
    WebServiceSettings-Method="GetSingleName"
    WebServiceSettings-Path="Main.aspx"
    OnClientTextChanged="NameChanged"
    Filter="StartsWith"
    DropDownPosition="Automatic"
    AllowCustomEntry="true"
    InputType="Text"
    TextSettings-SelectionMode="Single" />

I looked at the sample at https://demos.telerik.com/aspnet-ajax/autocompletebox/examples/default/defaultcs.aspx

and I do not see anything different.

Plamen
Telerik team
 answered on 01 Jun 2015
1 answer
274 views

I have a RadGrid that I'm trying to export to Excel. In the RadGrid, it contains a GridTemplateColumn with nested repeaters, labels and spans.  I'm trying to use ExcelML for the export, but am open to using another format if necessary. My telerik version is 2014.1.225.45.

In the ExcelMLExportRowCreated method, I'm trying to find the first repeater control and then traverse down to the labels, the second repeater and it's subsequent labels and span and concatenate the data into a string. I seem to be finding the repeater controls, but each label I find returns the text value as an empty string. I can't seem to find the actual text that shows up in the grid. 

I've read a variety of forum threads trying to figure this out. Can someone suggest how I can get the values out of these controls?

Here is my GridItemTemplate Column and the code behind for the export.

Any help would be appreciated. 

Thank you

<telerik:GridTemplateColumn UniqueName="boards" DataField="boards"  HeaderText="Groups/Committees" ItemStyle-CssClass="system-users-committee-list">
<ItemTemplate>
<%-- Start List of Boards then nest committees under board list item --%>
<ul class="board-memberships unstyled">
<asp:Repeater ID="rptBoards" runat="server" DataSource ='<%# Eval("boards") %>'>
    <ItemTemplate>
        <li class="multi-member-board">
        <li  class="board-name">
                <asp:Label ID="lblBoardName" runat="server"><%# Eval("boardName") + ":" %></asp:Label>
                                                                 
                <ul class="committees unstyled inline">
                    <asp:Repeater ID="rptGroups" runat="server" DataSource ='<%# Eval("groups") %>'  OnItemDataBound="rptrCommittee_ItemDataBound">
                        <ItemTemplate>                                         
                            <li>
                                <asp:Label ID="lblCommitteeList" runat="server"><%# Eval("groupName") %></asp:Label>
                                                                                 
                                <!-- if role -->
                                <span id="roleName" class="role" runat="server" visible="false">(<%# Eval("role.roleName") %>)</span>
                                                                                 
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
                                                             
        </li>
        </li>
    </ItemTemplate>
</asp:Repeater>
</ItemTemplate>
</telerik:GridTemplateColumn>

 

protected void btnExportExcel_Click(object sender, EventArgs e)
{
  radGridSysDir.ExportSettings.ExportOnlyData = True
  radGridSysDir.ExportSettings.IgnorePaging = true;
  radGridSysDir.ExportSettings.FileName = string.Format("SystemDirectoryExportExcel_{0}", DateTime.Today);
  radGridSysDir.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;
  isExport = true;
  radGridSysDir.MasterTableView.ExportToExcel();
}

protected void radGridSysDir_ExcelMLExportRowCreated(object sender, Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLRowCreatedArgs e)
        {
            if (e.RowType == GridExportExcelMLRowType.HeaderRow)
            {
                radGridSysDir.Rebind();
                e.Worksheet.Table.Columns.Add(new ColumnElement());
                CellElement cell = new CellElement();
 
                cell.ColumnName = "MemberName";
                cell.Data.DataItem = "Member Name";
                e.Row.Cells.Add(cell);
 
                e.Worksheet.Table.Columns.Add(new ColumnElement());
                CellElement cell2 = new CellElement();
                cell2.ColumnName = "BoardName";
                cell2.Data.DataItem = "Board Name";
                e.Row.Cells.Add(cell2);
 
 
            }
            if (e.RowType == GridExportExcelMLRowType.DataRow)
            {
                CellElement cell = new CellElement();
                 
                int currentRow = e.Worksheet.Table.Rows.IndexOf(e.Row) - 1;
                // cell = e.Row.Cells.GetCellByName("TemplateColumn");
                cell.Data.DataItem = (radGridSysDir.MasterTableView.Items[currentRow].FindControl("lblName") as Label).Text;
                e.Row.Cells.Add(cell);
 
                GridDataItem item = radGridSysDir.MasterTableView.Items[currentRow];
                StringBuilder newString = new StringBuilder();
                CellElement cell2 = new CellElement();
                Repeater rptBoards = (Repeater)item.FindControl("rptBoards");
                foreach (RepeaterItem rItem in rptBoards.Items)
                {
                    if (rItem.ItemType == ListItemType.Item || rItem.ItemType == ListItemType.AlternatingItem)
                    {
                        Label lblBname = (Label)rItem.Controls[1].FindControl("lblBoardName");
                        Repeater rptGroups = (Repeater)rItem.FindControl("rptGroups");
                        newString.Append(lblBname.Text);
                        foreach (RepeaterItem gItem in rptGroups.Items)
                        {
                            if (gItem.ItemType == ListItemType.Item || gItem.ItemType == ListItemType.AlternatingItem)
                            {
                                Label lblGrp = (Label)gItem.Controls[0].FindControl("lblCommitteeList");
                                if (lblGrp != null)
                                {
                                    HtmlGenericControl spanRole = (HtmlGenericControl)gItem.Controls[1].FindControl("roleName");
                                    if (spanRole != null)
                                    {
                                        newString.Append(lblGrp.Text);
                                        newString.Append(spanRole.ToString());
                                    }
                                }
                            }
                        }
                    }
                }
                cell2.Data.DataItem = newString.ToString();
                e.Row.Cells.Add(cell2);
            }
        }


Kostadin
Telerik team
 answered on 01 Jun 2015
1 answer
80 views

Hello,

We are developing a website with radpagelayout,
we have problems with rendering between IIS 8.1 in Windows local and remote which is windows 2008 r2.

We wonder if the dll telerik not a problem rendering different between the two IIS.

Localhost

http://www.noelshack.com/2015-22-1432721635-local.jpg

Remote

http://www.noelshack.com/2015-22-1432721634-distant.jpg

 

Thank you for your help.

Nencho
Telerik team
 answered on 01 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?