Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
168 views
Hello I have the Grid from this example on my page: 

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx

It was working fine but now everytime it loads it gives me a javascript error saying "RadGrid1_Command" is undefined and it shows me this line of code:




Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadGrid, {"ClientID":"ctl00_ContentPlaceHolder1_GridQtyDeduction","ClientSettings":{"AllowAutoScrollOnDragDrop":true,"ShouldCreateRows":true,"DataBinding":{},"Selecting":{"CellSelectionMode":0},"Scrolling":{},"Resizing":{},"ClientMessages":{},"KeyboardNavigationSettings":{"AllowActiveRowCycle":false,"EnableKeyboardShortcuts":true,"FocusKey":89,"InitInsertKey":73,"RebindKey":82,"ExitEditInsertModeKey":27,"UpdateInsertItemKey":13,"DeleteActiveRow":127,"ExpandDetailTableKey":39,"CollapseDetailTableKey":37},"Animation":{}},"Skin":"Hay","UniqueID":"ctl00$ContentPlaceHolder1$GridQtyDeduction","_activeRowIndex":"","_controlToFocus":"","_currentPageIndex":0,"_editIndexes":"[]","_embeddedSkin":true,"_gridTableViewsData":"[{\"ClientID\":\"ctl00_ContentPlaceHolder1_GridQtyDeduction_ctl00\",\"UniqueID\":\"ctl00$ContentPlaceHolder1$GridQtyDeduction$ctl00\",\"PageSize\":15,\"PageCount\":1,\"EditMode\":\"InPlace\",\"AllowPaging\":true,\"CurrentPageIndex\":0,\"VirtualItemCount\":0,\"AllowMultiColumnSorting\":false,\"AllowNaturalSort\":true,\"AllowFilteringByColumn\":false,\"PageButtonCount\":10,\"HasDetailTables\":false,\"PagerAlwaysVisible\":false,\"changePageSizeComboBoxTopClientID\":\"ctl00_ContentPlaceHolder1_GridQtyDeduction_ctl00_ctl02_ctl01_PageSizeComboBox\",\"changePageSizeComboBoxClientID\":\"ctl00_ContentPlaceHolder1_GridQtyDeduction_ctl00_ctl03_ctl02_PageSizeComboBox\",\"IsItemInserted\":false,\"clientDataKeyNames\":[\"TranDet_ID\"],\"_dataBindTemplates\":false,\"_selectedItemStyle\":\"\",\"_selectedItemStyleClass\":\"rgSelectedRow\",\"_columnsData\":[{\"UniqueName\":\"rprodcode\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"rprodcode\",\"ReadOnly\":true,\"Display\":true},{\"UniqueName\":\"rname\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"rname\",\"ReadOnly\":true,\"Display\":true},{\"UniqueName\":\"pack_qty_req_for_packing\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.Decimal\",\"DataField\":\"pack_qty_req_for_packing\",\"ReadOnly\":true,\"Display\":true},{\"UniqueName\":\"pack_qty_req_for_packing_unit\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"pack_qty_req_for_packing_unit\",\"ReadOnly\":true,\"Display\":true},{\"UniqueName\":\"label_qty\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"label_qty\",\"Display\":true},{\"UniqueName\":\"label_claim_unit\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"label_claim_unit\",\"Display\":true},{\"UniqueName\":\"qty_reqd_per_dosage_unit\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"qty_req_per_dosage_unit\",\"Display\":true},{\"UniqueName\":\"Qty_reqd_per_dosage_unit_UNIT\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"Qty_reqd_per_dosage_unit_UNIT\",\"Display\":true},{\"UniqueName\":\"RM_assay\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"RM_assay\",\"Display\":true},{\"UniqueName\":\"perc_overage\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.Decimal\",\"DataField\":\"perc_overage\",\"Display\":true},{\"UniqueName\":\"adj_qty_per_dos_unit\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.Decimal\",\"DataField\":\"adj_qty_per_dos_unit\",\"Display\":true},{\"UniqueName\":\"perc_in_form\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.Decimal\",\"DataField\":\"perc_in_form\",\"Display\":true},{\"UniqueName\":\"pot_as_is\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.Decimal\",\"DataField\":\"pot_as_is\",\"Display\":true},{\"UniqueName\":\"qty_req_for_std_kg\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.Decimal\",\"DataField\":\"qty_req_for_std_kg\",\"Display\":true},{\"UniqueName\":\"qty_req_for_order_kg\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.Decimal\",\"DataField\":\"qty_req_for_order_kg\",\"Display\":true},{\"UniqueName\":\"receiving_no\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.String\",\"DataField\":\"receiving_no\",\"Display\":true},{\"UniqueName\":\"pack_qty_tot_qty_used\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"DataTypeName\":\"System.Decimal\",\"DataField\":\"pack_qty_tot_qty_used\",\"Display\":true}]}]","_loadingText":"Loading...","_masterClientID":"ctl00_ContentPlaceHolder1_GridQtyDeduction_ctl00","_readyText":"Ready","_shouldFocusOnPage":false,"_statusLabelID":"ctl00_ContentPlaceHolder1_GridQtyDeduction_ctl00_ctl03_ctl02_statusPanel","allowMultiRowSelection":false,"clientStateFieldID":"ctl00_ContentPlaceHolder1_GridQtyDeduction_ClientState"}, {"command":RadGrid1_Command,"rowClick":RowClick,"rowCreated":RowCreated,"rowDestroying":RowDestroying}, null, $get("ctl00_ContentPlaceHolder1_GridQtyDeduction"));
});

Can anyone explain what that means? I am not sure how to go about fixing it. Thanks.
Ekjot
Top achievements
Rank 1
 answered on 20 Apr 2012
4 answers
221 views
Hi,

I created a custom control that inherits from the RadCombobox. I do 2 things within the control: I added a new property and I override the Databind() method.

I use the control in the EditItemTemplate of the RadGrid, and it is defined as such:

<cc:RatingValuesDropDownField ID="ddlRatingValue" runat="server" RatingType="Type1"  MaxHeight="200px" />

I don't change anything related to the look of the control in my code, yet it ends up looking like what's displayed in the attached picture in IE7.

I use RadFormDecorators inside my code, so I am not sure if that's the issue or not.

Any ideas?

Thanks.

edit: forgot to add that the drop down displays fine when outside of a radgrid.
radfreak
Top achievements
Rank 1
 answered on 20 Apr 2012
9 answers
304 views
Hi

I am exporting radGrid data to Pdf format, So while exporting I want to inject my own data ( custom data) into the pdf file.

How can  I achieve this?


Thanks,
Derrick
Top achievements
Rank 1
 answered on 20 Apr 2012
2 answers
113 views
Hi,
I've a grid with some columns that permit filtering, and everything was working fine.

After the update to Web components 2011.2, this functionality continued working well on IE, but on FF the Filter event is not fired.

Any idea?

Thank you

Cristian

Cristian
Top achievements
Rank 1
 answered on 20 Apr 2012
3 answers
135 views
Hi,

I'm having a problem where the text of the <EmptyMessageTemplate> is not centred correctly. My ListBox is inside a Window, which is not visible on the Initial load.

Markup
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="TestListBox.WebForm1" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
</head>
<body>
  <form id="form1" runat="server">
  <telerik:RadScriptManager ID="scrpMngr" runat="server" AsyncPostBackTimeout="600">
  </telerik:RadScriptManager>
  <div>
    <telerik:RadWindow runat="server" ID="rdwWin" Height="320" Width="515" Behaviors="Close" Overlay="true" Modal="true" VisibleStatusbar="false" VisibleOnPageLoad="false" Visible="false">
      <ContentTemplate>
        <telerik:RadListBox runat="server" ID="lbSource" Height="200px" Width="260px" AllowTransfer="true" TransferToID="lbSelected" AllowTransferDuplicates="false" AllowTransferOnDoubleClick="true"
          TransferMode="Move" EnableDragAndDrop="true" ButtonSettings-Position="Right" TabIndex="1" AccessKey="y">
          <EmptyMessageTemplate>No items found</EmptyMessageTemplate>
        </telerik:RadListBox>
        <telerik:RadListBox runat="server" ID="lbSelected" Height="200px" Width="230px" AllowTransferOnDoubleClick="true" EnableDragAndDrop="true">
        <EmptyMessageTemplate>No items selected</EmptyMessageTemplate>
        </telerik:RadListBox>
      </ContentTemplate>
    </telerik:RadWindow>
    <asp:Button Text="Show window" runat="server" OnClick="btnShow_Click" />
  </div>
  </form>
</body>
</html>

CodeBehind
namespace TestListBox {
  public partial class WebForm1 : System.Web.UI.Page {
    protected void Page_Load(object sender, EventArgs e) {
      if (!Page.IsPostBack) {
        lbSource.Items.Add(new Telerik.Web.UI.RadListBoxItem() { Value = "1", Text = "some item" });
        lbSource.Items.Add(new Telerik.Web.UI.RadListBoxItem() { Value = "2", Text = "another item" });
      }
    }
 
    protected void btnShow_Click(object sender, EventArgs e) {
      rdwWin.Visible = true;
      rdwWin.VisibleOnPageLoad = true;
    }
  }
}

How to reproduce: Click "Show window" and you see that the 'no items selected' text is in the upperleft corner of the second ListBox. Move an item from the left to the right ListBox, and move it back to the left again. The 'no items selected' text show again, but now it's nicely centered in the ListBox.

Any idea how to solve this?

Thanks,
Danny
Dimitar Terziev
Telerik team
 answered on 20 Apr 2012
2 answers
182 views

Hi!

                While I was converting some regular ASP code to use the Telerik controls, I found a problem with some of our pages. We have a header user control with a logout button, so I want to convert the button to be a Rad Image Button. When I add in a RadButton (or Rad anything) to the header, I get an error that says “The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)“ for some of the pages. I found that it seems to be unhappy with the <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> line, or anything that tries to add Telerik controls to the user control. Does anyone have any idea what could be causing this and how to fix it? I’d really like to be able to the Telerik image buttons throughout all of our code. Thanks!

                                Holly

Holly
Top achievements
Rank 1
 answered on 20 Apr 2012
2 answers
114 views
Hello,

Please help me out in binding Radcombo with checkbox from client side with examples...

Code :
 <telerik:RadComboBox ID="radcmdTest" runat="server" >          
                   <ItemTemplate>
                       <div onclick="StopPropagation(event);">
                               <asp:CheckBox runat="server" Checked="false" Text='<%# Eval("Valuedesc")%>' ID="chk"      ClientIDMode="AutoID" onclick="CheckBoxClick(this);" />                                                     
                        </div>
                  </ItemTemplate>                                                        
   </telerik:RadComboBox>


Thanks 
Anand

Ivana
Telerik team
 answered on 20 Apr 2012
3 answers
127 views
Hello,

I'm trying to use RadNotification with WcfService. My WcfService is in an separeted project file. I've added an 'Service Reference' ni my current project to the Web Service. I'm trying to implement this service om my RadNotification but Im receiving to following error:

XmlHttpPanel loading error:
Exception=Method Not Allowed

My RadNotication:
<telerik:RadNotification ID="RadNotification1" runat="server" Width="320" Animation="Fade"
  EnableRoundedCorners="true" Skin="Windows7" EnableShadow="true" Style="z-index: 35000"
  LoadContentOn="TimeInterval" OffsetX="-20" OffsetY="-20" VisibleTitlebar="true"
  WcfRequestMethod="POST" WcfServicePath="~/Service References/ProcessLogServiceRef/Reference.svcmap"
  WcfServiceMethod="GetLogData" UpdateInterval="5000" OnClientUpdating="RadNotificationUpdating">
</telerik:RadNotification>

Javascript
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
  <script type="text/javascript">
    function RadNotificationUpdating(sender, args) {
      //alert('Hallo');
    }
  </script>
</telerik:RadScriptBlock>

WcfService:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Activation;
 
namespace YBS.Services.SYS
{
  // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "ProcessLog" in both code and config file together.
  [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
  public class ProcessLog : IProcessLog
  {
    public void GetLogData(string sTimeStamp)
    {
    }
  }
}

Can someone help me???

Regards,
  Jos Meerkerk





Marin Bratanov
Telerik team
 answered on 20 Apr 2012
1 answer
178 views
I have radgrid for which I have binded data from code behind, I have two buttons next to my grid control, one moveup button and movedown button. On selecting a particular row on the grid and on click of moveup button I have to move the row up. How do I exchange the rows?
Elliott
Top achievements
Rank 2
 answered on 20 Apr 2012
2 answers
125 views
There are a number of useful parameters to Twitter's Tweet button that it'd be great to set using the RadSocialShare interface, notably the "via" parameter, which tacks on a related Twitter account to the end of a tweet, as in: "Check out this great site! http://www.url.com/ via @GreatSites", and the "hashtags" parameter, which tacks on hashtags. Could wrappers for these parameters be included in the next version of the RadSocialShare control? More information is available on the Twitter dev site: https://dev.twitter.com/docs/tweet-button

Dan
Top achievements
Rank 2
 answered on 20 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?