Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
259 views
Hello

Can you tell me you to loop on selectedItems

 var listbox = $find("<%= lbEssenceDispo.ClientID %>");
 var items = listbox.get_selectedItems();

I've not found how to do

Thank a lot

Anne
Princy
Top achievements
Rank 2
 answered on 25 Jan 2013
5 answers
321 views
Hi,

I have implemented a pager with custom button.

<PagerStyle ForeColor="Blue" Mode="NextPrevAndNumeric"
                    NextPageImageUrl="immagini/u221.png"

Works great, but i want to hide the NextPage Button on Last Page of radgrid, or when i select from combobox the max size of the PageSize.

Shinu
Top achievements
Rank 2
 answered on 25 Jan 2013
5 answers
478 views
Does RadGrid supports Copy and paste from excel or any other tools? I would like to be able to copy some data  from an excel file to the RadGrid!

Thanks,
Mahyar
Daniel
Top achievements
Rank 1
 answered on 24 Jan 2013
1 answer
108 views
sorry i don't know where to post my sitefinity questions? is there a sitefinity forum?

i'm developing an web application with sitefinity 5, using MVC mode. my question is, is it possible that setting default values of my widget's public properties?

I used [DefaultValue("...")], but sf throws an exception when editing this property;
I commented out the above line, and sf doesn't throw exceptions;
I set default value to that property via constructor or another field, but neither work.

i just want the below code work:
[ControllerToolboxItem(Name = "coc", SectionName = "test", Title = "coc")]
    public class MyCocController : Controller
    {
        [Category("URLs")]
        [DefaultValue("/coc/details")]
        public string UrlDetails { get; set; }
 
        public ActionResult Index()
        {
            return View();
        }
    }

Any ideas?
Courtney Wilson
Telerik team
 answered on 24 Jan 2013
0 answers
58 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
122 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
169 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
112 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
193 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
318 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?