Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
47 views
Hi!

I am running a RadGrid with items to Edit.  When you open up an item to edit, it has a whole bunch of fields and a table within it.  To edit that table, we click "Add item" and a RadWindow pops up.   I've gotten everything working where you can select the new items and it returns them to the Table within the Edit mode of the RadGrid.  However, to get it to post back with the correct item in the top level RadGrid opened, I need to pass the full ID of that edit button to the RadWindow that I'm opening and do a postback like so:

  RadAjaxManager1.GetCurrent(Page).ResponseScripts.Add("parent.__doPostBack('ctl00$MasterPage$MainContent$ResCompWorkExperience$ComponentList$ctl00$ctl12$EditButton',''); CloseWindow();")


Basically I want a nice way to get that ID from within the RadWindow or another way to make the original RadGrid reload with the proper Edit template open - eg the Edit item who has a component/table that I just changed.

Thoughts?
Brett
Top achievements
Rank 1
 asked on 24 Jan 2013
1 answer
93 views

Hi I have a few questions about the file explore control,
firstly I looked a the online examples and in the getting started section it shows a section of the properties that allow you set to viewpath, deletepath ect but in my properties window in VS 2012 these are not there.

The config property is there and set to Telerik.Web.UI.FileManagerDialogConfiguration but it is not expandable, when i got to the page with the control the file explorer is there but does not work.

Am I missing something?


secondly is it possible to use this control like a file selection dialog, basically I would like a user to navigate to a folder on the server select 1 or more files then press a button on the page that would do a post back so in VB code i could find what files where selected so i could use them?
Vessy
Telerik team
 answered on 24 Jan 2013
5 answers
141 views
Hi All

Why does my gridview insert 2 records on insert. Its not just the insert, I was testing the control values by writing to a literalControl, and this showed twice.

I'm using a data class to fill and form template editing.

Any Ideas. here is my grid code: (I actually have a nested grid but I've taken that portion out to save space - could that be the problem?

Andy

<telerik:RadGrid

             ID="rgRisk"

             runat="server"

             GridLines="None"

             AutoGenerateColumns="False"

             ShowStatusBar="True"

             Skin="Expert"

             EnableEmbeddedSkins="False" 

             OnDetailTableDataBind="rgRisk_DetailTableDataBind"

             OnNeedDataSource="rgRisk_NeedDataSource"

             OnUpdateCommand="rgRisk_UpdateCommand"

             OnInsertCommand="rgRisk_InsertCommand"

             OnDeleteCommand="rgRisk_DeleteCommand" >

              

               <MasterTableView GridLines="Horizontal" CommandItemDisplay="Top" DataKeyNames="Risk_Area_ID" Width="100%" NoMasterRecordsText="No Risk Areas" NoDetailRecordsText="No Risks Identified" >

              

              

                   <Columns>

                      

                       <telerik:GridEditCommandColumn CancelImageUrl="../App_Themes/Expert/Grid/Cancel.gif" EditImageUrl="../App_Themes/Expert/Grid/Edit.gif" InsertImageUrl="../App_Themes/Expert/Grid/Update.gif" UpdateImageUrl="../App_Themes/Expert/Grid/Update.gif" ButtonType="ImageButton"><HeaderStyle Width="15px" /><ItemStyle Width="15px" /></telerik:GridEditCommandColumn>

                      

                       <telerik:GridBoundColumn DataField="Risk_Area" EmptyDataText="&amp;nbsp;" HeaderText="Risk Area" ></telerik:GridBoundColumn>

                         

                       <telerik:GridExpandColumn><HeaderStyle Width="10px" /><ItemStyle Width="10px" /></telerik:GridExpandColumn>

                      

                       <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" Text="Delete" ImageUrl="../App_Themes/Expert/Grid/delete.gif" UniqueName="column"><HeaderStyle Width="10px" /><ItemStyle Width="10px" /></telerik:GridButtonColumn>

                              

                   </Columns>

                  

                    <EditFormSettings EditFormType="Template">

                   

                        <EditColumn UniqueName="EditCommandColumn1"> </EditColumn>

 

                        <EditColumn CancelImageUrl="../App_Themes/Expert/Grid/Cancel.gif" EditImageUrl="../App_Themes/Expert/Grid/Edit.gif" InsertImageUrl="../App_Themes/Expert/Grid/Update.gif" UpdateImageUrl="../App_Themes/Expert/Grid/Update.gif" ButtonType="ImageButton" ></EditColumn>

                            <FormTemplate>

                                <div>

                                    <label class="gridlabel">Risk Area / Room:</label><telerik:RadTextBox ID="txtRiskArea" runat="server" Width="300px" Text='<%# Eval( "Risk_Area" ) %>' CssClass="gridtext"></telerik:RadTextBox>

                                </div>

                                <div>

                                    <asp:Button ID="btnUpdate" cssclass="gridbtn" Text='<%#iif(TryCast(Container, GridItem).OwnerTableView.IsItemInserted, "Insert","Update")  %>' runat="server" CommandName='<%# iif(TryCast(Container, GridItem).OwnerTableView.IsItemInserted, "PerformInsert", "Update" )%>'></asp:Button> 

                                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" CausesValidation="False" cssclass="gridbtn" CommandName="Cancel"/>  

                                </div>

                            </FormTemplate> 

                    </EditFormSettings>

                          

                   <CommandItemSettings AddNewRecordText="Add new area" /><RowIndicatorColumn><HeaderStyle Width="20px" /></RowIndicatorColumn>

                                     

               </MasterTableView>

              

               <FilterMenu EnableEmbeddedSkins="False" EnableTheming="True" Skin="Expert"><CollapseAnimation Duration="200" Type="OutQuint" /></FilterMenu>

              

           </telerik:RadGrid>

Pam
Top achievements
Rank 2
 answered on 24 Jan 2013
1 answer
92 views
When imageManager is opened from the editor and I then click the Edit Image the ImageEditor opens behind the Manager.  This issue just cropped up in the last few days.  The only z-indexes that I've overridden are the radmenu and radcombo.

Attached is a screen shot.

I am using the external dialog directory because of this issue ( http://www.telerik.com/community/forums/aspnet-ajax/image-editor/can-t-save-the-edited-image.aspx ) 

Andy
Rumen
Telerik team
 answered on 24 Jan 2013
1 answer
165 views
Hi !!

I am using RadEditor in which I have facilitated user to set background image of editor using page properties dialog box. Now the issue is I have to set an ImageManager which opens on clicking browse button of Page Properties as shown in attached image and then user is asked to either select the image from existing ones or upload his own. I don't want to show user which images are already exists in server. I just want when user clicks browse button, he should be able to select the image from his local machine and then the selected image will be set as background image of the RadEditor.

Is there any way to implement this? Awaiting for your valuable response..

Thank you,
Dev
Rumen
Telerik team
 answered on 24 Jan 2013
8 answers
262 views
Hi,

I have two issues:

I have a RadTreeview in which all nodes are loaded on deman using ExpandMode=Webservice. THis works well. ALso, when a Node is clicked, information is loaded to the content pane using an ajax request. 

Question 1: I want to implement single click expand for treenodes. I tried to achieve this using node.toggle() in the OnClientNodeClicked eventhandler of the treeview but it both expands and collapses again (probably interferring with the loadondemand stuff). How can I solve this? It works when the nodes children has already been loaded. It works when I remove the ajaxrequest in the end of the "OnClientNodeClicked" function...So it has to have something to do with updating the controls in the content pane. All controls are in the same RadAjaxPanel.

QUestion 2: WHen I have updated data in the content pane I press "Save" and perform post-back. In that postback (in a UserControl) I trigger an Event which the treeview pane receives. I updated the "SelectedNode.Text" value serverside and this works. Since it is possible that the selected nodes children have been modified I also need to refresh the child nodes. I tried to achieve this using serverside collapse and expand in the same method as in which I change the displaytext of the node but it does not work.The expanded=false works, it collapses the node, but expanded=true does not expand it...

Please help

Martin
Martin
Top achievements
Rank 1
 answered on 24 Jan 2013
1 answer
98 views
Found a quirk in MakeUrlsAbsolute. A malformed link can create an error ("Error while execting MakeUrlsAbsolute...")

A customer tried to create an email link, but formatted it incorrectly. Paste the following into html view on your editor demo, then switch to design mode and back to html view to trigger the error

<a href="http://www.somebody@test.com/">Somebody</a>
Rumen
Telerik team
 answered on 24 Jan 2013
1 answer
56 views
Hi i am using telerik rad ListBox ,everything working fine but in my case a person can select different no of item ,so the value based on the role of user.
so i just want to know that how can i restrict a user to add more than 'X' items from list.
(Example if user="Admin" maximum no ="4";) 
Thanks in advance

code is as 

<telerik:RadListBox runat="server" ID="rlbSourceWeeklyOff" Height="200px" Width="200px"
                                    AllowTransfer="true" TransferToID="rlbDestinationWeeklyOff" >
                                </telerik:RadListBox>
                                <telerik:RadListBox runat="server" ID="rlbDestinationWeeklyOff" Height="200px" Width="200px">
                                </telerik:RadListBox>
Peter Filipov
Telerik team
 answered on 24 Jan 2013
4 answers
109 views
I'm using  AsyncUpload drag and support functionality and came across a problem when using it. When the files get dragged to a location on the browser, I notice that the file name is different on temp folder location. For example, I have a file named "web logo.jpg". When it is uploaded, the file name becomes "1358784600604web logo.jpg". However, when I retrieve the file name in the code behind, it is correct.

Do you have any idea why this is happening?

Thanks..
Emrah
Top achievements
Rank 1
 answered on 24 Jan 2013
5 answers
565 views
Hi,

I am currently in the process of migrating a GridView to RadGrid. However, I seem to have hit a roadblock with this specific requirement.

Basically, the grid I am working with is actually an editor for the drop down list items for other pages in the site. One of the columns in this grid is, a radio button to specify whether this value should be the default option. i.e., When the <select> element is rendered, whether this row should have it's "selected" attribute set.

As you can figure out, only one row can have this set to true. So, whenever a radio button in this column is checked, the radio buttons in all the other rows need to get unchecked.

In GridView, we have implemented a custom class which inherits from BoundField to get this behavior. But, I can't add this column to RadGrid's columns collection :(
Vladimir Iliev
Telerik team
 answered on 24 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?