Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 views
hello,  I'm having trouble setting up a grid on a page to use inline editing.  I have followed the examples given, but When i clicck on the edit button, the browser hangs, and I get an error saying that I need to register the script with the ClientScriptManager.  Here is the code:

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
 
        <script type="text/javascript">  
            function RowDblClick(sender, eventArgs) {  
                sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());  
            }  
        </script> 
 
    </telerik:RadCodeBlock> 
 
...a small div that is not affected  
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="rgFollowups">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rgFollowups" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">  
    </telerik:RadAjaxLoadingPanel> 
      
        <telerik:RadGrid ID="rgFollowups" runat="server" AllowSorting="True" GridLines="None" AllowAutomaticUpdates="True" 
            AutoGenerateColumns="False" OnDataBound="rgFollowUps_DataBound" OnItemDataBound="rgFollowUps_ItemDataBound" OnItemUpdated="rgFollowups_ItemUpdated" OnItemDeleted="rgFollowups_ItemDeleted">  
            <MasterTableView Width="100%" DataKeyNames="FollowupID"  Frame="Box" Height="550px" EditMode="InPlace">  
                <HeaderStyle Wrap="true" Height="25px"/>  
                <EditFormSettings  EditFormType="AutoGenerated" ColumnNumber="2" CaptionDataField="FollowupID" CaptionFormatString="Edit properties of Followup #{0}">  
                    <EditColumn ButtonType="LinkButton" InsertText="Insert Order" UpdateText="Update record" 
                        UniqueName="EditCommandColumn1" CancelText="Cancel edit">  
                    </EditColumn> 
                    <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle> 
                </EditFormSettings> 
                <Columns> 
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"  EditImageUrl="Styles/RDeditor/Img/editor.gif"/>  
                    <telerik:GridButtonColumn ConfirmText="Delete this Followup?" ConfirmDialogType="RadWindow" 
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" 
                        UniqueName="DeleteColumn"  ImageUrl="Styles/RDeditor/Buttons/Cancel.gif"/>  
 
 
                    <telerik:GridHyperLinkColumn HeaderText="Follow Up" DataNavigateUrlFields="TransactionID" DataTextField="FollowupID" DataNavigateUrlFormatString="ViewFollowup.aspx?tran={0}"  Target="_blank"/>  
                    <telerik:GridBoundColumn ReadOnly="True" DataField="TransactionID" Visible="false"/>  
                    <telerik:GridBoundColumn HeaderText="Date" ReadOnly="True" UniqueName="colDate"  DataField="Date"/>  
                    <telerik:GridBoundColumn HeaderText="Time" ReadOnly="True" UniqueName="colTime" DataField="Time"/>  
                      
                    <telerik:GridTemplateColumn HeaderText="Reason">  
                        <EditItemTemplate> 
                            <asp:DropDownList ID="ddlReasons" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlReasons_SelectedIndexChanged"></asp:DropDownList> 
                        </EditItemTemplate> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridBoundColumn HeaderText="Primary Seller" ReadOnly="True" UniqueName="colSeller" DataField="Seller"/>  
                    <telerik:GridBoundColumn HeaderText="Buyer" ReadOnly="True" UniqueName="colBuyer" DataField="Buyer"/>  
                    <telerik:GridHyperLinkColumn HeaderText="Property Address" UniqueName="colAddress" DataTextField="Address" DataNavigateUrlFields="TransactionID" DataNavigateUrlFormatString="Transaction.aspx?tran={0}" Target="_blank"/>  
                    <telerik:GridTemplateColumn HeaderText="Change Transaction Status" ItemStyle-HorizontalAlign="Center">  
                        <ItemTemplate> 
                            <asp:CheckBox ID="chkChgStat" runat="server" AutoPostBack="true" oncheckchanged="chkChgStat_OnCheckChanged"/>  
                        </ItemTemplate> 
 
<ItemStyle HorizontalAlign="Center"></ItemStyle> 
                    </telerik:GridTemplateColumn> 
                </Columns> 
                  
            </MasterTableView> 
            <ClientSettings> 
                <Scrolling AllowScroll="True" UseStaticHeaders="False" SaveScrollPosition="true" /> 
                <ClientEvents OnRowDblClick="RowDblClick" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
        <telerik:GridDropDownListColumnEditor ID="GridDropDownColumnEditor1" runat="server" DropDownStyle-Width="125px" /> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
    </telerik:RadWindowManager> 
 
 
It makes no difference whether I use the GridDropDownColumn or a Grid TemplateColumn in this grid.  The confusinf thing for me is that I have a TemplateEdit in another place in this application, and so far the edit button works properly. 

Any Assistance would be greatly appreciated.
Pavlina
Telerik team
 answered on 04 Feb 2010
3 answers
187 views
Hi I am trying to build a content submission form that will allow the user to upload a number of files as part of a job, the files would be uploaded to a folder created for the new job, the data for the job would then need to be stored in the database the form would have a number of input boxes dates etc and each job would have an id. when the job needs to be checked all the data needs to be shown to the user including links to the attached file just for that job.

I understand the basics of a form how would I go about adding multiple files etc I am looking for walkthroughs or tutorials that can take me step by step I am using studio 2008 with user member controls and ASP.NET 3.5 with SQL Express on windows 7 x64 I have not configured IIS yet

thanks

Mike
Veselin Vasilev
Telerik team
 answered on 04 Feb 2010
1 answer
65 views

In IE 8 the controls looks like it is painting over itself when the handle is dragged.

Any idees?

Regards,
Jurie KRitzinger
Tsvetie
Telerik team
 answered on 04 Feb 2010
1 answer
66 views
Hello,

I just begin a new project on the framework 4.0.
And my AJAX is not working at all and I don't understand why. May be I forgot an important step... But I don't see where.

So, it's easy, I have 1 masterPage and 1 page.

In the master page : 
    <telerik:RadScriptManager id="RadScriptManager1" runat="server">  
    <Scripts>  
            <asp:ScriptReference assembly="Telerik.Web.UI" name="Telerik.Web.UI.Common.Core.js" />  
            <asp:ScriptReference assembly="Telerik.Web.UI" name="Telerik.Web.UI.Common.jQuery.js" />  
        </Scripts>  
    </telerik:RadScriptManager>  
          
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings>  
            <telerik:AjaxSetting AjaxControlID="RadTextBoxRecherche" EventName="RadTextBoxRecherche">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="DivContent" />  
                    <telerik:AjaxUpdatedControl ControlID="DivRecherche" />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
        </AjaxSettings>  
    </telerik:RadAjaxManager>  
                          
    <telerik:RadAjaxLoadingPanel id="RadAjaxLoadingPanel1" runat="server" />  
  
    <telerik:RadTextBox ID="RadTextBoxRecherche" runat="server" Width="230px" Height="25px" 
                    EmptyMessage="...Rechercher" EmptyMessageStyle-Font-Size="Medium" Font-Size="Medium"   
                    ontextchanged="RadTextBoxRecherche_TextChanged"
                        <EmptyMessageStyle HorizontalAlign="Right" Font-Size="Medium"></EmptyMessageStyle> 
                        <ReadOnlyStyle HorizontalAlign="Right"></ReadOnlyStyle> 
                        <FocusedStyle HorizontalAlign="Right"></FocusedStyle> 
                        <DisabledStyle HorizontalAlign="Right" /> 
                        <InvalidStyle HorizontalAlign="Right"></InvalidStyle> 
                        <HoveredStyle HorizontalAlign="Right"></HoveredStyle> 
                        <EnabledStyle HorizontalAlign="Right" /> 
                </telerik:RadTextBox> 
 
 <asp:ContentPlaceHolder ID="ContentPlaceHolderContent" runat="server">  
 </asp:ContentPlaceHolder>  
  
<div id="DivContent" runat="server">  
Test 1  
</div>  
  
<div id="DivContent" runat="server">  
Test 2  
</div>  

and 

protected void RadTextBoxRecherche_TextChanged(object sender, EventArgs e) 
        { 
            if (!String.IsNullOrWhiteSpace(RadTextBoxRecherche.Text)) 
            { 
                gestionRecherche(true); 
            } 
            else 
            { 
                gestionRecherche(false); 
            } 
        } 
 
        private void gestionRecherche(bool b) 
        { 
            DivContent.Visible = !b; 
            DivRecherche.Visible = b; 
        } 


And in the page : 
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadTextBoxSociete"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="ImageSocieteGood" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 
 
<telerik:RadTextBox ID="RadTextBoxSociete" runat="server" OnTextChanged="RadTextBoxSociete_TextChanged" AutoPostBack="true"></telerik:RadTextBox> 
                        <asp:Image id="ImageSocieteGood" runat="server" ImageUrl="/Images/fam/good.png" Visible="false" /> 
                        <asp:Image id="ImageSocieteError" runat="server" ImageUrl="/Images/fam/error.png" Visible="false" /> 

and 
protected void RadTextBoxSociete_TextChanged(object sender, EventArgs e) 
        { 
            ImageSocieteGood.Visible = true
        } 


So, as you see it's very simple situations.
But both don't work... and I don't know why.

Thank you
Pavel
Telerik team
 answered on 04 Feb 2010
3 answers
325 views

Hi There,

                I am unble to get tooltip for ImageButton which will be enabled false in some scenarious in those scenarious tooltip for ImageButton is not visible
                                        
                                        can any one help me out reply me soon.

Thanks in advance.
T.Ramakrishna.
Svetlina Anati
Telerik team
 answered on 04 Feb 2010
1 answer
92 views
I have a RadTreeView that is created through server-side code.  I also have a RadPanelBar control that displays from a query when the tree node is clicked.  I have a RadAjaxManager control on the page that points from RadTreeView to RadPanelBar.  I do not have a loading panel.

When I click on a tree node, a postback is occurring instead of an ajax call.  The main problem is that when clicking on one of the lower tree nodes, this postback forces the webpage to scroll back to the top.

Can someone provide some information that will help me get the ajax calls to work?

Thanks
Schlurk
Top achievements
Rank 2
 answered on 04 Feb 2010
3 answers
134 views
Hello,
        i am using the RadEditor in my project.but when i try to bind the data to RadEditor by using it's content property as

// sample code
Dim NewStr as string
NewStr = "Data from database" //i m bindind the data from database here.(min 150 lines of text)
RadComplaint.Content = NewStr

it takes longer time to load the page.
please provide the solution for this.

Regards,
 Satish
Rumen
Telerik team
 answered on 04 Feb 2010
1 answer
47 views
Hi


                In Hierarchical Data Binding  if there is only one child in a tab autopostback is not working in all the radtheme.
Yana
Telerik team
 answered on 04 Feb 2010
1 answer
76 views
Hi,
I have downloaded RAD Ajax control and want to use it in my application but am getting an error shown below.Can you please help me urgently?

'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager

Dimo
Telerik team
 answered on 04 Feb 2010
5 answers
244 views
I have a web page with RadTreeView control in , the control is using checkbox for each item.
The user is required to check some item before submitting, after submittion , if the user uses the IE back button he founds the desired items checked however, when he re-submits. the items is not send as the control is not checked the control is displaying it as checked however , it doesn't refer to items as checked.


Veselin Vasilev
Telerik team
 answered on 04 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?