| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" |
| Width="75px"> |
| <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.Loading1.gif") %>' |
| style="border: 0px;" /> |
| <span class="filter">Refreshing Data...</span> |
| </telerik:RadAjaxLoadingPanel> |
Telerik.Web.UI.Skins.Default.Ajax.Loading.gif
Telerik.Web.UI.Skins.Default.Ajax.Loading1.gif
Telerik.Web.UI.Skins.Default.Ajax.Loading2.gif
Telerik.Web.UI.Skins.Default.Ajax.Loading3.gif
Telerik.Web.UI.Skins.Default.Ajax.Loading4.gif
Telerik.Web.UI.Skins.Default.Ajax.Loading5.gif
Telerik.Web.UI.Skins.Default.Ajax.Loading6.gif
Telerik.Web.UI.Skins.Default.Ajax.Loading7.gif
Telerik.Web.UI.Skins.Default.Ajax.LoadingProgressBar.gif
Telerik.Web.UI.Skins.Default.Ajax.LoadingVerticalBar.gif
Any help?

| Protected Sub grdRecordMatchup_EditCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles grdRecordMatchup.EditCommand |
| sqlRecordMatchupTableList.SelectParameters("ID").DefaultValue = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("LU_RecordMatchupID").ToString() |
| End Sub |
| Parameter Projectparam = new Parameter(); |
| Projectparam.Name = "ProjectID"; |
| Projectparam.DefaultValue = this.UserInfo.Profile.GetPropertyValue("ProjectID").ToString(); |
| Projectparam.Type = TypeCode.Int32; |
| TicketListDataSource.WhereParameters.Add(Projectparam); |
| TicketListDataSource.Where = "ProjectID == @ProjectID" |



Telerik.Web.UI.dll v2008.1.619.20
Hi Telerik, trying to upgrade my custom (inherited) ComboBox to the version above from RadComboBox.Net2.dll v2.8.1.0
Inheriting from Combox, ComboBoxItem and creating a custom ItemTemplate (note that ComboBoxItem in this example is not really necessary but my production version has additional attributes added here)
Basically, when I 'databind my control it renders fine, but when I add elements to my cmbo via the <items/> collection in my ASPX page the controls fails to render. I added calls to .DataBind() on the control and the individual items but this doesn't seem to help any ...debugger shows that the ComboBoxTemplate is never instantiated/created for the controls with items declared in the markup.
All was/is fine under the old version?
Thanks for any and all advice
ComboBox.cs
| using System; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| using Telerik.Web.UI; |
| namespace TelerikTestSite |
| { |
| public class ComboBox : RadComboBox |
| { |
| protected override void OnInit ( EventArgs e ) |
| { |
| // set template |
| base.ItemTemplate = new ComboBoxTemplate ( ); |
| // continue event |
| base.OnInit ( e ); |
| } |
| } |
| } |
ComboBoxItem.cs
| namespace TelerikTestSite |
| { |
| public class ComboBoxItem : RadComboBoxItem |
| { |
| public ComboBoxItem ( ) : base ( ) |
| { |
| } |
| } |
| } |
ComboBoxTemplate.cs
| using System; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| using Telerik.Web.UI; |
| namespace TelerikTestSite |
| { |
| public class ComboBoxTemplate : ITemplate |
| { |
| public void InstantiateIn ( Control container ) |
| { |
| CheckBox cb = new CheckBox ( ); |
| cb.ID = "cb"; |
| cb.DataBinding += new EventHandler ( cb_DataBinding ); |
| container.Controls.Add ( cb ); |
| } |
| void cb_DataBinding ( object sender, EventArgs e ) |
| { |
| CheckBox target = (CheckBox) sender; |
| RadComboBoxItem item = (RadComboBoxItem) target.BindingContainer; |
| target.Text = (string) DataBinder.Eval ( item, "Text" ); |
| } |
| } |
| } |
| <div> |
| DataBind ..works: <app:combobox runat="server" id="cb1" /> |
| </div> |
| <br /> |
| <div>Declarative ..fails: |
| <app:combobox runat="server" id="cb2" highlighttemplateditems="true"> |
| <items> |
| <app:comboboxitem text="Item 1" /> |
| <app:comboboxitem text="Item 2" /> |
| <app:comboboxitem text="Item 3" /> |
| </items> |
| </app:combobox> |
| </div> |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| ArrayList al = new ArrayList ( 3 ); |
| al.Add ( "Item 1" ); |
| al.Add ( "Item 2" ); |
| al.Add ( "Item 3" ); |
| this.cb1.DataSource = al; |
| this.cb1.DataBind ( ); |
| foreach ( ComboBoxItem item in cb2.Items ) |
| item.DataBind ( ); |
| this.cb2.DataBind ( ); |
| } |
Hi,
I have a grid with a column as,
<rad:GridBoundColumn DataField="ProcessDescription" EditFormColumnIndex="1" HeaderText="Description" UniqueName="Description">
<HeaderStyle Font-Bold="true" />
</rad:GridBoundColumn>
Now when i tried to make certain columns as disabled in edit mode in the ItemDatabound event, its working fine but when i move the cursor on top of that disabled field, i get a javascript error which says
My aim is to just display it in a label with the text in grid.
I tried disabling as below,
if (e.Item is GridEditableItem && ((GridEditableItem)e.Item).IsInEditMode)
{
GridEditableItem editItem = (GridEditableItem)e.Item;
TextBox txtDesc = (TextBox)editItem["Description"].Controls[0];
txtDesc.Enabled = false;
}
Similar to this i have a date column as
<rad:GridDateTimeColumn DataField="EndDate" EditFormColumnIndex="0" DataFormatString="{0:d}" meta:resourcekey="GridTemplateColumnResource2">
<HeaderStyle Font-Bold="true" />
</rad:GridDateTimeColumn>
When i edit mode, i need to display only the date in a label and not in a date control. I want to make it not to be visible when in insert mode.
"Sys.ArgumentException: Value must be a DOm element. Parameter name:element".
How to solve this or Is there a better method to make certain columns in a grid as disabled when in editmode.
In Insert mode ( i mean when i click ' Add new record' link at the top of the grid), i want to make this column as not visible. How will i be able to achieve this?
Regards
Sujith