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

Hello,

Calling  WCF Service, with ClientDataSource, work​s fine when IIS Authentication set to Anonymous Authentication.

But when I change it to Windows Authentication - It doesn't work.

How can I fix it? Thank you.

 
 
 
 
Viktor Tachev
Telerik team
 answered on 26 Aug 2015
7 answers
501 views

Hi guys,

 I've been kinda pulling my hair out over this one, I'm trying to get Wizard validation working and I don't know if its just something in my project or what, but no matter what I do, they will not fire. 

 I've gone as far as copying the example from the Wizard Validation article (http://www.telerik.com/help/aspnet-ajax/wizard-validation.html) and it still will not fire. Am I missing something? Maybe some project level setting? Like I said, I feel like I'm taking crazy pills :P 

Thanks in advance!

 My entire test page, the validation does not fire: 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head runat="server">
    <title>Telerik ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
        <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
        <div>
            <telerik:RadWizard ID="RadWizard6" runat="server">
                <WizardSteps>
                    <telerik:RadWizardStep ID="RadWizardStep1" CausesValidation="true" Title="Personal Info" runat="server" StepType="Step" ValidationGroup="personalInfo">
                        <div class="inputWapper first">
                            <asp:Label ID="Label3" Text="First Name: *" runat="server" AssociatedControlID="FirstNameTextBox" />
                            <telerik:RadTextBox ID="FirstNameTextBox" runat="server" ValidationGroup="personalInfo" Width="320px"></telerik:RadTextBox>
                            <asp:RequiredFieldValidator ID="FirstNameRequiredFieldValidator" runat="server" ControlToValidate="FirstNameTextBox" EnableClientScript="true" ValidationGroup="personalInfo" ErrorMessage="required field" CssClass="validator" ForeColor="Red"></asp:RequiredFieldValidator>
                        </div>
                    </telerik:RadWizardStep>
                    <telerik:RadWizardStep Title="SecondStep">
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    </telerik:RadWizardStep>
                </WizardSteps>
            </telerik:RadWizard>
        </div>
    </form>
</body>
</html>

Brendan
Top achievements
Rank 1
 answered on 26 Aug 2015
4 answers
333 views

Hi I have a RadMenu that I am populating dynamically through the code behind.  I need to add checkboxes to each child item that allows the user to make a selection or multiple selections in the menu.  Is it possible to do this?  Someone had suggested to me that I try and nest a RadComboBox inside of the RadMenu, but I'm having no luck with that.  I will paste my code below if it will help.

 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <telerik:RadMenu ID="handsetMenu" runat="server">   
                        <Items>    
                                                
                        </Items>                                           
                    </telerik:RadMenu>
                    </ContentTemplate>
                </asp:UpdatePanel> 

 

Code Behind:

 

protected void createFilter(int categoryid)
    {
        List<int> productIds = new List<int>();
        DataRow[] productRow = CategoriesProductsData.Tables["Products"].Select("Category_ID = " + 573);

        productIds = productRow.Select(p => int.Parse(p["Product_ID"].ToString())).ToList();

        ITCProductService pService = new TCProductServiceClient();
        var productTuples = (pService.GetProductsAttributes(productIds));

        List<Tuple<int, CustomAttribute>> customAttributes = new List<Tuple<int, CustomAttribute>>();
        foreach (var productTuple in productTuples)
        {
            foreach (var attributeTuple in productTuple.m_Item2)
            {
                var customAttribute = new Tuple<int, CustomAttribute>(productTuple.m_Item1, new CustomAttribute(attributeTuple));
                customAttributes.Add(customAttribute);
            }

        }

        List<CustomAttributeCategory> categories = new List<CustomAttributeCategory>();

        var categoryList = customAttributes.Select(a => a.Item2).Select(a => a.Attribute.Category).GroupBy(a => a.AttributeCategoryId);

        var CatProdList = new List<CustomAttributeCategory>();

        foreach (var category in categoryList)
        {
            var CatProd = new CustomAttributeCategory();

            var prodIDList = from product in customAttributes
                             where product.Item2.Attribute.CategoryId == category.Key
                             select Tuple.Create(product.Item1, product.Item2);

            CatProd.Category = customAttributes.Select(a => a.Item2.Attribute.Category).Where(a => a.AttributeCategoryId == category.Key).FirstOrDefault();
            CatProd.ProdAttributesTuple = new List<Tuple<int, CustomAttribute>>();
            CatProd.ProdAttributesTuple = prodIDList.ToList();

            CatProdList.Add(CatProd);
        }

        foreach (var cat in CatProdList)
        {
            var itemCategory = new RadMenuItem(cat.Category.Name);
            
            handsetMenu.Items.Add(itemCategory);
            

            var option = cat.ProdAttributesTuple.GroupBy(a => a.Item2.Attribute.Value).ToList();
            foreach (var attr in option)
            {
                itemCategory.Items.Add(new RadMenuItem(attr.Key));              
                

            }
        }

    }


    protected void handsetMenu_ItemDataBound(object sender, RadMenuEventArgs e)
    {
        DataRowView row = (DataRowView)e.Item.DataItem;

    }


    public class CustomAttributeCategory
    {
        public AttributeCategoryModel Category { get; set; }
        public List<Tuple<int, CustomAttribute>> ProdAttributesTuple { get; set; }
    }

    public class CustomAttribute
    {
        public AttributeModel Attribute { get; set; }

        public List<int> ProductIds { get; set; }

        public CustomAttribute(AttributeModel attribute)
        {
            Attribute = attribute;
            ProductIds = new List<int>();
        }
    }​

Aneliya Petkova
Telerik team
 answered on 26 Aug 2015
3 answers
263 views

I'm trying to build this functionality into my website. In Telerik's demo the progress bar is inside the tooltip and it moves around to each element when an element is clicked on. How do I do this?

Am I correct to assume it is one tooltip and one progressbar and the TargetId of the tooltip is changed to the element that was clicked on with client side programming? Could I have an example of the client side programming? I am new to Telerik and Jquery as of this week, but I am a solid programmer of many years, some how just never got to JQuery.

Vessy
Telerik team
 answered on 26 Aug 2015
2 answers
106 views

Hello,

I am using two nested grid inside main radgrid ,its working fine when expand the nested grid but when  collapse event fire then main grid disappear

i am not identified how to handle its on Pre_render or itemCommand event below is my Code

 

   <telerik:RadGrid ID="gvJobDeatail" runat="server" GridLines="None" AutoGenerateColumns="false"
                            AllowPaging="true" AllowSorting="true" AllowAutomaticUpdates="true" ShowStatusBar="true"
                            PageSize="5" OnNeedDataSource="BindDataGrid_OnNeedDataSource" OnItemCommand="gvJobDetails_onItemCommand"
                            OnPreRender="gvJobDetails_PreRender" OnItemCreated="RadGrid_ItemCreated">
                            <%--OnItemCreated="gvJobDetails_ItemCreatd">--%>
                            <PagerStyle Mode="NextPrevAndNumeric" />
                            <MasterTableView DataKeyNames="INSTANCEID" ShowFooter="true" TableLayout="Fixed">
                                <Columns>
                                    <telerik:GridBoundColumn SortExpression="INSTANCEID" DataField="INSTANCEID" HeaderText="Instance Id">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn SortExpression="JOBNAME" DataField="JOBNAME" HeaderText="Job Name">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn SortExpression="STRATTIME" DataField="STRATTIME" HeaderText="Start Date and Time">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn SortExpression="ENDTIME" DataField="ENDTIME" HeaderText="End Date and Time">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn SortExpression="STATUS" DataField="STATUS" HeaderText="Status">
                                    </telerik:GridBoundColumn>
                                </Columns>
                                <NestedViewTemplate>
                                    <asp:Panel ID="pnlDetails" runat="server" Visible="false">
                                        <table width="50%">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblFormatted" runat="server" Text="File Detail:For Formatted Offload type"
                                                        CssClass="normalbold"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <telerik:RadGrid ID="gvInstanceDetails" runat="server" AllowPaging="true" ShowStatusBar="true"
                                                        Width="1050px" Height="250px" AutoGenerateColumns="False" AutoExpandGroups="false"
                                                        PageSize="5" AllowMultiRowSelection="false" GridLines="None" AllowSorting="true"
                                                        OnNeedDataSource="gvInstanceDetails_NeedDataSource">
                                                        <%--  >--%>
                                                        <PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="" />
                                                        <MasterTableView AllowMultiColumnSorting="True">
                                                            <Columns>
                                                                <telerik:GridBoundColumn DataField="FileRaeted" HeaderText="Files Rated" SortExpression="FileRaeted">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="ip" HeaderText="Files in FTP " SortExpression="ip">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="FileFailure" HeaderText="Files re-tried sending to FTP"
                                                                    SortExpression="FileFailure">
                                                                </telerik:GridBoundColumn>
                                                            </Columns>
                                                        </MasterTableView>
                                                        <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="false">
                                                            <Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />
                                                            <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="" />
                                                        </ClientSettings>
                                                    </telerik:RadGrid>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <asp:Panel ID="pnlRawDetail" runat="server" Visible="false">
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblRaw" runat="server" Text="File Detail:For Raw Offload type" CssClass="normalbold"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <telerik:RadGrid ID="gvRawDetails" runat="server" AllowPaging="true" ShowStatusBar="true"
                                                        Width="1050px" Height="250px" AutoGenerateColumns="False" AutoExpandGroups="false"
                                                        PageSize="5" AllowMultiRowSelection="false" GridLines="None" AllowSorting="true"
                                                        OnNeedDataSource="gvRawDetails_NeedDataSource">
                                                        <%--  >--%>
                                                        <PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="" />
                                                        <MasterTableView AllowMultiColumnSorting="True">
                                                            <Columns>
                                                                <telerik:GridBoundColumn DataField="FileRaeted" HeaderText="Files in Queue" SortExpression="FileRaeted">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="ip" HeaderText="Files sent to FTP " SortExpression="ip">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="FileFailure" HeaderText="Files re-tried sending to FTP"
                                                                    SortExpression="FileFailure">
                                                                </telerik:GridBoundColumn>
                                                            </Columns>
                                                        </MasterTableView>
                                                        <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="false">
                                                            <Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />
                                                            <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="" />
                                                        </ClientSettings>
                                                    </telerik:RadGrid>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                </NestedViewTemplate>
                            </MasterTableView>
                            <ClientSettings EnableRowHoverStyle="true">
                                <Scrolling UseStaticHeaders="true" AllowScroll="true" />
                                <Scrolling />
                            </ClientSettings>
                        </telerik:RadGrid>
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>

 

And code behind for radgrid

 

  protected void gvJobDetails_onItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            DateTime jobDate;
            DateTime.TryParse(txtSelectDate.Text, out jobDate);

            int jobNumber = Convert.ToInt32(ddlSelectJob.SelectedItem.Value);
            string offloadType = ddlOffloadType.SelectedItem.Text;
            if (e.CommandName == "ExpandCollapse" && e.Item is GridDataItem)
            {
                GridDataItem parentItem = e.Item as GridDataItem;
                string instanceId = parentItem["INSTANCEID"].Text.ToString();
                // txtToFtp.Text = Convert.ToString(instanceId);
                lblInstance.Text = Convert.ToString(instanceId);
                RadGrid rg = parentItem.ChildItem.FindControl("gvInstanceDetails") as RadGrid;
                rg.Rebind();
                RadGrid gvRaw = parentItem.ChildItem.FindControl("gvRawDetails") as RadGrid;
                gvRaw.Rebind();
                

            }
            if (e.CommandName == RadGrid.ExpandCollapseCommandName && e.Item is GridDataItem)
            {
                if (ddlOffloadType.SelectedItem.Text == "Formatted Offload")
                {
                ((GridDataItem)e.Item).ChildItem.FindControl("pnlDetails").Visible = !e.Item.Expanded;
                }
                if (ddlOffloadType.SelectedItem.Text == "Raw Offload")
                {
                    ((GridDataItem)e.Item).ChildItem.FindControl("pnlRawDetail").Visible = !e.Item.Expanded;
                }

                foreach (GridItem item in e.Item.OwnerTableView.Items)
                {
                    if (item.Expanded && item != e.Item)
                    {
                        item.Expanded = false;
                    }
                }
            }
          
        }
        protected void Page_PreRender(object sender, EventArgs e)
        {

            // gvJobDeatail.Rebind();

        }
        protected void RadGrid_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridNestedViewItem)
            {
                (e.Item.FindControl("gvInstanceDetails") as RadGrid).NeedDataSource += new GridNeedDataSourceEventHandler(gvInstanceDetails_NeedDataSource);
                (e.Item.FindControl("gvRawDetails") as RadGrid).NeedDataSource += new GridNeedDataSourceEventHandler(gvInstanceDetails_NeedDataSource);
            }
        }
        protected void gvJobDetails_PreRender(object sender, EventArgs e)
        {
            HideExpandColumnRecursive(gvJobDeatail.MasterTableView);
        }
        public void HideExpandColumnRecursive(GridTableView tableView)
        {
            GridItem[] nestedViewItems = tableView.GetItems(GridItemType.NestedView);
            foreach (GridNestedViewItem nestedViewItem in nestedViewItems)
            {
                foreach (GridTableView nestedView in nestedViewItem.NestedTableViews)
                {
                    if (nestedView.Items.Count == 0)
                    {
                        nestedView.ParentItem.Expanded = false;
                    }
                    else
                    {
                        nestedView.ParentItem.Expanded = true;
                    }
                }
            }
        }

Eyup
Telerik team
 answered on 26 Aug 2015
2 answers
181 views

I have rad search box and bind it to a dataset in the page load event. I have auto complete disabled. When I type in four letters and click the search icon I just get a graphic of something churning. I wait 2 minutes and the drop down never appears. Is there anything else I have to do to get it to work.

 c# code in the page load event. The datasource "ds" does come back from my wcf service correct.

--===========================================

schUtility.MinFilterLength = 4;
schUtility.MaxResultCount = 15;
schUtility.DataValueField = "cust_name";
schUtility.DataTextField = "cust_id";
schUtility.DataSource = ds;
schUtility.DataBind();

--===========================================

I ask, because I'm on version 729.45 and it has issues. The wizard, for example, will not validate even though I cut and paste code from Telerik's web site. I also have issues with other controls, so I am not sure if the control is not working for me because of a bug or if I am doing something wrong.

Aneliya Petkova
Telerik team
 answered on 26 Aug 2015
2 answers
218 views

I have a RadEditor in form view like this:

<telerik:RadEditor runat="server" ID="txtNote" OnDataBinding="txtNote_DataBinding" OnExportContent="txtNote_ExportContent" Height="180px" Width="100%" EditModes="Design">
                                            <Tools>
                                                <telerik:EditorToolGroup>
                                                    <telerik:EditorTool Name="Cut" />
                                                    <telerik:EditorTool Name="Copy" />
                                                    <telerik:EditorTool Name="Paste" />
                                                </telerik:EditorToolGroup>
                                            </Tools>
                                        </telerik:RadEditor>

 ​For whatever reason, this always return empty string

                var txtNote = (fv.FindControl("txtNote") as RadEditor);
                if (txtNote.Text == "") // this is always true

I also try Content, Html, GetHtml() and they are all the same.

 

Ianko
Telerik team
 answered on 26 Aug 2015
1 answer
110 views

Hello,

If there is css class applied to link from Hyperlink Manager and try to remove link from text, link is not removed. When you remove css class from link and then try to remove link from text, it will remove link properly.

Steps to reproduce issue:

1. Give link to any text using Hyperlink Manager and also apply any css class.
2. Try to remove link from text using Unlink command. Link will ot be removed.
3. Now first remove class from text to which link is given and then remove link from text, it will be removed properly.

Can you please provide a solution to this issue ?

Thanks,
Khushboo

Ianko
Telerik team
 answered on 26 Aug 2015
6 answers
734 views
Hi,

I'm trying to remove styles on RadButton as said in this topic: http://www.telerik.com/forums/remove-styles-radlinkbutton
However, this doesn't work at all, I keep getting default style on IE 8 or Firefox (by removing class with firebug or IE dev toolbar, I get the good result).

Here is my code:
<telerik:RadButton ID="RadButtonValidate" runat="server" Text="Valider" ButtonType="StandardButton" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" EnableBrowserButtonStyle="false" EnableTheming="false" EnableAjaxSkinRendering="false" />


I use Telerik ASP.NET version 2014.1.225.45.
Can you help me ?
Danail Vasilev
Telerik team
 answered on 26 Aug 2015
4 answers
140 views
Is it possible to combine filtering and web service binding within the same Rad Drop Down Tree control?

Thanks in advance for your answer,

Giorgos
Peter Filipov
Telerik team
 answered on 26 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?