or

_bleh
.MemoEditor memoEditor = new _bleh.MemoEditor(__stuff__); //modified for privacy of company.
which calls the RadEditor.
I was looking through the code to see 1) where i can assign the class in the server side code as well as 2) Where do I, from the codebehind, set enabled = false?
I was looking for some sort of attribute setter and getter for the constructed html, but i didnt see anything from my first glance.
I added a custom drop down to my editor. I created the OnClientCommandExecuting function to handle what happens when someone selects an item in the drop down.
The problem is the event fires when I press enter inside the editor, which is causing the following code to throw an error:
function OnClientCommandExecuting(editor, args) {
var name = args.get_commandName();
var val = args.get_value();
var info = val.split("::");
}
Error:
val is undefined
(?)(editor=Object { __msdisposeindex=3, _element=div#RadEditor1.RadEditor, _clientStateFieldID="RadEditor1_ClientState", more...}, args=Object { _cancel=false, _commandName="EnterNewLine", _name="EnterNewLine"})TelerikAjax.aspx (line 23)
createCallback(c=Object { __msdisposeindex=3, _element=div#RadEditor1.RadEditor, _clientStateFieldID="RadEditor1_ClientState", more...}, d=Object { _cancel=false, _commandName="EnterNewLine", _name="EnterNewLine"})Teleri...90a9d4e (line 6)
raiseEvent(b="commandExecuting", c=Object { _cancel=false, _commandName="EnterNewLine", _name="EnterNewLine"})Core.js (line 766)
createCallback(a=Object { __msdisposeindex=3, _element=div#RadEditor1.RadEditor, _clientStateFieldID="RadEditor1_ClientState", more...}, d="raiseEvent", b=["commandExecuting", Object { _cancel=false, _commandName="EnterNewLine", _name="EnterNewLine"}])Teleri...90a9d4e (line 6)
_responseReceived(c="commandExecuting", d=Object { _cancel=false, _commandName="EnterNewLine", _name="EnterNewLine"})RadEditor.js (line 6416)
_executeCommandEvent(s="commandExecuting", u="EnterNewLine", j=Object { _cancel=false, _commandName="EnterNewLine", _name="EnterNewLine"})RadEditor.js (line 7382)
fire(m="EnterNewLine", j=undefined)RadEditor.js (line 7363)
_onKeyDown(t=keydown charCode=0, keyCode=13)RadEditor.js (line 7814)
(?)(h=keydown charCode=0, keyCode=13)RadEditor.js (line 7739)
[Break On This Error]
Reload the page to get source for: http://localhost:56444/TelerikAjax.aspx
TelerikAjax.aspx (line 23)


<telerik:RadGrid ID="grdEmployee" GridLines="Horizontal" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" PageSize="25" AllowAutomaticUpdates="True" AllowPaging="True" AutoGenerateColumns="False" OnItemUpdated="grdEmployee_ItemUpdated" OnItemDeleted="grdEmployee_ItemDeleted" OnItemInserted="grdEmployee_ItemInserted" OnItemCreated="grdEmployee_ItemCreated" OnEditCommand="grdEmployee_OnEdit" OnNeedDataSource="grdEmployee_OnNeedDataSource"> <PagerStyle Mode="NextPrevAndNumeric" /> <MasterTableView Width="100%" CommandItemDisplay="Top" AutoGenerateColumns="False" ShowHeadersWhenNoRecords="true"> <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="editColumn"> <ItemStyle CssClass="btnEdit" /> </telerik:GridEditCommandColumn> <telerik:GridDropDownColumn DataField="Employee" HeaderText="Employee" ListTextField="listEmployeeName" ListValueField="EmployeeName" UniqueName="EmployeeName" ColumnEditorID="grdEmployeeDDLEditor"> </telerik:GridDropDownColumn> <telerik:GridMaskedColumn HeaderText="Last 4 SSN" Mask="####" AllowSorting="false" UniqueName="DetailSSN" ColumnEditorID=""> </telerik:GridMaskedColumn> <telerik:GridDropDownColumn DataField="CraftDescription" HeaderText="Craft" ListTextField="listEmployeeCraft" ListValueField="EmployeeCraft" UniqueName="EmployeeCraft" ColumnEditorID="grdEmployeeDDLEditor"> </telerik:GridDropDownColumn> <telerik:GridDropDownColumn DataField="JobClassDescription" HeaderText="Job Level" ListTextField="listEmployeeLevel" ListValueField="EmployeeLevel" UniqueName="EmployeeLevel" ColumnEditorID="grdEmployeeDDLEditor" EditFormColumnIndex="1"> </telerik:GridDropDownColumn> <telerik:GridNumericColumn DataField="HoursWorked" HeaderText="Hours Worked" UniqueName="EmployeeHoursWorked" NumericType="Number" AllowRounding="false" DecimalDigits="2" ColumnEditorID="grdEmployeeNumericColoumnEditor" EditFormColumnIndex="1"> </telerik:GridNumericColumn> <telerik:GridNumericColumn DataField="RateOfPay" HeaderText="Rate of Pay with Benefits" UniqueName="EmployeeRateOfPay" NumericType="Currency" AllowRounding="false" DecimalDigits="2" ColumnEditorID="grdEmployeeNumericColoumnEditor" EditFormColumnIndex="1"> </telerik:GridNumericColumn> <telerik:GridButtonColumn ConfirmText="Delete this Payroll Entry?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"> <ItemStyle HorizontalAlign="Center" CssClass="btnEdit" /> </telerik:GridButtonColumn> </Columns> <CommandItemSettings ShowRefreshButton="false" /> <EditFormSettings ColumnNumber="2" CaptionDataField="EmployeeName" CaptionFormatString="Edit Payroll Entry for {0}" InsertCaption="New Payroll Entry"> <FormTableItemStyle Wrap="False"></FormTableItemStyle> <FormCaptionStyle CssClass="grdEditForm"></FormCaptionStyle> <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White" Width="100%" /> <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" /> <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle> <EditColumn ButtonType="ImageButton" InsertText="Add Entry" UpdateText="Update Entry" UniqueName="EditCommandColumn1" CancelText="Cancel Edit"> </EditColumn> <FormTableButtonRowStyle HorizontalAlign="Right"></FormTableButtonRowStyle> </EditFormSettings> </MasterTableView> <ClientSettings> <ClientEvents OnRowDblClick="grdEmployee_RowDblClick" /> </ClientSettings> </telerik:RadGrid> <telerik:GridDropDownListColumnEditor ID="grdEmployeeDDLEditor" runat="server" DropDownStyle-Width="110px" /> <telerik:GridNumericColumnEditor ID="grdEmployeeNumericColoumnEditor" runat="server" NumericTextBox-Width="125px" /> <telerik:RadWindowManager ID="RadWindowManager1" runat="server"> </telerik:RadWindowManager>protected void createDummyRow() { employeeDummyRow = new DataSet(); DataTable dummyTable = employeeDummyRow.Tables.Add(); dummyTable.Columns.Add("Employee", typeof(String)); dummyTable.Columns.Add("CraftDescription", typeof(String)); dummyTable.Columns.Add("JobClassDescription", typeof(String)); dummyTable.Columns.Add("HoursWorked", typeof(Decimal)); dummyTable.Columns.Add("RateOfPay", typeof(Decimal)); dummyTable.Rows.Add("","","",1,1); } protected void Page_UnLoad(object sender, EventArgs e) { if (dsEmployees == null) { Session["dsEmployees"] = grdEmployee.DataSource; } else { Session["dsEmployees"] = dsLEAPEmployees; } } public void grdEmployee_OnNeedDataSource(Object sender, EventArgs e) { if (grdEmployee.DataSourceIsAssigned == true) { grdEmployee.DataSource = grdEmployee.DataSource; } else { grdEmployee.DataSource = employeeDummyRow.Tables[0].DefaultView; } }javascript:
function RadGrid1_Command(sender, args)
{
args.set_cancel(true);
debugger;
var currentPageIndex = sender.get_masterTableView().get_currentPageIndex();
var pageSize = sender.get_masterTableView().get_pageSize();
....................................................................
............................................................
......................................................................
..............................................................
}
function updateGrid(result) {
var tableView = $find(document.getElementById("hdnradgridclientid").value).get_masterTableView();
tableView.set_dataSource(result);
tableView.dataBind();
}
function updateVirtualItemCount(result)
{
var tableView = $find(document.getElementById("hdnradgridclientid").value).get_masterTableView();
tableView.set_virtualItemCount(result);
}
<telerik:RadGrid ID="RadGridAssessment" EnableViewState="false" Width="100%" runat="server"
AllowSorting="True" Height="430px" AllowMultiRowSelection="true" AllowPaging="true"
GridLines="None" BorderWidth="0" AutoGenerateColumns="true" PagerStyle-AlwaysVisible="false"
Skin="Vista" OnNeedDataSource="RadGrid1_NeedDataSource">
<PagerStyle Visible="false" />
<MasterTableView Width="99%">
</MasterTableView>
<ClientSettings EnableRowHoverStyle="true">
<ClientEvents OnCommand="RadGrid1_Command" />
<Selecting AllowRowSelect="True"></Selecting>
<Scrolling AllowScroll="true" EnableVirtualScrollPaging="true" UseStaticHeaders="true"
ScrollHeight="275px" SaveScrollPosition="True"></Scrolling>
</ClientSettings>
</telerik:RadGrid>
the above codings are using in my code....and in my pageload i set
RadGridAssessment.PageSize = 5;
the problem is.if the grid contains 6 to 9 rows means...i am unable to view second page..but if above ten means its working fine...
and i set RadGridAssessment.PageSize = 10; ..at the time if grid contains 11 to 20 records..i am unable to view second page...
please help me
<div style="position: absolute; top: 230px; left: 300px; width: 100px; height: 30px"> <telerik:RadComboBox ID="PalletList" runat="server" Width="100px" Enabled="False" EnableEmbeddedSkins="False" EnableTextSelection="False" Skin="XLogixBlue" SkinID="XLogixBlue" ZIndex="8000"> </telerik:RadComboBox></div>