Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
982 views

Getting error Uncaught TypeError: Cannot read property 'cells' of undefined When i Click on an item from a RadContextMenu. This page has a Rad-scheduler.  

 

Peter Milchev
Telerik team
 answered on 02 Apr 2019
7 answers
925 views

Hello,

I'm experiencing an issue and I hope you can help me with this. I saw a similar thread but it's from 2017 and it doesn't answer all of my concers,  so that´s why I open a new one. But if you prefer, I can continue in the other one.

Anyway, we are using RadEditor with ImageManager.

When users of our application are trying to upload an image, the upload seems to be going on forever (there is a yellow dot by the image's name) and when I peek at the Chrome's Dev Tool console (Chrome is updated) , an "Unexpected token < in JSON at position 453" error is logged.

I attached an image showing this error message. 

But when I changed "EnableAsyncUpload" property to false, it uploads correctly and saves the image in the specified location without any problem.

I can leave it like this but it bugs me a lot not to know why the error appears.

Is it really ok leaving EnableAsyncUpload in False? Is there a way to fix the JSON issue?

 

Thank you!

PS: just in case, snippets of how it's declared the editor in the ascx file and how it's configured in the code behind

<div id="HtmlBodyCell" style="<%= HtmlBodyCellStyle %>">
 <Telerik:RadEditor ID="HtmlBodyTextArea" runat="server" Width="475px" Height="400px" />
</div>

 

string[] imgPath = { vpath };
 
HtmlBodyTextArea.EnableFilter(Telerik.Web.UI.EditorFilters.MakeUrlsAbsolute);           
HtmlBodyTextArea.ImageManager.UploadPaths = imgPath;
HtmlBodyTextArea.ImageManager.ViewPaths = imgPath;
HtmlBodyTextArea.ImageManager.MaxUploadFileSize = 200000;
HtmlBodyTextArea.ImageManager.EnableAsyncUpload = true;
HtmlBodyTextArea.ImageManager.RenderMode = RenderMode.Lightweight;

 

Rumen
Telerik team
 answered on 02 Apr 2019
3 answers
107 views

Hello, 

please I need your help in client side code ,

I need  javascript code that explain how can RadComboBox in header affects on all RadComboBoxs in asp repeater rows,

how can set same value and same text .

 

thanks

AHMED
Top achievements
Rank 1
 answered on 01 Apr 2019
0 answers
77 views

I have created a dynamic wizard steps. I want to delete the wizardsteps based on index. How can do this.

Ascx Page:

<telerik:RadButton runat="server" RenderMode="Lightweight" ID="rbtnRemoveSteps" Text="Remove Steps" AutoPostBack="false" OnClientClicked="RemoveSteps" ></telerik:RadButton>

 

Ascx Script:

function RemoveSteps() {
   var ajaxmanager = null;
   ajaxmanager = $find('<%=RadAjaxManager.GetCurrent(this.Page).ClientID%>');
   ajaxmanager.ajaxRequest('DeleteSteps');
}

Parent Page:

case "DeleteSteps":
    if (UIControlsWizard.WizardSteps.Count >=0)
    {
         int activeIndex = UIControlsWizard.ActiveStepIndex;
         UIControlsWizard.WizardSteps.RemoveAt(activeIndex);
    }
    break;

 

Saif
Top achievements
Rank 1
 asked on 01 Apr 2019
1 answer
409 views

     Hi,I have a problem with RadDataForm and HiddenField. I have a scenario like this:

 

 <telerik:RadDataForm runat="server" ID="radDataForm" DataSourceID="myDataSource">

   <InsertItemTemplate>

        <asp:HiddenField ID="hiddenField" runat="server" Value='<%# Bind("MyProperty") %>' />

         <telerik:RadComboBox ID="myCombo" runat="server" SelectedValue='<%# Bind("MyProperty2") %>' />

   </InsertItemTemplate>

</telerik:RadDataForm>

I Just semplify my code. The problem is that radComboBox (as other telerik controls) works fine and i bind my object passed in data source, while the property bounded throught asp:HiddenField doesn't work, even the value is not null.

Any suggestions?

 

Thanks

 

 

Vessy
Telerik team
 answered on 01 Apr 2019
1 answer
203 views
Hi,
    In my RadGrid, I have a Custom RadToolbar for implement my actions. Inside this toolbar I have a RadButton
<telerik:RadToolBarButton   Text="<%$ Resources:AdminLoc, btnAddDailyEquipment %>"
ImageUrl="~/Web/Images/Icons/ress_equipement.gif"
Group="DailyEquipment" CommandName="AddDailyResource" CommandArgument="DailyEquipment"
Value="DailyEquipment" Visible="<%# KeyValueTools.GetActivitekRepentignyDev %>">


My  Toolbar implement the OnClientButtonClicked attribute who calling a JS function with this code
case "AddDailyResource":<br> $find('<%= RgPanelSummary.ClientID%>').get_masterTableView().fireCommand(args.get_item().get_commandName(), argument);<br>        break;


If I have more than one element in my grid. The server-side ItemCommand is fired

But my problem occuring when I have no data in my RadGrid. The server-side called the ItemDataBound (RadGrid), the PageLoad, PageRender, etc. But the ItemCommand is never called. I have this problem for each custom action "Print, DailyEquipement". But If I using a default Radgrid action (DeletedSelected, InitInsert) the ItemCommand is called.

Can I resolve my problem? And If Yes how ?
Thank you and have a good day



Eyup
Telerik team
 answered on 01 Apr 2019
7 answers
224 views
Hi,

Why isn't there a check/uncheck all event for the combo box?

If I need to have a second related form element I can't do it from this as there is no JS event for when items are checked.  Yes you can get individual checks but there is no event raised when all are done. 

From looking at the forums this is appears to have been going on for a while.  Please advise on a way to get notified on the client when the check all box is checked.  

Thanks,

Jon
Akun
Top achievements
Rank 1
 answered on 31 Mar 2019
3 answers
224 views

Hello

I am looking for a little assistance in developing Facebook like notification counts like the attached image.  I have the image displaying properly, just didn't know if there was any functionality built with the menu item to do something like the attached image.

Thanks in advance,

Tom

 

Rumen
Telerik team
 answered on 29 Mar 2019
1 answer
129 views

Hello,

I am using a template form on which I have a dropdown list. Depending on the selection, I need to hide or show a couple of different labels/date pickers. While I can access the dropdown list using the SelectedIndexChanged as follows, can you please help me figure out how I can show/hide the controls? I have found similar questions asked before but have yet to found a clear response. Really appreciate your help as I've put in quite a bit of time figuring this out.

 protected void ddDuration_SelectedIndexChanged(object sender, DropDownListEventArgs e)
        {
            RadDropDownList ddDuration = (RadDropDownList)sender;
            sDuration = (string)ddDuration.SelectedValue;
            if (sDuration == "0")
            {
                //Need to show lblStartTime and timeStart, and Hide lblFullDate. dateFull 
            } 

           else

           {

              //Need to show lblFullDate, dateFull and Hide lblStartTime and timeStart.

           }
        }

 <telerik:RadDropDownList Width="16.8em" ID="ddDuration" runat="server" OnSelectedIndexChanged="ddDuration_SelectedIndexChanged"
                                        AutoPostBack="true">
                                        <Items>
                                            <telerik:DropDownListItem Text="Please Select" Value="">
                                            </telerik:DropDownListItem>
                                            <telerik:DropDownListItem Text="Partial" Value="0">
                                            </telerik:DropDownListItem>
                                            <telerik:DropDownListItem Text="Full Day" Value="1">
                                            </telerik:DropDownListItem>
                                        </Items>
                                    </telerik:RadDropDownList>                                   
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label Font-Bold="true" ID="lblFullDate" runat="server"
                                        Text="FullDay Closure Date: "></asp:Label>
                                </td>
                                <td>
                                    <telerik:RadDatePicker ID="dateFull" runat="server" RenderMode="Classic"></telerik:RadDatePicker>
                                </td>
                            </tr>
                            <tr>
                                <td> 
                                    <asp:Label Font-Bold="true" ID="lblStartTime" runat="server"
                                        Text="Partial Closure Start Time: "></asp:Label></td>
                                <td>                                    
                                    <telerik:RadDateTimePicker Width="21.2em" RenderMode="Classic"
                                        runat="server" ID="timeStart"></telerik:RadDateTimePicker>                                        
                                </td>
                            </tr>

 

 

 

 

 

 

Attila Antal
Telerik team
 answered on 29 Mar 2019
1 answer
86 views

Hi all

I have a this problem: I don't find RadToolTip in Telerik.Web.UI client side. I find all other controls but not RadToolTip.

I recivede this error: Telerik.Web.UI.RadToolTip is undefined

Why?

Thank you

Rumen
Telerik team
 answered on 29 Mar 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?