Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
222 views
Most of the time I can use the Debugger in VS 2008 to debug javascript.  Occasionally it seems to stop working, i.e. the processor doesn't stop at my breakpoints.

Can anyone set me straight as to why this might happen - maybe I am using it incorrectly or have placed my JS in the wrong part of the document.  I currently have it in a RadCodeBlock within the form of the doc.

  <form id="form1" runat="server"
     
     
        
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
        <script type="text/javascript"
        <!-- 
            //Custom js code section used to edit records, store changes and switch the visibility of column editors 
            //global variables for edited cell and edited rows ids 
            var editedCell; 
            var arrayIndex = 0
            var editedItemsIds = []; 
 
            function RowCreated(sender, eventArgs) { 
                var dataItem = eventArgs.get_gridDataItem(); 
 

mmbm
Top achievements
Rank 2
 answered on 17 Nov 2012
1 answer
73 views
I am doing all my Grid Building using Server-Side code (class I created) because it's dynamic.

I created a class implementing ITemplate. In this class I create a single Label control within the InstantiateIn() method and I add it to the controls array.

When the grid loads, it shows all the parent rows, and it show the ">" button on the left of each row to expand and view it's details. However, when I click the ">" button, the grid refreshes and all the ">" buttons vanish. The nested rows seem to have all dissapeared. I am assuming there is an event that runs when the ">" button is clicked, and somehow because my grid is dynamic, I lose the detail rows. Anyone know what event I might be overlooking on the click of ">" to fix me problem?

-Ben
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Nov 2012
1 answer
84 views
How to achieve validation of required fields and datatype check when AutogenerateCoulmns is set ot TRUE?
I tried looknig at the demo, most of them use templates Asample proj might help thanks!
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Nov 2012
1 answer
53 views
In my RadGrid, Autogeneratecolumns = true,
<
<Columns>
                   <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="ImageButton" EditImageUrl="../Images/Edit.png" ></telerik:GridEditCommandColumn>                   
                    <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" ButtonType="ImageButton"  ImageUrl="../Images/Delete.png"></telerik:GridButtonColumn> 
                </Columns>
>

How do I display a message when Delete button is clicked, as 'OnClientClick' is not a valid event for GridButtonColumn ?
Ed Lance
Top achievements
Rank 1
 answered on 17 Nov 2012
8 answers
567 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
861 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
56 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
138 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
94 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
117 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?