Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
148 views
Hello all :)

I add an ajax loading panel and ajax panel to my page, but when I run the page I got this message

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).


what can I do to avoid it ? 

thanks all : )
Eyup
Telerik team
 answered on 12 Jun 2012
1 answer
94 views
Hi,

my Rad Grid has two types of edit. One type of edit works fine. other type is select and display child records, and click on edit, I can the error - column name is neither a column nor relation. Exception is as follows.

There was a problem extracting DataKeyValues from the DataSource. Please ensure that DataKeyNames are specified correctly and all fields specified exist in the DataSource

Please help...
Eyup
Telerik team
 answered on 12 Jun 2012
7 answers
253 views
Hi Team,
I am facing one issue, While adding any HTML or XML tag in my telerik:RadComboBox 
 it is giving a javascript error as :
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
This error is only coming when I put < with some alphabets ex: "<aa","<a" or "<TEST>".
Even it is working proper when I put "aa>" or "<>".

I have followed the solution suggested as in thread:
http://www.telerik.com/community/forums/aspnet/combobox/combobox-crashes-opon-entering-html-tags.aspx 

As my error is coming on Client side so I have used htmlEncode method also as:
$('<div/>').text(value).html();
Still I am facing the same issue.
Please give suggestion to resolve this issue.


Ivana
Telerik team
 answered on 12 Jun 2012
1 answer
96 views
hi
The
sudden
Editor is locked
No changes have not in the code editor
When I click a button in the editor
Goes to top page!
Please help
Rumen
Telerik team
 answered on 12 Jun 2012
2 answers
90 views
There were a few things i was trying to do.
First off, i have the following 1 line of code:

_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.

 

 

William
Top achievements
Rank 1
 answered on 12 Jun 2012
2 answers
133 views
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)

Rumen
Telerik team
 answered on 12 Jun 2012
10 answers
292 views
First of all congratulation on the new 2011 Q2 release and introduction on new ImageEditor control. I understand this is just the beginning and I would like to know what is the roadmap for this control? Do we see new features such as image annotation coming soon?

Does this control support custom toolbar, as seen in RadEditor?
Rumen
Telerik team
 answered on 12 Jun 2012
3 answers
170 views
Hello All,

I am recently working on a problem where i need to create an area for customer to entering employees information, to start off there will be no information contained within the table. Then using the setup down below and some back end C# i want to populate the GridEditForm that also doesn't want to popup. I have been looking for some information on how to program in the back end or possibly java script, though i don't see this as a client side issue. this as i wish i could use an sql data source but to limit access and security we use web services where i get information in a data set which i want to manipulate then send it only once it has been completed.

There's pretty much no C# back end as of now, just a garbled mess of failed tests

ASP
<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>

And for posterity a brief snippet of C# of my data set

C#
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;
        }
         
    }

I hope someone can suggest possibly a mind blowingly easy way to merge data set and caching of the data with the current structure!

Thanks!

David
Daniel
Telerik team
 answered on 12 Jun 2012
1 answer
134 views
hi
i am completely stuck at a point while scheduling an appointment b/w doctor and a patient.
i want to know what does timeslotcreated eventArgs e mean in timeslot created event .
I have written my code as follows :

if (DateTime.Compare(e.TimeSlot.Start, Convert.ToDateTime("2012-06-06 08:30:00.000")) == 0 && DateTime.Compare(e.TimeSlot.End, Convert.ToDateTime("2012-06-06 08:45:00.000")) == 0)
{
e.TimeSlot.CssClass = "rsCategoryGreen";
}
if (DateTime.Compare(e.TimeSlot.Start, Convert.ToDateTime("2012-06-06 08:45:00.000")) == 0 && DateTime.Compare(e.TimeSlot.End, Convert.ToDateTime("2012-06-06 09:00:00.000")) == 0)
{
e.TimeSlot.CssClass = "rsCategoryGreen";
}

The whole slot of 08:30 - 09:00 is getting green. and when i remove upper IF then nothing happens in output.
please solve it or give an alternate solution to do this?





Still i am waiting for someone's reply. I want to clear my problem now..
I have an appointment of 2 hours and i want to customize it in different timespan like one of half an hour and second of one and half hour with different custom. So which event schould i use?
Reply soon
Ivana
Telerik team
 answered on 12 Jun 2012
3 answers
130 views
I have a chart with line series. It happens that the series starting with the same values​​, or close to, the labels are mixed not giving to differentiate from one another. How do I space the value labels of the series?
Paulo
Top achievements
Rank 1
 answered on 12 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?