Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
305 views
I was looking at the ClientSide API function "insertAppointment" and had some questions.  I dropped it into a test app and am trying to manually insert an appointment "on the fly" using only JavaScript.  There are no errors being thrown but the appointment doesn't show up on the Scheduler.  Here is the function, just wondering if I'm missing something:

function AddAppointment() {  
            var scheduler = document.getElementById('RadScheduler1');  
 
            var newAppt = new Telerik.Web.UI.SchedulerAppointment();  
            var start = new Date();  
            var end = new Date();  
            start.setFullYear(2008, 11, 4);  
            start.setHours(10, 30, 0, 0);  
            end.setFullYear(2008, 11, 4);  
            end.setHours(11, 0, 0, 0);  
 
            newAppt.set_start(start);  
            newAppt.set_end(end);  
            newAppt.set_subject("Testing Appointment");  
 
            scheduler.insertAppointment(newAppt);  
        } 


Jose Granja
Top achievements
Rank 1
 answered on 06 Jan 2011
3 answers
87 views
Hi, I have a radeditor with a few buttons; media, document manager, images, link manager etc.

To add a link to my document I fire up the linkmanager and then I want to browse the server for a file. This is not necessarily a document, can be anything; images, media files, documents, html files etc. However, given that the button on the link manager is the document manager and it is also shared with the document manager button in the main editor itself, it only shows me documents that I specified should be shown with the document manager (word, excel, pdf etc). So, how can I make sure that the link manager shows me all files, yet the editor itself only shows me documents when I click the document manager button in the editor itslef?

Thanks,
Rick
Rumen
Telerik team
 answered on 06 Jan 2011
2 answers
142 views
Dear all,

       RadEditor1.Html properties not coming. which version need for that

regards
vinoth
Rumen
Telerik team
 answered on 06 Jan 2011
1 answer
90 views
I have inserted a video, using the media manager in RadEditor. The media player displays just fine on the page, but the video does not play when hitting the play button. I've tried inserting .flv, .mov and .wma, but it makes no difference which filetype I use.

Anyone know the reason for this?
Rumen
Telerik team
 answered on 06 Jan 2011
1 answer
100 views
Hello,

I'm trying to dynamically control the ControlsToCheck property to spell check multiple text boxes on a page contained in a multipage with pageview.  I want to spell check certain fields at certain times and I need the ability to chcek only those controls that area active - these are dynamically controled by my users. In the example below I have 10 user Text Boxes in 10 panels, any of which can be active (Visible) or inactive (not visible) at any time based on some user controls on another page. I control the text boxes using panels so I can hide and show titles and the text boxes with one line of code. Thanks in advance, Dan

 

<table width="750" align="center">
                             <tr>
                                 <td align="center">
                                     <asp:Panel ID="PanelUserField10" Runat="server" visible="false">
                                         <p />
                                         <asp:Label ID="LabelUserField10" Runat="server" CssClass="APR_INFO_TEXT"></asp:Label>
                                         <asp:Panel ID="PanelUserFieldText10" Runat="server">
                                             <br />
                                             <asp:TextBox id="TextUserField10" runat="server" TextMode="MultiLine" CssClass="APR_COMMENT_TEXT" Wrap="true" Rows= "10" Columns = "150"></asp:TextBox>
                                         </asp:Panel>
                                     </asp:Panel>
                                 </td>
                             </tr>
                         </table>
                         <br />
                 </asp:Panel>
                 <DIV style="MARGIN-RIGHT: 20px" align="center">
                                                 <telerik:RadSpell ID="RadSpell2" Runat="server" 
                                                     ControlsToCheck="TextUserField1" 
                                                     SupportedLanguages="en-US,English" 
                                                         DictionaryPath="~/Common/RadSpell" 
                                                     ButtonText="Click here for Spell Check" 
                                                     ToolTip="Click here to check Spelling." Skin="Telerik" />
                                                  </DIV>
             </iewc:PageView>
             <iewc:PageView>
                 <asp:Label ID="LabelGeneralActivities_NotYetSubmitted" Runat="server">
                     <br>
                     <br>

Rumen
Telerik team
 answered on 06 Jan 2011
3 answers
71 views
Dear Sir/Madam

I am facing the following problem: 
I set some attributes on a rotator's item at server-side using
protected void ItemRotator_OnItemDataBound(object sender, RadRotatorEventArgs e) {
    DataRowView drv = (e.Item.DataItem as DataRowView);       
    e.Item.Attributes.Add("dbID"     , drv["ID"].ToString()      );
    e.Item.Attributes.Add("dbCaption", drv["Caption"].ToString() );       
}

But i cannot get them at client side. I am using the following code at client-side:
function GetAttributeValue(anObject, strProperty) {
    if (anObject) {
        var attributes = anObject.get_attributes();
        if (attributes) {
            return attributes.getAttribute(strProperty);
        } else alert("Object.get_attributes() == null");
    } else alert("Invalid Object");
}
 
var SelectedItemGUID
var SelectedItemTitle
  function rotator_OnItemShow(sender, args) {        
    var targetIndex = args.get_item().get_index();
    SelectedItemGUID = GetAttributeValue(args.get_item() , "dbID");
    SelectedItemTitle = GetAttributeValue(args.get_item(), "dbCaption");           
  }

Function GetAttributeValue works fine with other telerik objects (ie TreeNodes) and i Know (for debug) that the rotator_OnItemShow is call when it should be.
Internet Explorer 8 gives me this error report
Message: Object doesn't support this property or method

Thank you for your time,
Thomas Sarmis.
Rumen
Telerik team
 answered on 06 Jan 2011
4 answers
130 views
Hi,

We have data coming in where we want to find columns that contain keywords such as 'Upload' but the full column name could contain other words. Once we find that column, we want to change the text of each cell to a link - either by just injecting a hand built a href string, or alternately, adding in a hyperlink.

Is this even possible. Virtually all examples assume the grid column and data column are known - in this case we dont know the names exactly.

Thanks!
Karl Wilkens
Top achievements
Rank 1
 answered on 06 Jan 2011
0 answers
188 views

Hi,

i am using telerik upload control to upload any document on server.my application is running well in production but sometimes users is reporting below error. please help...

Error in: http://apple/Download.aspx?fileid=9412&filetype=09CT00800.pdf
Error Message:The remote host closed the connection. The error code is 0x80072746.
Stack Trace:   at System.Web.Hosting.ISAPIWorkerRequestInProcForIIS6.FlushCore(Byte[] status, Byte[] header, Int32 keepConnected, Int32 totalBodySize, Int32 numBodyFragments, IntPtr[] bodyFragments, Int32[] bodyFragmentLengths, Int32 doneWithSession, Int32 finalStatus, Boolean& async)
   at System.Web.Hosting.ISAPIWorkerRequest.FlushCachedResponse(Boolean isFinal)
   at System.Web.Hosting.ISAPIWorkerRequest.FlushResponse(Boolean finalFlush)
   at System.Web.HttpResponse.Flush(Boolean finalFlush)
   at System.Web.HttpResponse.Flush()
   at Download.Page_Load(Object sender, EventArgs e)
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Adapters.ControlAdapter.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


waiting for your response.
thanks in advance.

bharat kumar
Top achievements
Rank 1
 asked on 06 Jan 2011
3 answers
148 views
I'm confused about something that is directly related to my work with Telerik controls.  Supposed you had a RadSlidingZone implemented on a web page.  Now look at these two ways to identify this object in client-side code:
  1. $find("<%= radSlidingZone.ClientID %>");
  2. $('table[id$=radSlidingZone]')[0];

The first uses, what I believe is called, an embedded ASP.net object.  The second uses jQuery.

At first I thought that the resulting objects would be identical.  But a simple test - namely, calling .get_id() revealed that they're not.

I was told elsewhere that the 2nd object is referred to as a "Normal Javascript Object".  If so, then what's the first one?  Put another way, if it's not a "normal" Javascript object then what is it?

Hoping someone can explain, which will hopefully help others too.

Thank you,

Robert Werner
Vancouver, BC
Kamen Bundev
Telerik team
 answered on 06 Jan 2011
1 answer
148 views
we want in our "RadGrid" use the "CommandItemTemplate. there are all the action button (insert, delete, update, refresh) are involved. we want the icon there, same as in the commant button ->

<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" />

Can we embed the "CommandButton"in a CommandItemTemplate or include in the Grid-Header (CommandItemDisplay = "top")? If so, how?

If this is not possible then we can take advantage of the style or the icon?

   <CommandItemTemplate>
     <div style="padding: 5px 5px;">
       <asp: LinkButton ID = "ButtonEditSelected" runat = "server" CommandName = "EditSelected" Visible ='<%# RadGridProgramCategory.EditIndexes.Count == 0%> '>
         <img style = "border: 0px; vertical-align: middle;" alt = "" src ="???????" />
       </ asp: button>
     </ div>
   </ CommandItemTemplate>

Regards

Dani
Shinu
Top achievements
Rank 2
 answered on 06 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?