Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
95 views
Is deep binding supported on the combo box as it is in some of the other controls?

ie. 
rcbCusts.DataTextField = "Customer.Name";
rcbCusts.DataValueField = "Customer.Id";

I assume since it blows up on my databind it is not possible, but I wanted to make sure since I could not find anything on it...

~james
Simon
Telerik team
 answered on 11 Nov 2010
1 answer
84 views

We have a need to fire a spell check before an email gets sent out. The idea being, user clicks “Send” and once the spellcheck is complete, it would send without further interaction. This works with the following script very well. The only issue we have is that is distinguishing between whether the user clicked on “Cancel” on the spellchecker in RadEditor or the spell check completed. When the user clicks Cancel, we don’t want to send the email.

 

Is there any way to know what condition fired the function attached to add_spellCheckEnd ? Or an alternative method?

 

    <script type="text/javascript">

                  

        function SpellCheckAndSubmit() {

            var editor = $find("<%=textEdit.RadEditorClientID%>");

            var sendButton = document.getElementById("<%=btnSendEmail.ClientID%>");

            editor.fire("AjaxSpellCheck");

 

            setTimeout(function() {

                var spell = editor.get_ajaxSpellCheck();

                spell.add_spellCheckEnd(function(sender, args) {

                //if Cancelled Button Hit

                //Do nothing

                //else

                //Do Event  

                    sendButton.click();

                });

            }, 100);

            return false;

        }

    </script>

Any help you can provide would be appreciated.

Thanks
Martin Cheverall

Dobromir
Telerik team
 answered on 11 Nov 2010
6 answers
424 views
We are currently using RadAjax, and we would love to switch to the "Prometheus" version. However, the RadCodeBlock issue will probably keep us from moving forward at this time. I'd like to put a RadAjaxManager in our master page, but we have hundreds of pages with <%%> expressions in them, and surrounding all of them with RadCodeBlock is a daunting task.

Somehow, Microsoft's ASP.NET AJAX framework and UpdatePanel is able to work without a need for RadCodeBlock. It seems that there must be a way to make RadAjax "Prometheus" work without requiring RadCodeBlock.

Unfortunately, until this issue is addressed, we probably will be unable to switch to RadAjax "Prometheus." Please give serious consideration to finding another solution other than RadCodeBlock.
Sebastian
Telerik team
 answered on 11 Nov 2010
2 answers
185 views
Hi
How can I set the Default Insert mode for radgrid on initial load
Thanks
Anis
Top achievements
Rank 1
 answered on 11 Nov 2010
5 answers
284 views
Adding the ClientEvents OnCommand property to the RadGrid appears to break the Grid's paging functionality.

I have:

<script type="text/javascript">
    function TestFunction() {
    } 
</script>

<telerik:RadGrid ID="RadGrid1" runat="server"
    OnNeedDataSource="RadGrid1_NeedDataSource"
    AllowSorting="true"
    AutoGenerateColumns="false"
    AllowPaging="true"
    PageSize="100"
    EnableEmbeddedSkins="false"
    Skin="Web20">
    <PagerStyle Mode="NextPrevAndNumeric" PrevPageImageUrl="PagingPrev.gif" NextPageImageUrl="PagingNext.gif" FirstPageImageUrl="PagingFirst.gif" LastPageImageUrl="PagingLast.gif"></PagerStyle>
    <ClientSettings>
 <ClientEvents OnCommand="TestFunction" />
 <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="300px" />
    </ClientSettings> ...

When <ClientEvents OnCommand="TestFunction" /> is declared, the paging controls in the grid look and act weird: For instance, in paging controls "Displaying page X of X, items X to X of X" all of the Xs become grayed out. Also, the "Change page: < 1, 2, 3 >" controls don't change appearance to indicate the page you are on.  However, the paging functionality still works.

When I remove the <ClientEvents OnCommand="TestFunction" /> declaration, the grid's paging goes back to normal.

Is this a bug?
Tsvetina
Telerik team
 answered on 11 Nov 2010
1 answer
98 views
I have a question about RadScheduler.
I want to display DataKeyField value in EditForm
But It doesn't work Edit and Insert  when I just insert DataKey FieldName in CustomAttributeNames
Of course exclude that, it's work very well.
Please help me

<telerik:RadScheduler ID="RadScheduler1" runat="server"  width="1280px" Height="768px"
                DataEndField="Sc_EndDate" DataKeyField="Sc_Idx"
                DataSourceID="ObjectDataSource1" DataStartField="Sc_StartDate"
                AppointmentStyleMode="Default"
                CustomAttributeNames="Sc_Idx,Sc_Type,Se_Name,Me_Name,Sc_Detail,Me_Idx,Se_Idx,Em_Name"
                DataSubjectField="Sc_Detail" Skin="Sunset" 
                SelectedView="MonthView" EnableAdvancedForm="False"
                DataDescriptionField="Sc_Type"     >

.....
.....
<InlineEditTemplate>
.....
.....
            <%#Eval("Sc_Idx")%>
......
......
</InlineEditTemplate>

</telerik:RadScheduler>

Peter
Telerik team
 answered on 11 Nov 2010
9 answers
186 views
Okay, this is what is going on and I will try to include as much detail as possible. Unfortunately, based on how our development API works I won't be able to post all the code and I realize that could make this hard to figure out. Here is the situation, we are using radajaxpanels in some places and radajaxmanager in others. In an application we create for sharepoint ajax works perfectly in webparts ajax does not work right until after a postback occurs. IE I have a group of controls in an radajaxpanel, setup to ajaxify everything in the control. When I click on a button inside the panel I get a full postback. Afterwhich, if I click on the same button the ajax portion of it works from then on. Doesn't matter if it's the radajaxpanel or the ajaxmanager, both act the sameway. However, ajax toolkit update panel works correctly. We do all of our web parts in user controls and if we add that user control to a non-webpart the ajax works fine. So, it has to be an issue between sharepoint and the ajax functionality.

We have a script manager and ajax manager being added to the page on preinit. We also have safescriptmanagers on every user control (this is what fixed the ajax toolkit update panel), but not matter what we have tried we cannot get rad ajax to fire on the first shot. However, other RAD controls that are ajaxified work fine, it's just the update panels that are not working.

Any help would be greatly appreciated.

Thanks!
Brad Bridges
Top achievements
Rank 1
 answered on 11 Nov 2010
3 answers
105 views
Hi,
We built a website using Telerik Web UI Controls 2009 Q3; using a RadScriptManager we are creating a file to hold all the js combined. The problem is that, althrough using IIS 7 compression, we are getting nearly 800 KB of Javascript. How can we reduce this size??
Thank you.
Simon
Telerik team
 answered on 11 Nov 2010
5 answers
383 views
Hi All,

I have a telerik grid and sorting works fine with it. The problem arises when I try to refresh the page when the grid is sorted. The sort icon which appears on the column header of the grid is missing , where as the grid contains the sorted data.

Someone please tell me how to manually show the arrow Mark from the code behind.

Thanks
Pavlina
Telerik team
 answered on 11 Nov 2010
1 answer
122 views
The Radeditor is apparently replacing the align attribute with the style:float attribute to comply with xhtml standards. I tried the steps given in the below link but that doesnt seem to solve the problem for me. Also, editor.get_html() is not updated at the end of the script operations. I have not set the ConvertToXHtml filter to get disabled because the link says that doesnt solve the problem entirely.

http://www.telerik.com/community/forums/aspnet-ajax/editor/editor-transforming-align-right-into-float-right.aspx


Any suggestions on how to get rid of the style:float element and preserve the align attribute are welcome !
Dobromir
Telerik team
 answered on 11 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?