Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
403 views
The attached image shows two RadMenus. The first is mobile rendered menu with a custom sprite. Works great!

The second menu (WorldWideGarvin > Visualization) shows the second menu, which I use for both navigation and as a breadcrumb trail.

I have modified several "rm" styles starting with the base MetroTouch skin (latest release). Background effects are working fine.

I would also like to remove the borders entirely using the following code, which of course works for the white background but does not remove the borders or effects on the individual menu items. How do I make those go away so that only the menu title and image remain?

    }
 
.wwgItem {
    background-color: white;
    border-color:white;
    border-style:none;
    letter-spacing: .15em;
    font-size: 14pt;
 
    }
 
.rmFocused {

Magdalena
Telerik team
 answered on 17 Sep 2015
5 answers
237 views

Hello,

I am in the process of migrating some combo boxes that used to be data source driven to be populated from a web service. I am facing a scenario where I need to force the combo box to load by calling ComboBox.DataBind() in the code behind. However, following the call the ComboBox contains no data!

I have tried searching for a solution and I have referred to the documentation but I can't find anything that works. I should mention that the combo box is populated if the user interacts with it so it is configured correctly, the web service is returning data and so on.

I have tried experimenting with different values for EnableLoadOnDemand and EnableAutomaticLoadOnDemand but no luck!

Any help would be appreciated, so thanks in advance.

John.

 

John
Top achievements
Rank 1
 answered on 17 Sep 2015
6 answers
51 views

Hi ...

I would like to have a documentation for these 2 methods ...

I figured out, that you can set some values with the get_agendaViewSettings() method eg. get_agendaViewSettings().numberOfDays = 30;

I don't know how to use the set_agendaViewSettings().

Thank You

Peter

Bernie
Top achievements
Rank 1
 answered on 17 Sep 2015
1 answer
89 views

Hi,

 I want to limit the number of appointment that can overlap at the same time.

I found here how to limit that when a new appointment is created. However, lets say I want to limit to 2 appointment that overlap, I create two appointments from 8 to 9 and one from 10 to 11, if I drag and Drop the 10 to 11 to 8:30-9:30, the system will not detect that the limit is reached.

When I look in the update, the appointment that I get as "sender" is the one with the old start and end, so it is not detected as being in the interval by using "

GetAppointmentsInRange"

 

Can you help me ?

 

 
Peter Filipov
Telerik team
 answered on 17 Sep 2015
3 answers
120 views

Hi,

 

I like to set a conditional OnResponseEnd client event on RadAjaxPanel?

Would it be possible to set like this:

 

 

 if............

RadAjaxPanel1.ClientEvents.OnResponseEnd = "Doit"

 end if

 

My page keeps on saying "Object reference not set to an instance of an object" on this line​

 

Thanks,

Marc

Maria Ilieva
Telerik team
 answered on 17 Sep 2015
1 answer
201 views

Hi,

 I want change the colour of a navigation.

 The property BackColour doesn't work, and if I want modify a Skin with your tool http://stylebuilder.telerik.com this control doesn't appear.

 How can i change the background colour?

 

Thanks 

Ivan Danchev
Telerik team
 answered on 17 Sep 2015
11 answers
383 views
Hi,

I am using Rad Scheduler in timeline view by grouping vertically on a particular resource (ID). However each resource (ID) has a list of attributes that is residing in another data set. Currently I am using a Rad Grid to the left side of the Rad Scheduler to display the different attributes (please check the attached screenshot). But they are two different controls. How can I display the attributes as custom columns inside the Rad Scheduler Control?

Thanks in advance.

Regards,
Navaneeth
Plamen
Telerik team
 answered on 17 Sep 2015
7 answers
701 views
Hello:

I've noticed that periodically, my asp.net application will display a message stating that the telerik controls are an eval version and to click the link to buy the non demo version.  i don't know why this is happening because we have purchased the actual version (i have never installed the trial version).  the download link that you all emailed to me pointed me to:
RadControls_for_ASP.NET_AJAX_2008_1_515_dev.exe

i downloaded that file and installed it.
the application was written using vs.net 2008 .net framework 2.0.  i referenced the telerick.web.ui dll in the "bin" folder and not the bin35 folder.

why is this happening?  is there some additional file that I need to deploy to the web server to address this?  again.  it only happens every once and awhile.

any thoughts????
Marin Bratanov
Telerik team
 answered on 17 Sep 2015
2 answers
207 views

I'm trying to save uploaded files into a db and return the row id.  I'm having significant problems with getting the uploaded files from the RadTreeView node.  The application allows users to drag/drop a file onto a node. This part is working. However, on the server side, the uploadedfiles is always empty.  So I implemented a custom handler and I can access and save the file at that point. However, I can not access the results object that is returned because my OnFileUploaded event is not getting fired. I need the returned file id so I can open a new window.

I have a hidden button that is clicked via the OnClientFileUploaded event by doing a postback on the hidden button. 

Here's my control:

   <rad:RadAsyncUpload runat="server" ID="radUpload" OnClientFilesUploaded="OnClientFilesUploaded" PostbackTriggers="btnUploadFiles"
  DisableChunkUpload="false" EnableFileInputSkinning="false" UploadedFilesRendering="AboveFileInput"  MultipleFileSelection="Automatic" Skin="Default" OnFileUploaded="RadAsyncUpload1_FileUploaded"   OverwriteExistingFiles="true"  OnClientAdded="OnClientAdded" HttpHandlerUrl="~/Tools/CustomHandler.ashx">

 

Is there another way to access the results object without using the OnFileUploaded event?  

 

Jayzle
Top achievements
Rank 1
 answered on 17 Sep 2015
4 answers
274 views

Hi There,

I am using a custom filter in my RadGrid, but when debugging I noticed that the OnTextChanged event got triggered twice. However, if I remove the AjaxSetting section, everything works fine. But I do need to config ajax settings in my application. Is there anyone to explain why this is happening? The following is the demo code. Thanks a lot. 

TestCustomFilter.aspx

 

<%@ Page Language="C#" AutoEventWireup="true" EnableViewStateMac="false" ViewStateEncryptionMode="Never" CodeFile="TestCustomFilter.aspx.cs" Inherits="TestCustomFilter" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head id="Head1" runat="server">
    <title>Telerik ASP.NET Example</title>
    <link rel="Stylesheet" href="../Styles/styles.css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-medium">
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource"
            GridLines="None" AllowPaging="true"
            AllowSorting="true" PageSize="10" AllowFilteringByColumn="true">
            <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="None" CurrentResetPageIndexAction="SetPageIndexToFirst"
                DataKeyNames="OrderID" Dir="LTR" Frame="Border"
                TableLayout="Auto">
                <Columns>
                    <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="OrderID" Display="false"
                        DataType="System.Int32" FilterListOptions="VaryByDataType" ForceExtractValue="None"
                        HeaderText="OrderID" ReadOnly="True" SortExpression="OrderID" UniqueName="OrderID">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="ShipName" HeaderText="Ship Name" SortExpression="ShipName">
                        <FilterTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True"  OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
                        </FilterTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="targetControl" runat="server" NavigateUrl="#" Text='<%# Eval("ShipName") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn AllowSorting="true" DataField="ShipCountry" HeaderText="Ship Country"
                        SortExpression="ShipCountry" UniqueName="ShipCountry">
                    </telerik:GridBoundColumn>
                </Columns>
                <PagerStyle PageSizeControlType="RadDropDownList" ShowPagerText="false" />
            </MasterTableView>
        </telerik:RadGrid>
    </div>
    </form>
</body>
</html>

 

 

TestCustomFilter.aspx.cs

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using Telerik.Web.UI;
using System.IO;
 
public partial class TestCustomFilter : System.Web.UI.Page
{
    public class MyOrder
    {
        public int OrderID { get; set; }
        public DateTime OrderDate { get; set; }
        public double Freight { get; set; }
        public string ShipName { get; set; }
        public string ShipCountry { get; set; }
    }
 
    protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        LoadData();
    }
 
    protected void RadGrid1_PreRender(object sender, EventArgs e)
    {
        LoadData();
    }
 
    private void LoadData()
    {
        MyOrder _order1 = new MyOrder();
        _order1.OrderID = 1;
        _order1.OrderDate = new DateTime(2014, 1, 18);
        _order1.Freight = 15.61;
        _order1.ShipCountry = "Canada";
        _order1.ShipName = "David";
 
        MyOrder _order2 = new MyOrder();
        _order2.OrderID = 2;
        _order2.OrderDate = new DateTime(2015, 9, 12);
        _order2.Freight = 12.39;
        _order2.ShipCountry = "US";
        _order2.ShipName = "Jack";
 
        MyOrder _order3 = new MyOrder();
        _order3.OrderID = 3;
        _order3.OrderDate = new DateTime(2015, 6, 2);
        _order3.Freight = 6.81;
        _order3.ShipCountry = "Mexico";
        _order3.ShipName = "Howard";
 
        MyOrder _order4 = new MyOrder();
        _order4.OrderID = 4;
        _order4.OrderDate = new DateTime(2014, 3, 26);
        _order4.Freight = 19.92;
        _order4.ShipCountry = "Canada";
        _order4.ShipName = "William";
 
        MyOrder _order5 = new MyOrder();
        _order5.OrderID = 5;
        _order5.OrderDate = new DateTime(2015, 5, 15);
        _order5.Freight = 9.96;
        _order5.ShipCountry = "US";
        _order5.ShipName = "Don";
 
        List<MyOrder> _myList = new List<MyOrder>();
        _myList.Add(_order1);
        _myList.Add(_order2);
        _myList.Add(_order3);
        _myList.Add(_order4);
        _myList.Add(_order5);
 
        RadGrid1.DataSource = _myList;
    }
 
    protected void TextBox1_TextChanged(object sender, EventArgs e)
    {
        TextBox TextBox1 = sender as TextBox;
        GridColumn column = RadGrid1.MasterTableView.GetColumnSafe("ShipName");
        column.CurrentFilterFunction = GridKnownFunction.Contains;
        column.CurrentFilterValue = TextBox1.Text.Trim();
        RadGrid1.Rebind();
    }
}

Don
Top achievements
Rank 1
 answered on 16 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?