Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
185 views

I have a grid with the following column

<telerik:GridCheckBoxColumn UniqueName="Active" DataField="Active" HeaderText="Active"  > 
                        </telerik:GridCheckBoxColumn> 

The problem is in the grid for the filter it shows a text box with the filter icon next to it.  I want the filter to be a checkbox, just like the fields are in the grid.  Why do the filter not match the rest of the grid
Eric Klein
Top achievements
Rank 1
 answered on 26 Aug 2009
1 answer
76 views
Is anyone else out there having issues with even a blank brand new appointment loading really really really slowly?  I've tried the optimization tips of using regular text boxes instead of telerik input boxes, but am still having major time delays.
Peter
Telerik team
 answered on 26 Aug 2009
1 answer
68 views
Hi All
I am trying to build a user controls todisplay a very long Tree so i Wrap the Tree inside RadComboBox
and  every thing worked just fine  but when I Switch from English to Arabic I Noticed that the Plus Sign is disappeded
I compare the Html for both Arabic and English via ViewSource in IE and they both are the Same  and a fter long time searching and trail and error we found that if We  remove the  http://www.w3.org/TR/html4/loose.dtd 
from the Page Header the Tree work fine in both arabic and English but this cause a big problim with the Menus
if any one have any Idea what cause this I will be very greatful
following are the code for the User control Html 

I am Using VS2008 , Windows Server 2008 and and SharePoint2007 as Deployment Enviroment

the user controls
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

 

<%

@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucTimeFilter.ascx.cs"

 

 

Inherits="PMS.UI.ucTimeFilter" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<

 

script language="javascript" type="text/javascript">

 

 

function ShowTooltip(element) {

 

 

if (element.childNodes[2] != null) {

 

element.title = element.childNodes[2].value;

}

}

 

var div1 = document.getElementById("dvTreeView");

 

div1.onclick = StopPropagation;

 

function StopPropagation(e) {

 

 

if (!e) {

 

e = window.event;

}

e.cancelBubble =

true;

 

}

 

function nodeClicking(sender, args) {

 

 

var comboBox = $find("<%= rcbTimePath.ClientID %>");

 

 

var node = args.get_node()

 

comboBox.set_text(node.get_text());

comboBox.trackChanges();

comboBox.get_items().getItem(0).set_value(node.get_text());

comboBox.commitChanges();

comboBox.hideDropDown();

} 

 

function comboLoad(sender, eventArgs) {

 

sender.set_text(sender.get_items().getItem(0).get_value());

} 

 

function OnClientDropDownOpenedHandler(sender, eventArgs) {

 

 

var tree = sender.get_items().getItem(0).findControl("rtvTime");

 

 

var selectedNode = tree.get_selectedNode();

 

 

if (selectedNode) {

 

selectedNode.scrollIntoView();

}

}

 

</

 

script>

 

<

 

table width="100%">

 

 

<tr>

 

 

<td style="width: 20%">

 

 

<asp:Label ID="lblYear" Text="<%$Resources:PMS, Year %>" runat="server" CssClass="CssHeader" />

 

 

</td>

 

 

<td>

 

 

<telerik:RadComboBox ID="rcbTimePath" runat="server" Height="140px" Width="215px" 

 

 

ShowToggleImage="True" Skin="WebBlue" OnClientLoad="comboLoad" OnClientDropDownOpened="OnClientDropDownOpenedHandler"

 

 

Style="vertical-align: middle;" EnableViewState="true" EnableItemCaching="false">

 

 

<ItemTemplate>

 

 

<div id="dvTreeView" runat="server">

 

 

<asp:TreeView ID="TreeView1" runat="server" ImageSet="Msdn"

 

 

NodeIndent="10" ShowLines="True" DataSource="XMLTimePath">

 

 

<ParentNodeStyle Font-Bold="False" />

 

 

<HoverNodeStyle BackColor="#CCCCCC" BorderColor="#888888" BorderStyle="Solid" Font-Underline="True" />

 

 

<SelectedNodeStyle BackColor="White" BorderColor="#888888" BorderStyle="Solid" BorderWidth="1px"

 

 

Font-Underline="False" HorizontalPadding="3px" VerticalPadding="1px" />

 

 

<NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"

 

 

NodeSpacing="1px" VerticalPadding="2px" />

 

 

<DataBindings>

 

 

<asp:TreeNodeBinding DataMember="YearName" TextField="text" ValueField="Value" />

 

 

<asp:TreeNodeBinding DataMember="HalfYearName" TextField="text" ValueField="Value" />

 

 

<asp:TreeNodeBinding DataMember="QuarterName" TextField="text" ValueField="Value" />

 

 

</DataBindings>

 

 

</asp:TreeView>

 

 

<telerik:RadTreeView ID="rtvTime" runat="server" OnClientNodeClicking="nodeClicking"

 

 

EnableDragAndDrop="false" DataSourceID='XMLTimePath' OnNodeClick="rtvTime_NodeClick"

 

 

MaxDataBindDepth='<%# FileMaxDataBindDepth %>'>

 

 

<DataBindings>

 

 

<telerik:RadTreeNodeBinding DataMember="YearName" TextField="text" ValueField="Value" />

 

 

<telerik:RadTreeNodeBinding DataMember="HalfYearName" TextField="text" ValueField="Value" />

 

 

<telerik:RadTreeNodeBinding DataMember="QuarterName" TextField="text" ValueField="Value" />

 

 

</DataBindings>

 

 

<CollapseAnimation Type="None" Duration="0" />

 

 

<ExpandAnimation Type="None" Duration="0" />

 

 

</telerik:RadTreeView>

 

 

</div>

 

 

</ItemTemplate>

 

 

<ExpandAnimation Duration="0" Type="None" />

 

 

<CollapseAnimation Duration="0" Type="None" />

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="" />

 

 

</Items>

 

 

<CollapseAnimation Type="None" Duration="0"></CollapseAnimation>

 

 

</telerik:RadComboBox>

 

 

<asp:XmlDataSource ID="XMLTimePath" runat="server" XPath="/Time/YearName" EnableCaching="false">

 

 

</asp:XmlDataSource>

 

 

</td>

 

 

</tr>

 

</

 

table>

 

 

 

 

 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

jafar
Top achievements
Rank 1
 answered on 26 Aug 2009
2 answers
88 views
In IE when justifying left/right/center a specific highlighted area, the hole paragraph gets justify, this is not an issue in other browsers, however, it seems each line needs to be paragraph in order for the functionality to work properly (only in IE), other browsers seem to work correctly, any input on how to make the behavior consistent across browsers would be greatly appreciated.
Rumen
Telerik team
 answered on 26 Aug 2009
6 answers
518 views
Hi there,

In the moment that you insert a row on RadGrid, it is possible to obtain a keyvalue of that row ?

Thanks any help.

Marcio Nascimento
Marcio Nascimento
Top achievements
Rank 1
 answered on 26 Aug 2009
6 answers
378 views
Hi,

I am trying to incorporate excel like edit feature for my grid. I have 7 columns out of which only 1 is editable. The editable column is a RadComboBox. I load the grid in edit mode with the combox values populated in it.

I am trying to find a way to identify the updated rows on click of my "Upload" button.

Could you please suggest an approach?

Regards,
Saurabh
Saurabh Srivastava
Top achievements
Rank 1
 answered on 26 Aug 2009
2 answers
481 views
I've reviewed the following post: http://www.telerik.com/community/forums/aspnet-ajax/form-decorator/how-do-you-change-button-font-size.aspx.  This seems to have no effect on the RadControls for ASP.NET AJAX Q2 2009.  Can you help?  Thank you in advance.
Stephen
Top achievements
Rank 1
 answered on 26 Aug 2009
3 answers
286 views
Hi,

We are upgrading a project from asp.net to asp.net ajax Q2 and for the most part it is going well. However, the editor image manager dialog throws javascript errors as follows

Error: Sys is not defined
Source File: http://localhost:2707/AlphaAdmin/Admin/Abstracts/Telerik.Web.UI.DialogHandler.aspx?DialogName=ImageManager&Skin=Default&Title=Image%20Manager&doid=f1cfb587-da80-449a-977d-924aa3362952&dpptn=&dp=ZFtfMzs0L1BSV0lNcjpyBFcfAQZ5ZR8CeHB5UlQMQQ04fnJmVQZyCDFaOENpMU5xahcZGz96RxNhc1woWhdzQ25jdVlLan9OUE9qEU8hNHJcZGozUTwCRCxadRFVBGYzLCIdcH1VZ0FyJFs4VHlAc3llUl5Jf2V1aTl%2FCQFfQGZTMGYIKXM%2FRGQPB0R9Fy8pNkVYN09jfgpucGBae2JXdEhfa1FRY2YnTzEoSmJ0YjJqIS9fHQVlNlJ%2BXzM7OStGajN7B2QnYihXZXpab3ZnQXtweRVqNVkrO3ENXVQJdgo%2FZAZwajVOTGkTFhYpb0A8Y396NW4rBRR7B21ec2pnUlJicglJLjBKW14FJHwiN04aYGYRe3VEdzU2Ix1mPG9ESlB%2BK2dAWEV5ZGRCSFVmV2IMaxUBFG1AfQ1HHShzLwN%2BJncBZQc3Ej9xehRMTh0nWRdzXlYER3dwZXdIUUlcUUwxW1N0WGIuaTMdQSQGYVdVcWUPODZURXwhd19KKnYseWl1RXVZTmVOCUN9Yw9vDgdybmpnMlQuAWEkYVJRYGVlcSsWP2xTUUhiUBBtLnd3YgVLAH1Yb3dXSXoUeAgOT3VdWGhkIxFEGnFfOmxxSxU3UT8YZzJJXEoldjJgQ3ZsdQFCAHpWXxdqUHcuNEh2UmcbQBM8bxUGZCRGbmAYNzYzfkQefmJyA1oHe1hgWGFbZ1h8DWdzQCNJVltidntcE1EPMwQqYmEkUmMCMTA5K2NiMRlPcQlQE3h6ekJ1ZkZbT25qXGokRS0DYXJ3VGxUMjZxJEdqCVJFUiwsGDNDZjN%2FTUQbbyxWHXtjEmd5akVZUXFqEnkIEkhddgUvZgkJbShyBhBiXXZ5MTURb1Usf1tLDw0oV2hmRnplUkR3C311aTl%2FCS5jYltSFn4IKXM%2FRHxTYEFRB1gJP29yDElwQBh0BmdUUGF2QWdxVVlRc0NQdFYGbW91eip%2BMyNvLGNyV3kGZTU4Ni9aajF7Q3EPbitvamJddgBeQk9WfldiDGsVARRtQH0nSDEGWShbfFJgQ2oXKxI%2FfFwQdGBMDmoXZ11QcRpLZnd3UFFsfg1hIi9Vbnt6b2owEWAfYGVRY3F1cAApKFpmLGcGcjFPN3lrREJCSHxYfwhDfWUMHVc7cFx1fRpbWQ%3D%3D
Line: 45

Error: Type is not defined
Source File: http://localhost:2707/AlphaAdmin/Admin/Abstracts/Telerik.Web.UI.DialogHandler.aspx?DialogName=ImageManager&Skin=Default&Title=Image%20Manager&doid=f1cfb587-da80-449a-977d-924aa3362952&dpptn=&dp=ZFtfMzs0L1BSV0lNcjpyBFcfAQZ5ZR8CeHB5UlQMQQ04fnJmVQZyCDFaOENpMU5xahcZGz96RxNhc1woWhdzQ25jdVlLan9OUE9qEU8hNHJcZGozUTwCRCxadRFVBGYzLCIdcH1VZ0FyJFs4VHlAc3llUl5Jf2V1aTl%2FCQFfQGZTMGYIKXM%2FRGQPB0R9Fy8pNkVYN09jfgpucGBae2JXdEhfa1FRY2YnTzEoSmJ0YjJqIS9fHQVlNlJ%2BXzM7OStGajN7B2QnYihXZXpab3ZnQXtweRVqNVkrO3ENXVQJdgo%2FZAZwajVOTGkTFhYpb0A8Y396NW4rBRR7B21ec2pnUlJicglJLjBKW14FJHwiN04aYGYRe3VEdzU2Ix1mPG9ESlB%2BK2dAWEV5ZGRCSFVmV2IMaxUBFG1AfQ1HHShzLwN%2BJncBZQc3Ej9xehRMTh0nWRdzXlYER3dwZXdIUUlcUUwxW1N0WGIuaTMdQSQGYVdVcWUPODZURXwhd19KKnYseWl1RXVZTmVOCUN9Yw9vDgdybmpnMlQuAWEkYVJRYGVlcSsWP2xTUUhiUBBtLnd3YgVLAH1Yb3dXSXoUeAgOT3VdWGhkIxFEGnFfOmxxSxU3UT8YZzJJXEoldjJgQ3ZsdQFCAHpWXxdqUHcuNEh2UmcbQBM8bxUGZCRGbmAYNzYzfkQefmJyA1oHe1hgWGFbZ1h8DWdzQCNJVltidntcE1EPMwQqYmEkUmMCMTA5K2NiMRlPcQlQE3h6ekJ1ZkZbT25qXGokRS0DYXJ3VGxUMjZxJEdqCVJFUiwsGDNDZjN%2FTUQbbyxWHXtjEmd5akVZUXFqEnkIEkhddgUvZgkJbShyBhBiXXZ5MTURb1Usf1tLDw0oV2hmRnplUkR3C311aTl%2FCS5jYltSFn4IKXM%2FRHxTYEFRB1gJP29yDElwQBh0BmdUUGF2QWdxVVlRc0NQdFYGbW91eip%2BMyNvLGNyV3kGZTU4Ni9aajF7Q3EPbitvamJddgBeQk9WfldiDGsVARRtQH0nSDEGWShbfFJgQ2oXKxI%2FfFwQdGBMDmoXZ11QcRpLZnd3UFFsfg1hIi9Vbnt6b2owEWAfYGVRY3F1cAApKFpmLGcGcjFPN3lrREJCSHxYfwhDfWUMHVc7cFx1fRpbWQ%3D%3D
Line: 86

Error: setInnerHtml is not defined
Source File: http://localhost:2707/AlphaAdmin/Admin/Abstracts/Telerik.Web.UI.DialogHandler.aspx?DialogName=ImageManager&Skin=Default&Title=Image%20Manager&doid=f1cfb587-da80-449a-977d-924aa3362952&dpptn=&dp=ZFtfMzs0L1BSV0lNcjpyBFcfAQZ5ZR8CeHB5UlQMQQ04fnJmVQZyCDFaOENpMU5xahcZGz96RxNhc1woWhdzQ25jdVlLan9OUE9qEU8hNHJcZGozUTwCRCxadRFVBGYzLCIdcH1VZ0FyJFs4VHlAc3llUl5Jf2V1aTl%2FCQFfQGZTMGYIKXM%2FRGQPB0R9Fy8pNkVYN09jfgpucGBae2JXdEhfa1FRY2YnTzEoSmJ0YjJqIS9fHQVlNlJ%2BXzM7OStGajN7B2QnYihXZXpab3ZnQXtweRVqNVkrO3ENXVQJdgo%2FZAZwajVOTGkTFhYpb0A8Y396NW4rBRR7B21ec2pnUlJicglJLjBKW14FJHwiN04aYGYRe3VEdzU2Ix1mPG9ESlB%2BK2dAWEV5ZGRCSFVmV2IMaxUBFG1AfQ1HHShzLwN%2BJncBZQc3Ej9xehRMTh0nWRdzXlYER3dwZXdIUUlcUUwxW1N0WGIuaTMdQSQGYVdVcWUPODZURXwhd19KKnYseWl1RXVZTmVOCUN9Yw9vDgdybmpnMlQuAWEkYVJRYGVlcSsWP2xTUUhiUBBtLnd3YgVLAH1Yb3dXSXoUeAgOT3VdWGhkIxFEGnFfOmxxSxU3UT8YZzJJXEoldjJgQ3ZsdQFCAHpWXxdqUHcuNEh2UmcbQBM8bxUGZCRGbmAYNzYzfkQefmJyA1oHe1hgWGFbZ1h8DWdzQCNJVltidntcE1EPMwQqYmEkUmMCMTA5K2NiMRlPcQlQE3h6ekJ1ZkZbT25qXGokRS0DYXJ3VGxUMjZxJEdqCVJFUiwsGDNDZjN%2FTUQbbyxWHXtjEmd5akVZUXFqEnkIEkhddgUvZgkJbShyBhBiXXZ5MTURb1Usf1tLDw0oV2hmRnplUkR3C311aTl%2FCS5jYltSFn4IKXM%2FRHxTYEFRB1gJP29yDElwQBh0BmdUUGF2QWdxVVlRc0NQdFYGbW91eip%2BMyNvLGNyV3kGZTU4Ni9aajF7Q3EPbitvamJddgBeQk9WfldiDGsVARRtQH0nSDEGWShbfFJgQ2oXKxI%2FfFwQdGBMDmoXZ11QcRpLZnd3UFFsfg1hIi9Vbnt6b2owEWAfYGVRY3F1cAApKFpmLGcGcjFPN3lrREJCSHxYfwhDfWUMHVc7cFx1fRpbWQ%3D%3D
Line: 462

In web.config, the dialogs have been setup via the design time wizard as follows

    <httpHandlers>
   <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    validate="false" />
   <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    validate="false" />
   <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    validate="false" />
  </httpHandlers>

and finally, in design time, the RadEditor is setup like this
 <telerik:RadEditor ID="RadEditor1" runat="server" Width="800px" Height="300px" ToolsFile="~/Admin/AlphaCMEToolsFile.xml" ImageManager-ViewPaths="~/images" ImageManager-DeletePaths="~/images" ImageManager-UploadPaths="~/images">
<Content>
</Content>
</telerik:RadEditor>

So what are we doing wrong here?? Thanks.
















Lini
Telerik team
 answered on 26 Aug 2009
5 answers
247 views
I'm trying to use a custom user control for inserting and updating data.  However, when the use clicks the Add new record link the insert user control is not displayed and the grid is left blank.  I think it's because the OnItemCommand event is not firing for some reason.  can someone please help?

Here is some code and markup:

<telerik:RadGrid ID="RadGrid4" runat="server" Skin="WebBlue" Width="95%" 
     AllowPaging="True" AllowSorting="True" 
     OnNeedDataSource="xxxRadGrid1_NeedDataSource" 
     OnUpdateCommand="xxxRadGrid1_UpdateCommand" 
     OnInsertCommand="xxxRadGrid1_InsertCommand" 
     OnDeleteCommand="xxxRadGrid1_DeleteCommand" 
     CommandItemSettings-AddNewRecordText="Add New BMI Measure" 
     OnItemCommand="xxxRadGrid1_ItemCommand" 
    GridLines="Both"> 
     <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle> 
     <MasterTableView DataKeyNames="ID" GridLines="Both" Width="100%" 
         CommandItemDisplay="Top" AutoGenerateColumns="False"> 
         <Columns> 
          
             <telerik:GridEditCommandColumn> 
             </telerik:GridEditCommandColumn> 
             <telerik:GridBoundColumn DataField="ID" HeaderText="" UniqueName="ID" Visible="false"> 
             </telerik:GridBoundColumn> 
             <telerik:GridBoundColumn DataField="Height" HeaderText="Height" UniqueName="Height"> 
             </telerik:GridBoundColumn> 
             <telerik:GridBoundColumn DataField="Weight" HeaderText="Weight" UniqueName="Weight"> 
             </telerik:GridBoundColumn> 
             <telerik:GridBoundColumn DataField="BMI" HeaderText="BMI" UniqueName="BMI"> 
             </telerik:GridBoundColumn> 
             <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="Delete" ConfirmDialogType="Classic" ConfirmTitle="Deleting BMI Measure" ConfirmText="Are you sure you want to delete the BMI Measure?">    
           </telerik:GridButtonColumn> 
            
         </Columns> 
     <EditFormSettings EditFormType="WebUserControl" UserControlName="" ColumnNumber="2" CaptionFormatString="Edit details for the Benchmark"   
           CaptionDataField="ID"> 
           <FormTableItemStyle Wrap="False"></FormTableItemStyle>   
           <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>   
           <FormMainTableStyle CellSpacing="0" CellPadding="3" Width="100%" />   
           <FormTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="2" CssClass="module"   
               Height="110px" Width="100%" />   
           <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>   
           <FormStyle Width="100%" BackColor="#EEF2EA"></FormStyle>   
           <EditColumn UpdateText="Update BMI Measure" UniqueName="EditCommandColumn1" CancelText="Cancel Edit">    
           </EditColumn>   
           <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>   
        </EditFormSettings> 
        <ExpandCollapseColumn Visible="False">    
           <HeaderStyle Width="19px"></HeaderStyle>   
       </ExpandCollapseColumn>   
       <RowIndicatorColumn Visible="False">   
           <HeaderStyle Width="20px" />   
       </RowIndicatorColumn> 
        
     </MasterTableView> 
 
<FilterMenu Skin="WebBlue" EnableTheming="True"> 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
</telerik:RadGrid> 

protected void xxxRadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
    { 
        RadGrid4.DataSource = bmiMeasures; 
        RadGrid4.DataMember = "BMIMeasures"; 
    } 
 
 
protected void xxxRadGrid1_ItemCommand(object source, GridCommandEventArgs e) 
    { 
        if( e.CommandName == RadGrid.InitInsertCommandName ) 
        { 
            e.Canceled = true; 
            RadGrid4.EditIndexes.Clear(); 
 
            e.Item.OwnerTableView.EditFormSettings.UserControlName = "DesktopModules\\GCCPopulationEncounters\\InsertBMIMeasure.ascx"; 
            e.Item.OwnerTableView.InsertItem(); 
        } 
        else if( e.CommandName == RadGrid.EditCommandName ) 
        { 
            e.Item.OwnerTableView.IsItemInserted = false; 
            e.Item.OwnerTableView.EditFormSettings.UserControlName = "DesktopModules\\GCCPopulationEncounters\\EditBMIMeasure.ascx"; 
        } 
    } 

The Insert, Update, and Delete events are still empty because I haven't gotten that far.  If anyone can take a look and help me out I would greatly appreciate it.

Thank you,
Nick



Tsvetoslav
Telerik team
 answered on 26 Aug 2009
3 answers
125 views
HI,

I am using a User Control to edit the grid values and the uc has 3 RadComboBox items (2008 Q1).  I am able to populate the first combo without a problem however when I add the code to the populate the second combo (and the third) it generates the error below:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Selection out of range
Parameter name: value

Source Error:

Line 700:        If Not IsPostBack Then
Line 701:            Me.rgPRResults.MasterTableView.Items(1).Edit = True
Line 702: Me.rgPRResults.MasterTableView.Rebind()Line 703:        End If
Line 704:

Here is the code for loading the combos...if I comment out the code to load the second combo it works fine but when it is uncommented it fails.  I used the Grid Edit via User Control demo as a template for this and made sure I set the datasource = nothing for the combos after loading the data but no luck.  Any thoughts?

Thanks in advance...

Kelvin

 

Protected Sub PriceRulesDetails_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.DataBinding

 

 

'Load Status DDL

 

 

Dim oValue As Object = DataBinder.Eval(DataItem, "Status").ToString

 

 

If oValue.Equals(DBNull.Value) Then

 

oValue =

""

 

 

End If

 

 

With Me.rdcmbPRStatus

 

.Items.Insert(0,

New RadComboBoxItem("", ""))

 

.Items.Insert(1,

New RadComboBoxItem("Active", "A"))

 

.Items.Insert(2,

New RadComboBoxItem("Inactive", "I"))

 

.DataBind()

 

End With

 

rdcmbPRStatus.SelectedValue = oValue.ToString

rdcmbPRStatus.DataSource =

Nothing

 

oValue =

Nothing

 

 

 

'Load Cost Multiplier DDL

 

oValue = DataBinder.Eval(DataItem,

"CostMultiplier").ToString

 

 

If oValue.Equals(DBNull.Value) Then

 

oValue =

""

 

 

End If

 

 

With Me.rdcmbPRCostMultiplier

 

.Items.Insert(0,

New RadComboBoxItem("", ""))

 

.Items.Insert(1,

New RadComboBoxItem("Program Cost", "P"))

 

.Items.Insert(2,

New RadComboBoxItem("Retail Cost", "R"))

 

 

End With

 

rdcmbPRCostMultiplier.SelectedValue = oValue.ToString

rdcmbPRCostMultiplier.DataSource =

Nothing

 

oValue =

Nothing

 

 

'' ''Load Reward Pricing Group DDL

 

 

' ''Me.rdcmbPRRewardPriceGroup.DataSource = LoadRewardPriceGroupsDDL()

 

 

' ''Me.rdcmbPRRewardPriceGroup.DataBind()

 

 

' ''oValue = DataBinder.Eval(DataItem, "RewardGroupID").ToString

 

 

' ''If oValue.Equals(DBNull.Value) Then

 

 

' '' oValue = ""

 

 

' ''End If

 

 

' ''rdcmbPRRewardPriceGroup.SelectedValue = oValue.ToString

 

 

' ''rdcmbPRRewardPriceGroup.DataSource = Nothing

 

 

' ''oValue = Nothing

 

 

 

End Sub

 

Sebastian
Telerik team
 answered on 26 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?