Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
237 views
This is puzzling me a bit.

I have a RadEditor on my page and it has the Image Manager as one of the tool bar options. During development & testing locally the Image Manager works as expected. However, after I upload my site to my host provider, when I launch the Image Manager, instead of getting what one would normally expect, it opens up a window with the site's home page instead. All the other buttons on the toolbar appear to function as designed. It's just with this particular one.

Has anyone encountered this before?

Thanks...

Signed,
Confused
Katherine
Top achievements
Rank 1
 answered on 07 Jun 2013
3 answers
233 views
I am trying to use the autocomplete functionality on a ComboBox that is in a GridView Edit form.  I can select multiple objects but it is only writing the last item to the database.  I am using Update command that wwas created by my GridView's sqldatasource.
Here is the code
<telerik:RadComboBox ID="cboStaff" runat="server" Width="400px" Height="140px" MarkFirstMatch="true"  
     AllowCustomText="true"  AutoCompleteSeparator=";" 
     EmptyMessage="Select Staff assigned to case" DataSourceID="SqlDataSource5" DataTextField="res_name"
     DataValueField
="res_name" 
     AppendDataBoundItems="true" SelectedValue='<%# Bind( "staff" ) %>'
</telerik:RadComboBox>



<asp:SqlDataSource ID="SqlDataSource4" runat="server" 
    ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>" DeleteCommand="DELETE FROM [SurgeryCases_Main] WHERE [SurgeryCases_Main_id] = @original_SurgeryCases_Main_id" 
    InsertCommand="INSERT INTO [SurgeryCases_Main] ([ptcase_id], [displayname], [birth_datetime], [gender], [schedcase_start_datetime], [schedcase_stop_datetime], [actual_room_abbr], [actual_proname], [primpract_res_name], [crna], [staff], [sent_time], [pau_time], [or_time]) VALUES (@ptcase_id, @displayname, @birth_datetime, @gender, @schedcase_start_datetime, @schedcase_stop_datetime, @actual_room_abbr, @actual_proname, @primpract_res_name, @crna, @staff, @sent_time, @pau_time, @or_time)" 
    OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT * FROM [SurgeryCases_Main]" 
    UpdateCommand="UPDATE [SurgeryCases_Main] SET [displayname] = @displayname, [birth_datetime] = @birth_datetime, [gender] = @gender, [actual_room_abbr] = @actual_room_abbr, [schedcase_start_datetime] = @schedcase_start_datetime, [primpract_res_name] = @primpract_res_name, [actual_proname] = @actual_proname, [crna] = @crna, [staff] = @staff WHERE [SurgeryCases_Main_id] = @original_SurgeryCases_Main_id"
    <DeleteParameters> 
        <asp:Parameter Name="original_SurgeryCases_Main_id" Type="Decimal" /> 
    </DeleteParameters> 
    <UpdateParameters> 
        <asp:Parameter Name="ptcase_id" Type="Decimal" /> 
        <asp:Parameter Name="displayname" Type="String" /> 
        <asp:Parameter Name="birth_datetime" Type="DateTime"  /> 
        <asp:Parameter Name="gender" Type="String" /> 
        <asp:Parameter Name="schedcase_start_datetime" Type="DateTime"  /> 
        <asp:Parameter Name="schedcase_stop_datetime" Type="DateTime" /> 
        <asp:Parameter Name="actual_room_abbr" Type="String" /> 
        <asp:Parameter Name="actual_proname" Type="String" /> 
        <asp:Parameter Name="primpract_res_name" Type="String" /> 
        <asp:Parameter Name="crna" Type="String" /> 
        <asp:Parameter Name="staff" Type="String" /> 
        <asp:Parameter Name="sent_time" Type="DateTime"  /> 
        <asp:Parameter Name="pau_time" Type="DateTime"  /> 
        <asp:Parameter Name="or_time" Type="DateTime"  /> 
        <asp:Parameter Name="original_SurgeryCases_Main_id" Type="Decimal" /> 
    </UpdateParameters> 
    <InsertParameters> 
        <asp:Parameter Name="ptcase_id" Type="Decimal" /> 
        <asp:Parameter Name="displayname" Type="String" /> 
        <asp:Parameter Name="birth_datetime" Type="DateTime"  /> 
        <asp:Parameter Name="gender" Type="String" /> 
        <asp:Parameter Name="schedcase_start_datetime" Type="DateTime"  /> 
        <asp:Parameter Name="schedcase_stop_datetime" Type="DateTime" /> 
        <asp:Parameter Name="actual_room_abbr" Type="String" /> 
        <asp:Parameter Name="actual_proname" Type="String" /> 
        <asp:Parameter Name="primpract_res_name" Type="String" /> 
        <asp:Parameter Name="crna" Type="String" /> 
        <asp:Parameter Name="staff" Type="String" /> 
        <asp:Parameter Name="sent_time" Type="DateTime"  /> 
        <asp:Parameter Name="pau_time" Type="DateTime"  /> 
        <asp:Parameter Name="or_time" Type="DateTime"  /> 
    </InsertParameters> 
</asp:SqlDataSource> 

AJ
Top achievements
Rank 1
 answered on 07 Jun 2013
4 answers
161 views
Hi
i have many imageButton on my page and this imageButton are linked to the radwindow which is always open in the center position on my window. My problem is that i would like to open the radwindow next the imageButton that open it. So i wouldn't scroll the window to find the radwindow. 
below my script:

<telerik:GridTemplateColumn HeaderText="Dealers" HeaderStyle-Width="70px" AllowFiltering="false">
        <ItemTemplate>
                  <asp:ImageButton ID="Ib_Button" runat="server" CommandName="Redirect" ImageUrl='~/Images/Add.png' />
         </ItemTemplate
</telerik:GridTemplateColumn>


the command does this:

if (e.CommandName == "Redirect")        {             GridDataItem item = (GridDataItem)e.Item;             RadAjaxManager1.ResponseScripts.Add(string.Format("Open('{0}');", item.GetDataKeyValue("Code").ToString()));        }


and the javascript that open the radwindow is:
function Open(code) {
            var wnd = window.radopen('DealersD.aspx?Customer=' + code, "RadWindow1");
        }


Can someone help me to solve this problem .
Another question: how can i set the window so that is always view in the radwindow position?
Many thanks. 
Colince
Top achievements
Rank 1
 answered on 07 Jun 2013
1 answer
215 views
Hi,
    Are there any RadControls which has 3 textboxes and on tabbing cursor moving to the next box
Requirement: We have 3 textboxes on the page, user will enter the number in the first textbox after entering the number in the first textbox cursor should move to the second textbox and to third.
Let us know if there are any RadControls to achieve this.?
This is required for Phone number / SSN.

I know there is RadMasked Text box, but the user experience is different from having three separate boxes.

Thanks,
Rakesh
Vasil
Telerik team
 answered on 07 Jun 2013
1 answer
143 views
I am attempting to use a rad slider for one of my projects.  The text for the items is in a bad location, the font is black, and the last one goes on the next line (see attached image).  I don't think I am doing anything fancy that would cause this issue.  I was going to attach a sample project, but the file type ZIP is not allowed.  It will be a little long due to the style sheet, but the code is below (nothing in my code behind, so it is not included).  Any help would be greatly appreciated!

ASPX:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RadWebTest.aspx.cs" Inherits="RadWebTest.RadWebTest" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
    <link href="Slider.SST_Touch.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-color: #2872E7">
    <script type="text/javascript">
        function OnClientLoaded() {
            window.setTimeout('ResizeRadSlider()', 0);
        }
 
        function ResizeRadSlider() {
            var slider = $find('<%= RadLengthSlider.ClientID %>');
            var sliderWrapperElement = $get('RadSliderWrapper_' + slider.get_id());
            var divElement = $get('RadLengthSliderDiv');
 
            // Hide the slider so that you can obtain the correct size of the parent element.    
            sliderWrapperElement.style.display = 'none';
            var newWidth = divElement.offsetWidth - 50;
            sliderWrapperElement.style.display = '';
            slider.set_width(newWidth);
            // If you are using a version which earlier than the Q3 2008 SP2 version of RadControls  
            // you should also call the repaint() method when setting the size. This is fixed and it is not needed  
            // in the mentioned and later versions 
            // slider.repaint();    
        }
 
        window.onresize = ResizeRadSlider;
    </script>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
    <div>
                                        <div id="RadLengthSliderDiv">
                                            <telerik:RadSlider ID="RadLengthSlider" runat="server" EnableDragRange="True" MaximumValue="120" MinimumValue="36"
                                                SmallChange="12" LargeChange="12" IsSelectionRangeEnabled="true" ItemType="Tick"
                                                SelectionEnd="120" SelectionStart="36" Skin="SST_Touch"   
                                                ShowDecreaseHandle="False" ShowIncreaseHandle="False" EnableEmbeddedSkins="False" ThumbsInteractionMode="Push"
                                                TrackPosition="Center" />
                                        </div>
    </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>

CSS:
.RadSlider_SST_Touch {
    padding-top: 15px;
    padding-bottom: 15px;
}
 
.RadSlider_SST_Touch .rslTrack {
    border-color: #4f4f4f;
}
 
.RadSlider_SST_Touch div.rslTop a.rslDraghandle {
    background-image: url('Slider/DragHandleDown.png');
}
 
.RadSlider_SST_Touch div.rslHorizontal a.rslHandle {
    width: 28px;
    height: 28px;
    line-height: 28px;
    border: 1px solid #4f4f4f;
    border-radius: 45px;
    background-image: url('Common/radActionsSprite.png');
    background-color: #212121;
}
 
.RadSlider_SST_Touch div.rslHorizontal a.rslHandle:hover {
    background-color: #d9d9d9;
    border: white;
}
     
.RadSlider_SST_Touch div.rslHorizontal a.rslHandle:active,
.RadSlider_SST_Touch div.rslHorizontal a.rslHandle:focus{
    background-color:#cccccc;
    border:1px solid #cccccc
}
 
.RadSlider_SST_Touch div.rslHorizontal a.rslDecrease,
.RadSlider_SST_Touch div.rslHorizontal a.rslDecrease:hover,
.RadSlider_SST_Touch div.rslHorizontal a.rslDecrease:active,
.RadSlider_SST_Touch div.rslHorizontal a.rslDecrease:focus{
    margin:-3px 0 0 -15px;
    background-position:-111px -111px
}
 
.RadSlider_SST_Touch div.rslHorizontal a.rslIncrease,
.RadSlider_SST_Touch div.rslHorizontal a.rslIncrease:hover,
.RadSlider_SST_Touch div.rslHorizontal a.rslIncrease:active,
.RadSlider_SST_Touch div.rslHorizontal a.rslIncrease:focus{
    margin:-3px -4px 0 0;
    background-position:-111px -161px
}
 
.RadSlider_SST_Touch div.rslHorizontal a.rslDraghandle{
    width:23px;
    height:23px;
    border-radius:45px;
    background-image:none;
    border:2px solid #000000;
    background-color:#d9d9d9;
    top:-2px
}
 
.RadSlider_SST_Touch div.rslHorizontal a.rslDraghandle:hover{
    width:22px;
    height:22px;
    border:3px solid #000000;
    background-color:#d9d9d9
}
 
.RadSlider_SST_Touch div.rslHorizontal a.rslDraghandle:active,
.RadSlider_SST_Touch div.rslHorizontal a.rslDraghandle:focus{
    width:22px;
    height:22px;
    border:3px solid #d9d9d9;
    background-color:#000000
}
 
.RadSlider_SST_Touch div.rslHorizontal div.rslTrack{
    height:9px;
    line-height:9px;
    background-color:#d9d9d9;
    border:0
}
 
.RadSlider_SST_Touch div.rslHorizontal div.rslSelectedregion{
    height:9px;
    line-height:9px;
    background-color:#00bff4
}
 
.RadSlider_SST_Touch div.rslHorizontal .rslItem{
    background-image:url('Slider/ItemHorizontalBgr.png');
    color: #ffffff;
}
 
.RadSlider_SST_Touch div.rslHorizontal.rslMiddle .rslHandle{
    margin-top:-15px
}
 
.RadSlider_SST_Touch div.rslHorizontal li.rslItem span{
    display:inline-block;
    zoom:1;
    *display:inline;
    font-size:13px;
    color: #ffffff;
}
 
.RadSlider_SST_Touch div.rslHorizontal.rslMiddle div.rslTrack{
    margin-top:-5px
}
 
.RadSlider_SST_Touch div.rslVertical a.rslHandle{
    width:28px;
    height:28px;
    line-height:28px;
    border:1px solid #4f4f4f;
    border-radius:45px;
    background-image:url('Common/radActionsSprite.png');
    background-color:#d9d9d9
}
 
.RadSlider_SST_Touch div.rslVertical a.rslHandle:hover{
    background-color:#d9d9d9;
    border:#d9d9d9
}
 
.RadSlider_SST_Touch div.rslVertical a.rslHandle:active,
.RadSlider_SST_Touch div.rslVertical a.rslHandle:focus{
    background-color:#d9d9d9;
    border:1px solid #cccccc
}
 
.RadSlider_SST_Touch div.rslVertical a.rslDecrease,
.RadSlider_SST_Touch div.rslVertical a.rslDecrease:hover,
.RadSlider_SST_Touch div.rslVertical a.rslDecrease:active,
.RadSlider_SST_Touch div.rslVertical a.rslDecrease:focus{
    margin:-16px -3px 0 0;
    background-position:-111px -11px
}
 
.RadSlider_SST_Touch div.rslVertical a.rslIncrease,
.RadSlider_SST_Touch div.rslVertical a.rslIncrease:hover,
.RadSlider_SST_Touch div.rslVertical a.rslIncrease:active,
.RadSlider_SST_Touch div.rslVertical a.rslIncrease:focus{
    margin:0 -3px -4px 0;
    background-position:-111px -61px
}
 
.RadSlider_SST_Touch div.rslVertical div.rslTrack{
    width:9px;
    background-color:#d9d9d9;
    border:0;
    left:11px
}
 
.RadSlider_SST_Touch div.rslVertical.rslRight div.rslTrack{
    left:auto
}
 
.RadSlider_SST_Touch div.rslVertical.rslCenter div.rslTrack{
    left:50%;
    margin-left:11px
}
 
.RadSlider_SST_Touch div.rslVertical.rslCenter .rslItemsWrapper .rslLargeTick,
.RadSlider_SST_Touch div.rslVertical.rslCenter .rslItemsWrapper .rslSmallTick{
    margin:0 0 0 15px;
    color: #ffffff;
}
 
.RadSlider_SST_Touch div.rslVertical .rslSelectedregion{
    width:9px;
    background-color:#00bff4
}
 
.RadSlider_SST_Touch div.rslVertical a.rslDraghandle{
    width:23px;
    height:23px;
    border-radius:45px;
    background-image:none;
    border:2px solid #000000;
    background-color:#d9d9d9;
    left:-1px!important;
    *left:-8px!important
}
 
.RadSlider_SST_Touch div.rslVertical a.rslDraghandle:hover{
    width:22px;
    height:22px;
    border:3px solid #000000;
    background-color:#d9d9d9
}
 
.RadSlider_SST_Touch div.rslVertical a.rslDraghandle:active,
.RadSlider_SST_Touch div.rslVertical a.rslDraghandle:focus{
    width:22px;
    height:22px;
    border:3px solid #d9d9d9;
    background-color:#000000
}
 
.RadSlider_SST_Touch div.rslVertical .rslItem{
    background-image:url('Slider/ItemVerticalBgr.png');
    color: #ffffff;
}
 
.RadSlider_SST_Touch div.rslVertical li.rslItem span{
    font-size:13px;
    padding:1px 3px;
    color: #ffffff;
}
 
.RadSlider_SST_Touch .rslLeft a.rslDraghandle{
    background-image:url('Slider/DragVerticalHandleRight.png')
}
 
.RadSlider_SST_Touch .rslItem,.RadSlider_SST_Touch .rslLargeTick span{
    color:white
}
 
.RadSlider_SST_Touch .rslItemsWrapper .rslItemSelected{
    color:white
}
 
.RadSlider_SST_Touch .rslTop .rslSmallTick,
.RadSlider_SST_Touch .rslBottom .rslSmallTick{
    background-image:url('Slider/SmallChangeHorizontal.png')
}
 
.RadSlider_SST_Touch .rslTop .rslLargeTick,
.RadSlider_SST_Touch .rslBottom .rslLargeTick{
    background-image:url('Slider/LargeChangeHorizontal.png')
}
 
.RadSlider_SST_Touch .rslLeft .rslSmallTick,
.RadSlider_SST_Touch .rslRight .rslSmallTick{
    background-image:url('Slider/SmallChangeVertical.png')
}
 
.RadSlider_SST_Touch .rslLeft .rslLargeTick,
.RadSlider_SST_Touch .rslRight .rslLargeTick{
    background-image:url('Slider/LargelChangeVertical.png')
}
 
.RadSlider_SST_Touch .rslMiddle .rslSmallTick{
    background-image:url('Slider/SmallChangeMiddleHorizontal.png')
}
 
.RadSlider_SST_Touch .rslLargeTick{
    background-image:url('Slider/LargeChangeMiddleHorizontal.png')
}
 
.RadSlider_SST_Touch .rslCenter .rslSmallTick{
    background-image:url('Slider/SmallChangeCenterVertical.png')
}
 
.RadSlider_SST_Touch .rslCenter .rslLargeTick{
    background-image:url('Slider/LargelChangeCenterVertical.png')
}
 
 div.RadSlider_SST_Touch .rslIncrease {
    border-top-color: rgb(79, 79, 79);
}
 
 div.RadSlider_SST_Touch .rslTrack {
    background-color: rgb(217, 217, 217);
}
 
 div.RadSlider_SST_Touch .rslSelectedregion {
    background-color: rgb(0, 191, 244);
}
Slav
Telerik team
 answered on 07 Jun 2013
1 answer
55 views
I'm using a radtabstrip with radmultipage and radpageviews.
The radmultipage is set to update itself in the radajaxmanager (turning this off and doing full post back fixes this issue, but not what I want).

If I try to change the read only or enabled properties in server-side on the ajax callback, then the styles don't work properly.
Enabled style works, but the initial style is not the skin that I'm using (radskinmanager and radformdecorator on page as well).

The read only style doesn't show until I mouse over the control.

I have an example I could email you
Nencho
Telerik team
 answered on 07 Jun 2013
3 answers
247 views

Hi,

When there is MultipleRowSelection = true & EnablePostBackOnRowClick = true, the event "SelectedIndexChanged" is fired everytime I check/uncheck row. That's great.  However, When I tried to uncheck the last selected row (so that now the grid has no row selected), the event "SelectedIndexChange" didn't fire.

I found a similiar post in here:
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-deselect-not-always-firing-selectedindexchanged.aspx

in which they suggested work-around using Javascript:

 

//JavaScript
function RowClick(sender, eventArgs) {
    sender.get_masterTableView().fireCommand("Select", eventArgs.get_itemIndexHierarchical());
}

//Code-Behind

PatientList_Grid.ClientSettings.ClientEvents.OnRowClick = "RowClick";

 

PatientList_Grid.ClientSettings.ClientEvents.OnRowDeselecting = "RowClick";



 

 

 

private void Grid_PatientList_SelectedIndexChanged(object sender, EventArgs e) 
{
       RadGrid grd = sender as RadGrid;
       int SelectedCount = grd.SelectedItem.Count;
       lbl_DIsplay.Text = "Number of Item Selected: " + SelectedCount;
}


I did it as above and now the event "SelectedIndexChanged" does fire on deselecting last row. But, in the "SelectedIndexChanged" event, the grid show that it still have one item selected:

 


It still show up as 1, even though, you see, since the last selected has been deselected, it should be 0.

I'm using the latest version of Telerik AJAX control.

Thanks

Lamk.

Wired_Nerve
Top achievements
Rank 2
 answered on 07 Jun 2013
6 answers
90 views
Hi guys,

We are using a RadScheduler in day-view mode and have it grouped by resource. Our setup is basically the same as your demo page (http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourcegrouping/defaultcs.aspx with the 'Day' view selected).

Yesterday we switched to the latest Telerik.Web.Ui.dll and Telerik.Web.UI.Skins.dll assemblies released in your latest hotfix, i.e. version 2013.1.403.45.

We use OverflowBehavior="Expand" on the scheduler and have noticed that this now seems to be broken (at least from our perspective) when using the new assemblies. When we switch back to the old assemblies (2013.1.220.45) it works as expected.

Reproduction steps:
* Using the new assemblies, place the following RadScheduler on a basic page with the usual RadScriptManager (note this is using one of your demo "Teacher/Classes" databases). Note the OverflowBehavior="Expand" value.

<a:MvcRadScheduler ID="RadScheduler1" runat="server" OverflowBehavior="Expand" GroupBy="Teacher">
        <webservicesettings path="~/SchedulerService" resourcepopulationmode="ServerSide" usehttpget="False"></webservicesettings>
        <resourcetypes>
            <telerik:ResourceType Name="Teacher" AllowMultipleValues="true" />
        </resourcetypes>
        <timelineview userselectable="false" />
        <monthview userselectable="false" />
        <dayview userselectable="false" headerdateformat="dddd, MMMM dd, yyyy" />
        <weekview userselectable="false" />
        <timeslotcontextmenusettings enabledefault="False" />
        <appointmentcontextmenusettings enabledefault="False" />
    </a:MvcRadScheduler>

* Navigate to the page and try to 'show 24 hrs'.

Expected result: The scheduler should expand vertically and NO scroll bars should be visible.
Actual result: The scheduler adds scroll bars and does not expand vertically. For us, the scroll bars also cause a reduction in width of the main content table in the scheduler, but NO reduction in width of the header cells, so the header cells no longer line up with the table cells.

The result is as-expected if the above steps are followed using the older assemblies (2013.1.220.45). The problems only seem to be happening with the new assemblies.

Is this indeed a bug? If it is not a bug, could you kindly inform us how we can achieve the "expand" behavior with the new assemblies?

For now we will have to keep working with the old assemblies because we would prefer to have the "expand" behavior.

Cheers,
Sam

P.S. I don't know if it's related, but if you select OverflowBehavior="Expand" on your demo page...
http://demos.telerik.com/aspnet-ajax/scheduler/examples/customization/defaultcs.aspx
...and then try to do a 'show 24hrs' on the scheduler on that page, it doesn't have any affect (i.e. no scroll bars, no vertical expansion).

Sam
Top achievements
Rank 1
 answered on 07 Jun 2013
7 answers
237 views
Hi,

I have a RadDatePicker with a calendar popup. The problem is the popup is hidden behind a PDF file loaded in a radpane just below the RadDatePicker control.

What I'm searching for is a solution similar to this one but with RadDatePicker:
http://www.telerik.com/support/kb/aspnet-ajax/window/control-is-shown-behind-a-heavy-weight-object-pdf-flash-activex-etc.aspx

I have tested the Overlay on RadColorPicker and it works perfectly for what I want to do. Do you have something similar for the DatePicker?

Thank you
David Morin
Top achievements
Rank 1
 answered on 07 Jun 2013
1 answer
347 views
I have several GridDropDownColumns that I would like to bind to data tables in the code behind class.
The examples I have seen show modifying the ItemDataBound method and testing to see if the control is in Edit mode. When I add this logic and debug it, it seems like it never gets into edit mode.  Therefore, I can't create an instance of the editor for the control and set the datasource and other properties.   How do I force the control into Edit mode?

Here is the code ASP.net code to define the grid:

  <asp:Panel ID="PnlPromoDetails" runat="server">
        <telerik:RadGrid ID="radGridPromoDetails" runat="server" Skin="Vista"
            AlternatingItemStyle-BackColor="#EDEDED" Width="1100px"
            AutoGenerateColumns="False" GridLines="None" OnNeedDataSource="DetailsGrid_NeedDataSource"
            OnItemDataBound="DetailsResultGrid_ItemDataBound" Height="16px" >
            <ClientSettings>
                <DataBinding EnableCaching="true" />
            </ClientSettings>
            <AlternatingItemStyle BackColor="#EDEDED" />
            <MasterTableView>
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <%--***********************************************--%>
                    <telerik:GridBoundColumn DataField="CampaignType"
                        HeaderText="Campaign&lt;/br&gt;Type" UniqueName="CampaignType">
                        <HeaderStyle Font-Bold="True" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <%--***********************************************--%>
                    <telerik:GridDropDownColumn
                        DataSourceID=""
                        DataField=""
                        HeaderText="Account</br>Types"
                        UniqueName="chkAccountTypes" EmptyListItemText="(none)" ColumnEditorID="chkAccountTypes" Display="False">
                        <HeaderStyle Font-Bold="True" HorizontalAlign="Center"/>
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridDropDownColumn>

                </Columns>
                <GroupHeaderItemStyle Font-Bold="true" />
                <NoRecordsTemplate>
                    <asp:Label ID="lblNoPromoDetails" runat="server" Font-Bold="true"
                        ForeColor="Red" Text=""
                </NoRecordsTemplate>
            </MasterTableView>
        </telerik:RadGrid>
        </asp:Panel>



You will notice that I have not defined a data source from the drop down column.  I was hoping to do that programmatically.  The data table I have has one column in it called "LegalName" and the name of the table is "LegalInfo".  That table exists in the code behind.

I have worked on this all day and can't figure it out.  I hope someone can help.

I also thought of calling a method from the ASPX file to return the data table but that doesn't seem to work either.

I have looked at many examples of how to do this and none of them seem to work for me.

Andrey
Telerik team
 answered on 07 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?