Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views

Hi I have 8 tabs. The first 2 are General information and Employee Information. I want these to be completely filled out first before tabs 3-8 are accessible.

I just inherited this applicaition so I am new to telerik . Any input is appreciated.

Ivan Danchev
Telerik team
 answered on 02 Feb 2017
2 answers
153 views

Hi,

 

When I call Image manager natively from RadEditor Image Properties, the Image Manager automatically shows the picture path and picture of the selected item.

How can I achieve such behavior from a stand alone Image Manager called from a RadDialogOpener?

 

Marc

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 02 Feb 2017
0 answers
112 views

Hi,

We are currently using RadChart control, now we are planning to update it with RadHtmlControl.

Please suggest the easiest way to migrate this.

If possible please provide us sample project.

Thanks,

Amol

Amol
Top achievements
Rank 1
 asked on 02 Feb 2017
4 answers
250 views

See http://demos.telerik.com/kendo-ui/grid/column-menu

When using Chrome v 55, the column/filter dialog disappears when mouse enters one of the text fields.

Select a column menu header, select the filter option, move mouse over one of the filter text boxes.  The filter popup is hidden.

This appears to be an error specific to chrome 55 (it was not evident in earlier Chrome version).

Dimiter Topalov
Telerik team
 answered on 02 Feb 2017
0 answers
106 views

Hi,

I having problem generating a dictionary object out in a Grid Template, it is saying there a incorrect syntax.

Can anyone help me?

     template: '<div id="#=ReferenceNumber#_#=CreateAward#">

                                        <a href="#=EffectiveProcurementURL#" target="_blank">#=CreateAward#</a>
                                        <img src="/images/navdown.gif" style="cursor:pointer;" onclick="toggleDisplay("#=ReferenceNumber#")" />

                                        <ul>
                                            # for (var key in OtherProcurementOption) { #  
                                                #=var value = OtherProcurementOption[key];#  

                                                <li><a href="#=value#" target="_blank">#=key#</a></li> 

                                                # } #


                                        </ul>
                                    </div>'

HAN MING
Top achievements
Rank 1
 asked on 02 Feb 2017
0 answers
73 views

Hello,

I'm trying to use the drag and drop functionality in the scheduler. As the demo below 

https://demos.telerik.com/aspnet-ajax/scheduler/examples/draganddropintegration/defaultcs.aspx?product=scheduler

Everything works fine with drag and drop. Now i'm trying to implement the sorting on the column headers in RagdGrid. After I click any column header the grid disappears . Like there is no data in the grid . I'm using the basic sorting functionality as in one of your demo applications. I also tried using the NeedDataSource. this time I'm getting the data same as not sorted. this is the following code sample i'm using to sort the grid data . Can please help me find a way around it. 

Thank you 

  Protected Sub RadGrid1_SortCommand(sender As Object, e As GridSortCommandEventArgs) 
 Dim sortexpr As New GridSortExpression()     
    sortexpr.FieldName = e.SortExpression  
 If sortexpr.SortOrder = GridSortOrder.Descending Or sortexpr.SortOrder = GridSortOrder.None Then
          sortexpr.SortOrder = GridSortOrder.Ascending           e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortexpr)    
      RadGrid1.MasterTableView.Rebind()     
 ElseIf sortexpr.SortOrder = GridSortOrder.Ascending Then
sortexpr.SortOrder = GridSortOrder.Descending
            e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortexpr)     
    RadGrid1.MasterTableView.Rebind()      End If
Todd
Top achievements
Rank 1
 asked on 01 Feb 2017
0 answers
159 views

Hi,

I'm exporting a grid in Xlsx format. I tried many methods to set borders on excel cells but in no avail.

Is it even possible ? Are borders supported ?

Julien
Top achievements
Rank 1
 asked on 01 Feb 2017
0 answers
125 views
Hello Telerik Team
I have a usercontrol.ascx in which I have put a RadComboBox.
I am trying to generate the RadComboBoxItems and HeaderTemplate and ItemTemplate dynamically.
I have succeded in generating the HeaderTemplate.
But I have an issue in ItemTemplate generation.
I have tried the following Code in the usercontrol.ascx where ‘drpLookup’ is the RadComboBox ID:

protected override void OnPreRender(EventArgs e)
        {
            if (!IsPostBack)
            {
                drpLookup.Attributes.Add("LookupType", LookupType);
                drpLookup.Attributes.Add("ServiceClass", ServiceClass);
            }
            HeaderTemplate.ServiceClass = drpLookup.Attributes["ServiceClass"];
            ItemTemplate.ServiceClass = drpLookup.Attributes["ServiceClass"];
            base.OnPreRender(e);
        }
protected override void OnInit(EventArgs e)
        {
            drpLookup.HeaderTemplate = new HeaderTemplate();
            drpLookup.ItemTemplate = new ItemTemplate();
            base.OnInit(e);
        }
protected void drpLookup_ItemsRequested(object sender, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)
        {
                     Datatable dt=//some code to get data
                     BindDrpLookup(dt, properties, DataValueFieldName, DataTextFieldName);
        }
private void BindDrpLookup(DataTable dataTable, List<PropertyInfo> properties, string DataValueFieldName, string DataTextFieldName)
        {
            drpLookup.DataValueField = DataValueFieldName;
            drpLookup.DataTextField = DataTextFieldName;

            foreach (DataRow l in dataTable.Rows)
            {
                RadComboBoxItem item = new RadComboBoxItem();

                foreach (var p in properties)
                {
                    item.Attributes.Add(p.Name, l[p.Name].ToString());
                }
                drpLookup.Items.Add(item);
  item.DataBind();
            }
            drpLookup.DataBind();

        }


private class ItemTemplate : ITemplate
        {
            public static string ServiceClass { get; set; }
            public void InstantiateIn(Control container)
            {
                PropertyInfo propertyWithLookupValue =//Do Some Code To get values

                HtmlTable table = new HtmlTable();
                table.Width = "100%";
                table.CellPadding = 0;
                table.CellSpacing = 0;
                HtmlTableRow row = new HtmlTableRow();
                row.Style.Add("width", "100%");
                int numberofColumns = propertiesWithLookup.Count - 1;
                string ColumnWidth = Math.Round((decimal)(100 / numberofColumns)).ToString();
                foreach (PropertyInfo p in propertiesWithLookup)
                {
                    if (p != propertyWithLookupValue)
                    {
                        HtmlTableCell cell = new HtmlTableCell();
                        cell.Width = ColumnWidth + "%";
                        cell.ID = p.Name;
                        cell.DataBinding += new EventHandler(cell_DataBinding);
                        row.Controls.Add(cell);
                    }
                }
                table.Controls.Add(row);
                container.Controls.Add(table);
            }

            private void cell_DataBinding(object sender, EventArgs e)
            {
                HtmlTableCell target = (HtmlTableCell)sender;
                RadComboBoxItem item = (RadComboBoxItem)target.BindingContainer;
                string[] id = target.ClientID.Split('_');
string itemText = (string)DataBinder.Eval(item, id[id.Length - 1].ToString());
                target.InnerText = itemText;
            }
        }



The issue is that in the cell_DataBinding event at the following line of Code:
string itemText = (string)DataBinder.Eval(item, id[id.Length - 1].ToString());


I get an exception with the following Error message:
{"DataBinding: 'Telerik.Web.UI.RadComboBoxItem' does not contain a property with the name 'Name'."}

And following stacktrace:

   at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName)
   at System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts)
   at System.Web.UI.DataBinder.Eval(Object container, String expression)
   at APA.UI.Web.APAAdmin.Views.UserControls.Lookup.ItemTemplate.cell_DataBinding(Object sender, EventArgs e) in D:\Projects\Framework\2015\APA\APA.UI.Web.APAAdmin\Views\UserControls\Lookup.ascx.cs:line 217
   at System.Web.UI.Control.OnDataBinding(EventArgs e)
   at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
   at System.Web.UI.Control.DataBind()
   at System.Web.UI.Control.DataBindChildren()



any helps will be very much appreciated !
khashayar
Top achievements
Rank 1
 asked on 01 Feb 2017
2 answers
84 views

http://demos.telerik.com/aspnet-mvc/diagram/editing

Is there an example or is it possible to replicate the shape editing/text insert shown in this mvc project in aspnet-ajax diagram project?

Thank you

Andy

Vessy
Telerik team
 answered on 01 Feb 2017
2 answers
119 views

Hi, i have a problem to fire the delete event using a GridButtonColumn with ConfirmDialogType="RadWindow", it show the dialog but when I click ok button it only close the window but don't invoke the delete event on the server, if I change it to ConfirmDialogType="Classic" it works ok.

 

here is the implementation

 

<form id="form1" runat="server">
        <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Material">
        </telerik:RadSkinManager>
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        </telerik:RadWindowManager>
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1">
            <telerik:RadGrid ID="RadGridFAQs" runat="server" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" OnNeedDataSource="RadGridFAQs_NeedDataSource" PageSize="5" RenderMode="Lightweight" OnDeleteCommand="RadGridFAQs_DeleteCommand">
                <pagerstyle mode="NextPrevAndNumeric" position="Bottom" pagesizecontroltype="None" alwaysvisible="True"></pagerstyle>
 
                <groupingsettings collapsealltooltip="Collapse all groups" />
                <mastertableview clientdatakeynames="QuestionID" datakeynames="QuestionID" hierarchyloadmode="Client">
                                    <rowindicatorcolumn visible="False">
                                    </rowindicatorcolumn>
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="Question" HeaderText="Pregunta">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Score" HeaderText="Calificación">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Section" HeaderText="Sección">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Active" HeaderText="Activo">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridButtonColumn CommandName="Delete" ConfirmText="¿Esta seguro que desea eliminar la pregunta?" FilterControlAltText="Filter column column" UniqueName="column" ConfirmDialogType="RadWindow" ConfirmTitle="Eliminar">
                                        </telerik:GridButtonColumn>
                                    </Columns>
                                    <PagerStyle PageSizeControlType="None" AlwaysVisible="True" />
                                </mastertableview>
                <filtermenu rendermode="Lightweight">
                                </filtermenu>
                <headercontextmenu rendermode="Lightweight">
                                </headercontextmenu>
            </telerik:RadGrid>
        </telerik:RadAjaxPanel>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" Skin="Default">
        </telerik:RadAjaxLoadingPanel>
    </form>

 

 

 

 

Milena
Telerik team
 answered on 01 Feb 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?