Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views

This page (http://www.telerik.com/help/aspnet-ajax/manager-vs-panel.html) states that you should use RadAjaxManager or RadAjaxPanel and recommends the RadAjaxManger for more complex scenarios.  I'm attempting to use the RadAjaxManager on a page that where I want the top RadComboxBox selection to affect which controls below it are visible or hidden.  It works but full postbacks are occuring on the page.  Why is that?  If I wrap the controls with RadAjaxPanels then the full postbacks go way and the AJAX works.  I thought you did not need to use RadAjaxPanel with the RadAjaxManger.  Am I okay using RadAjaxManger with RadAjaxPanel in this scenario?








robertw102
Top achievements
Rank 1
 answered on 31 Mar 2010
1 answer
88 views
Hi,

We use the Full -Featured RadEditor version 5.4.0.0 and we have an Error " The page you selected contains a list that does not list.."
I uploaded the file in the flash manager, added to the page, but then when i wanted to change the size, it shows the error below (see attachment)
I removed the file, and saved the page, but still the same error when trying to upload the file. I tried to add a flash file in another page in the same site collection and it worked. I also tried to update in the same page in another content area, but didn't work.
This does not append in all page.

Can you help me with this?

Regards,

Leandro
Stanimir
Telerik team
 answered on 31 Mar 2010
3 answers
260 views
Hi,

I am using the 'RadEditor to edit List Items' feature for sharepoint.

I have a share point list on which one of the column is a multi line column with full html editor support. Now i have a requirement to Set Default Font to Arial & size =1

Please let me know how i can do so?

Regards,
Kunal Mittal
Stanimir
Telerik team
 answered on 31 Mar 2010
3 answers
114 views
Hello,
I,ve RadTabStrip with 5 RadTab, and RadMultiPage with 5 RadPageView so every RadPageView contains iframe.
that third tab with code mainTabStrip.FindTabByValue("thirdTab").PageView.Selected = true;
when program is runing and contanis iframe still not load, i do click second tab so i,ve get javascript error
  Invalid argument.  Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=mainScriptManager_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a3bbfe379-348b-450d-86a7-bb22e53c1978%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.2.701.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7e598a31-3beb-49a1-914c-5f530240f0ea%3a16e4e7cd%3a11a04f7e%3a58366029%3af7645509%3a24ee1bba%3aa585d0d4%3a874f8ea2%3a2a2fc429%3a68f76a79%3ae330518b%3a1e771326%3ac8618e41%3ae4f8f289%3a19620875%3a33108d14%3abd8f85e4%3aed16cbdc, line 384 character 7

regards
Yana
Telerik team
 answered on 31 Mar 2010
6 answers
224 views
Hi,

I am using the 'RadEditor to edit List Items' feature for sahrepoint.

I have a share point list on which one of the column is a multi line column with full html editor support. Now i have a requirement to set the property :
StripFormattingOnPaste to AllExceptNewLines.

Since i do not have the aspx page or control or anything on this page, can you tell me how exactly can i achieve this.

Regards,
Kunal Mittal
Stanimir
Telerik team
 answered on 31 Mar 2010
0 answers
85 views
Hi,

I've created a dynamic view event page for radschedular and need a way to display out the RecurrenceRule & RecurrenceParentID in a human readable form.
What is the best way to do this?
Are there any pre-built methods for accomplishing this?

Thanks in advance.

Regards,
Iry
Iry Lee
Top achievements
Rank 2
 asked on 31 Mar 2010
2 answers
585 views
New to Telerik, so forgive my ignorances but I am stuck on how to update data in my grid.

I have a grid that uses the NeedDataSource method to bind to a list of objects
<MasterTableView DataKeyNames="Id" Width="100%" AutoGenerateColumns="False"  
OnNeedDataSource="RadGrid1_NeedDataSource"


With my method like:
protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e){  
IList<FXGroup> FXData = new List<FXGroup>();  
RadGrid1.DataSource = FXData;  



This is properly populating my grid.

I have set up the grid so that a doubleclick event on a line runs a client side script:
        function GridRowDblClick(sender, eventArgs) {  
            editedRow = eventArgs.get_itemIndexHierarchical();  
            $find("<%= RadGrid1.MasterTableView.ClientID %>").editItem(editedRow);  
        }  

This in turn opens my grid with an edit control, as defined in my mark up:
<telerik:GridBoundColumn DataField="Quantity" HeaderText="Qty"  
SortExpression="Quantity" UniqueName="Quantity" ReadOnly="False" ColumnEditorID="GridQuantityEditor" EditFormColumnIndex="0" >    
</telerik:GridBoundColumn>   
... 
<telerik:GridNumericColumnEditor ID="GridQuantityEditor" runat="server" NumericTextBox-Width="50px" NumericTextBox-NumberFormat-DecimalDigits="0" /> 

What I can not figure out is now what?  I tried to add an event to the grid
OnUpdateCommand="RadGrid1_UpdateCommand" 

 And in here I am not sure what all I need to do.  In order to do what I need I must call a .Save() event on my Object that is contained in the grid, in order to persist back to a database. I would think that in my code I could just do something like:
protected void RadGrid1_UpdateCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) 
        GridEditableItem editedItem = e.Item as GridEditableItem; 
        GridEditManager editMan = editedItem.EditManager; 
    object item = GetObjectByID(editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["Id"].ToString()); 
    item.Save(); 

This of course doesn't do anything.  My edited values do not get passed back into the entity.  Do I need to actually do something to pass the edit control values into my object?  How can I account for the various data types that the object's properties contain?

As you can probably tell I am pretty confused.  All of the samples that I have found discuss updates only against grids with defined datasourceids using what appears to be automatic updates.  I would hope that with a grid bound the way I have it that the grid edits would update the object it is bound to and I would just need to do the final  object .Save event.  Doesn't seem to be the case.



Kris
Top achievements
Rank 1
 answered on 31 Mar 2010
7 answers
257 views
Hi


I am using Visual Studio 2008, ASP.NET 3.5 and ASP.NET AJAX.
My telerik version is Q1_2009_SP1
My problem is RadProgressArea works well with IE7 but  not working in FireFox on PC .

Please let me know what am i missing or do I need to add any code in order for the progress area to show?

Thanks In Advance




Jason
Top achievements
Rank 1
 answered on 31 Mar 2010
7 answers
841 views

Hi,

I want to be able to access a radGridthat is nested inside a radGrid then populate the nested radGrid from theOnEditCommand of the parent radGrid.

 

For example: radGrid1 containsradGrid2 within the EditFormSettings.FormTemplate. OnItemCommand, I want todisplay custom formatting for my edit form as well as a new radGrid with otherinformation. Is this possible?

 

I have tried using thee.item.findControl(“radGrid2”) from the GridCommandEventArgs, but null isreturned. In fact, any object I have within the EditFormSettings.FormTemplateseems to be inaccessible using this syntax. Since this didn’t work, I triediterating through the radGrid1’s items and searched for theGridItemType.EditFormItem and tried locating radGrid2 that way, but also wasunsuccessful.

protected void RadGrid1_OnEditCommand( object sender, GridCommandEventArgs e )  
        {  
            RadGrid masterGrid = (RadGrid) sender;  
            foreach ( GridItem gi in masterGrid.Items )  
            {  
                if ( gi.ItemType == GridItemType.EditFormItem )  
                {  
                    TextBox textBox1 = (TextBox) e.Item.FindControl( "txtCreditorName" );  
                    RadGrid radGrid2 = (RadGrid) e.Item.FindControl( "RadGrid2" );                      
                }  
            }  
        }  
 

 

 I looked into the thread whichis talking about <NestedViewTemplate> but that is different from what Iwanted to do.

Can you please take a look at it? Anyhelp would be greatly appreciated.

 

 Here is  my code in aspxpage.

            <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" Width="100%"  
                AutoGenerateColumns="False" GridLines="None" Height="100%" onneeddatasource="RadGrid1_NeedDataSource" 
                onupdatecommand="RadGrid1_UpdateCommand"  oneditcommand="RadGrid1_EditCommand" onupdatecommand="RadGrid1_InsertCommand"
                 
            <PagerStyle Mode="NumericPages" AlwaysVisible="True" />                
            <MasterTableView CommandItemDisplay="Top" Width="100%" AllowMultiColumnSorting="True" EditMode="PopUp" 
                DataKeyNames="creditor_id" Name="creditor">    
                 
                 <Columns>                     
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                        <HeaderStyle Width="30px" /> 
                        <ItemStyle CssClass="MyImageButton" /> 
                    </telerik:GridEditCommandColumn> 
                    <telerik:GridBoundColumn SortExpression="creditor_id" HeaderButtonType="TextButton" DataField="creditor_id" 
                        HeaderText="Creditor Id" UniqueName="creditor_id" ReadOnly="true" Display="false"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn SortExpression="Name" HeaderButtonType="TextButton" DataField="Name" HeaderText="Creditor Name" 
                        UniqueName="Name"
                    </telerik:GridBoundColumn> 
 
                </Columns>                  
                        
 
           <EditFormSettings EditFormType="Template" PopUpSettings-Height="300px" PopUpSettings-Width="450px"
                     
                    <EditColumn UniqueName="EditCommandColumn1"
 
                    </EditColumn> 
                    <FormTemplate> 
                        <table id="tblCreditor" cellspacing="5" cellpadding="1" width="450" border="0" rules="none"
                            <tr> 
                                <td> 
                                    Creditor Name: 
                                </td> 
                                <td> 
                                    <asp:TextBox ID="txtCreditorName" runat="server" Text='<%# Bind( "Name") %>'</asp:TextBox> 
                                </td> 
                            </tr> 
 
                            <tr> 
                                <td> 
                                     
                                   <telerik:RadGrid ID="RadGrid2" runat="server" Width="100%"
 
                                    <PagerStyle Mode="NumericPages" AlwaysVisible="True" />                
                                    <MasterTableView CommandItemDisplay="Top" Width="100%" AllowMultiColumnSorting="True"  
                                        DataKeyNames="person_id" Name="contact"
 
                                         <Columns> 
                                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn2"
                                                <HeaderStyle Width="30px" /> 
                                                <ItemStyle CssClass="MyImageButton" /> 
                                            </telerik:GridEditCommandColumn> 
                                            <telerik:GridBoundColumn SortExpression="person_id" HeaderText="Person Id" HeaderButtonType="TextButton" 
                                                DataField="person_id" UniqueName="person_id" ReadOnly="true" Display="false"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn SortExpression="Name" HeaderText="Contact Name" HeaderButtonType="TextButton" 
                                                DataField="Name" UniqueName="Name"
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn SortExpression="Description" HeaderText="Description" HeaderButtonType="TextButton" 
                                                DataField="Description" UniqueName="Description"
                                            </telerik:GridBoundColumn> 
                                        </Columns> 
                    
                                    </MasterTableView> 
                                  </telerik:RadGrid>                    
                                                  
                             </td> 
                            </tr> 
                            <tr> 
                                <td align="center" colspan="2"
                                    <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' 
                                        runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' 
                                        ValidationGroup="creditor" TabIndex="7"></asp:Button>&nbsp; 
                                    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" 
                                        TabIndex="8"
                                    </asp:Button> 
                                </td> 
                            </tr> 
                        </table> 
                    </FormTemplate> 
 
                   <PopUpSettings Height="300px" Width="450px"></PopUpSettings> 
                     
                </EditFormSettings> 
            </MasterTableView> 
            </telerik:RadGrid> 
 



Pavlina
Telerik team
 answered on 31 Mar 2010
1 answer
175 views
Hi There,

I am having an issue where everytime I switch back and forth from html view and design view, empty <p> tags are being added.  The first time I switch back and forth it adds <p>&nbsp;</p> and everytime after that it adds <p></p>.  So if I switch back and forth 4 times I get.

<p>&nbsp;</p>
<p></p>
<p></p> 
<p></p>

Does anyone know why this is happening and how to fix it?

Thanks.
Rumen
Telerik team
 answered on 31 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?