Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
669 views
Hi,

How do I enable vertical and horizontal scrollbars for my radlistbox.
Pls help me with code samples in C#.

Thanks,
ZR
mathieu cupryk
Top achievements
Rank 1
 answered on 16 Nov 2012
9 answers
919 views
I am adding a RadComboBox to the EditItemTemplate of a RadGrid.  When I add  SelectedValue='<%# Bind("RegistryValue") %>' to the RadComboBox tag (see first section of code below) I get an "Argument Out Of Range Exception" when I rebind the RadGrid (see second section of code).  If I remove the SelectedValue attribute it works, but the original value is in the RadComboBox when I read it.  I think I am missing something before the RadGrid1.Rebind() command, but I don't know what.  


Adding SelectedValue='<%# Bind("RegistryValue") %>' to the RadComboBox tag caused the problem. 
</telerik:GridTemplateColumn>
      <telerik:GridTemplateColumn DataField="RegistryValue" FilterControlAltText="Filter RegistryValue column" HeaderText="RegistryValue" SortExpression="RegistryValue" UniqueName="RegistryValue">
          <EditItemTemplate>
              <telerik:RadComboBox ID="RadComboBox1" Runat="server" DataSourceID="RegistryValueSqlDataSource" DataTextField="RegValueListValue" DataValueField="RegValueListID" SelectedValue='<%# Bind("RegistryValue") %>'>
              </telerik:RadComboBox>
          </EditItemTemplate>
          <ItemTemplate>
              <asp:Label ID="RegistryValueLabel" runat="server" Text='<%# Eval("RegistryValue") %>'></asp:Label>
          </ItemTemplate>
      </telerik:GridTemplateColumn>


 When RadGrid1.Rebind() is called I get an Argument Out Of Range Exception error. 

protected
void EditRadButton_Click(object sender, EventArgs e)
  {
      foreach (GridItem item in RadGrid1.MasterTableView.Items)
      {
          if (item is GridEditableItem)
          {
              GridEditableItem editableItem = item as GridDataItem;
              editableItem.Edit = true;
          }
      }
      RadGrid1.Rebind();
  }
Elliott
Top achievements
Rank 2
 answered on 16 Nov 2012
1 answer
74 views
I have an Ad Rotator and the File contents are coming from a table column, the problem is sometime the File columns contents are image, sometimes text file or the column is empty. My question is how do I display a static image when there are no attachment images or the attachment is there but it's not an image, its a .txt file or .doc file.

<telerik:RadRotator ID="rrotAttachmentImages" runat="server"                                                      
  RotatorType="CoverFlowButtons"
Height="250px" Width="700px"
    ItemHeight="225px" ItemWidth="700px"                                                   
 ScrollDuration="100" >
 <ItemTemplate>
      &nbsp;&nbsp;&nbsp;&nbsp;                                                  
 <asp:CheckBox ID="chkImageDefault" runat="server" 
  Text="Default Image" Visible='<%# Eval("Default").ToString() == "1" %>'></asp:CheckBox>                                                  
 <asp:Label ID="lblImages_Comments" runat="server" Text="Comments:"></asp:Label>
<telerik:RadTextBox ID="rtxtImageComments" runat="server" Width="300px" Text='<%# Eval("Comments") %>' Enabled="false" ></telerik:RadTextBox>
<asp:Image runat="server" ID="Image" ImageUrl='<%# Eval("File") %>' AlternateText="Image"></asp:Image>   </ItemTemplate>  </telerik:RadRotator>
c# code:
 //get file attachments                     
  IQueryable<TableName> IqryAttachments = DAL.GetFileAttachments(recordid, "somepagename");
                    rrotAttachmentImages.DataSource = IqryAttachments;
                    rrotAttachmentImages.DataBind(); 
Farooq
Top achievements
Rank 1
 answered on 16 Nov 2012
3 answers
148 views

I have a bar chart that displays correctly in IE9, but not IE8 and IE7. In IE8 and IE7 there is also a JavaScript error message: "Error: Unable to get value of the property 'clone': object is null or undefined". The JavaScript error however does not appear if a chart title is specified.
The chart displays correctly in IE8 and IE7 if either: 1. the chart border is removed, or 2. a chart height is speciifed. The error can be reproduced with the following chart. Again, the chart displays correctly in IE9, but not IE8 and IE7.

<
telerik:RadHtmlChart runat="server" ID="chart" BorderColor="Black" BorderStyle="Solid" BorderWidth="1">

  <PlotArea>

    <Series>

      <telerik:BarSeries Name="2009">

        <Items>

          <telerik:SeriesItem YValue="116" />

          <telerik:SeriesItem YValue="332" />

          <telerik:SeriesItem YValue="213" />

        </Items>

      </telerik:BarSeries>

    </Series>

  </PlotArea>

</telerik:RadHtmlChart>

 
Is the HtmlChart compatible with IE7 and IE8? If so, is there a limitation that I'm not aware of, or is this a bug?
Thanks...

Daniel
Top achievements
Rank 1
Iron
 answered on 16 Nov 2012
1 answer
111 views
Hi all, 

Just wondering if anyone has any thoughts on this:

We have an order system where order records are presented in a radgrid for paging, sorting etc.
Some orders may be flagged as urgent (or overdue etc) and I'd like these to always show on the top of the first page irrespective of how the grid is sorted (i.e. by order number or status etc).
Paging away from the first page is not an issue.

Can anyone offer suggestions on the best way to do this?

Cheers
Rich
Elliott
Top achievements
Rank 2
 answered on 16 Nov 2012
1 answer
124 views
Hi,

Error Sitefinity:
"

Could not load file or assembly 'Telerik.Web.UI, Version=2012.2.607.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

"

How it to correct?

Thanks,
Vlad
Владислав
Top achievements
Rank 1
 answered on 16 Nov 2012
17 answers
801 views
Hi, 

   we have a requirement of using Configuration Panel in our  project. Can you please give me the source code for configuration panel which we can use in our Csharp Project.


Thanking you
mathieu cupryk
Top achievements
Rank 1
 answered on 16 Nov 2012
5 answers
271 views
I recently upgraded to the latest version (RadControls for ASP.NET AJAX Q2 2012 SP1) and once I did that I started getting the error below when trying to launch the image manager outside of an editor (this was working fine before).

Anyone have any ideas on how to debug this?

ASPX:
<telerik:dialogopener runat="server" id="DialogOpener1"  AdditionalQueryString="" HandlerUrl="~/Telerik.Web.UI.DialogHandler.aspx" style="display: none;" />

Javascript that launched the editor:
var dialogOpener = $find('<%= DialogOpener1.ClientID %>');
dialogOpener.open('ImageManager', { CssClasses: [] });

There is some manipulation done to the manager control in the code behind in terms of setting parameters, etc.

Thanks,
Kevin

1) Exception Information

*********************************************

Exception Type: System.NullReferenceException

Message: Object reference not set to an instance of an object.

Data: System.Collections.ListDictionaryInternal

TargetSite: Void OnLoad(System.EventArgs)

HelpLink: NULL

Source: Telerik.Web.UI

StackTrace Information

*********************************************

   at Telerik.Web.UI.Editor.DialogControls.ImageManagerDialog.OnLoad(EventArgs e)

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Raphael
Top achievements
Rank 1
 answered on 16 Nov 2012
3 answers
57 views
 Hi, i am having an issue on Radwindow when using IE 8 browser.  I have an RadDatepicker within the window, Everytime the page loaded within the radwindow, the calendar will become blank but i could still pick the date from calendar. I also tried the on different browser (firefox, chrome..) the rest work pretty well. So is this an issue on IE 8 ? and anything i could  do to avoid this ? thank you
Marin Bratanov
Telerik team
 answered on 16 Nov 2012
10 answers
275 views
  Context menu getting cropped with Iframe. Is there any way to set the context menu position with iframe?

Please see the attached file for more info
Kate
Telerik team
 answered on 16 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?