Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
218 views
I have a tree view.
I add a new node, and allow the user to edit it.
The user presses the escape key and cancels the editing.

Problem: There is no event to let me know that the editing was cancelled, so that I can remove the node!

From my testing, it would appear that in this case niether the "OnClientNodeEdited" or "OnClientNodeEditing" events are triggered

Unless I am missing something, there is no other event that would cover this case.

Is there anything I can do, other than set-up a timer to poll for the change in the editing state of the node?

Thanx

Andrew
Jason
Top achievements
Rank 2
 answered on 04 Feb 2010
1 answer
162 views
Hi,

I have a Filter-enabled Grid with 10 columns. The last column's type is CheckBox. If doing filter without data back, the last column will disappear. If I put the CheckBox column as the last second column, then when I scroll to the end of grid, it will disappear also. I have to scroll back a little bit to see it. How can I fix this problem?

I am using the following setting:

</

 

MasterTableView>

 

 

<FilterItemStyle HorizontalAlign="Left" />

 

 

<HeaderStyle Font-Bold="true" />

 

 

<ClientSettings EnableRowHoverStyle="true">

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="2">

 

 

</Scrolling>

 

 

<Selecting AllowRowSelect="True" />

 

 

</ClientSettings>

 

 

<PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />

 

 

</telerik:RadGrid>

Thanks,
Enoch

Pavlina
Telerik team
 answered on 04 Feb 2010
1 answer
109 views
Does Multi column menu have RTL support ?
Veronica
Telerik team
 answered on 04 Feb 2010
1 answer
111 views
Hello.

On the masterpage I have search form. After clicking on button "search" loaded radgrid (search form is not visible). Here url adress is the same as in search form. On hyperlink pressing in radgrid open new page with details data. Here url adress is the another. Here I have button "Go back". If I press on this button, I go on search form, but I need go to radgrid . Before using radajaxmanager  I have used javascript:history.go(-1); for going back on radgrid. But now it not work correctly. Do you have any idea?

<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnSearch">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="btnSearch" />
                <telerik:AjaxUpdatedControl ControlID="contentView1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
...
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>


Regards,
Roman
Iana Tsolova
Telerik team
 answered on 04 Feb 2010
1 answer
128 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
196 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
72 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
337 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
96 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?