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

I am using radgrid with pop up edit form ,Edit form is opening on double click of row. 
radfrid has "status" column inside it

following are the status
Approved , verified , declined.

so I want to open edit form only if there is decline status so user can resubmit the record
 if  status is approved and verified  I don't want to open edit form on double click.

Please give any suggestion.

Thanks and regards,
Amit

Shinu
Top achievements
Rank 2
 answered on 25 Jan 2013
0 answers
127 views
//The code will generate RadTreeNode. The node has multiple subnodes.
EntityCollection
<MusicEntity> collection = GetMusicData(); EntityCollection<MusicEntity> collection = GetMusicData(); treMusic.Nodes.Clear(); ArrayList ptnodes = new ArrayList(); RadTreeNode nodeWorkplane = new RadTreeNode(p.PWork); RadTreeNode nodeUser = new RadTreeNode(p.UserProject.Items[0].UserName); RadTreeNode musicgroupnode = new RadTreeNode(p.MusicSubGroup.MusicGroup.Name, String.Empty); RadTreeNode musicsubgroupnode = new RadTreeNode(p.MusicSSubGroup.Name, String.Empty); RadTreeNode musicnode = new RadTreeNode(p.MusicTitle); musicsubgroupnode.Nodes.Add(musicnode); musicgroupnode.Nodes.Add(musicsubgroupnode); nodeUser.Nodes.Add(musicgroupnode); nodeUser.Nodes.Add(nodeWorkplane); pgnodes.Add(nodeUser); foreach (RadTreeNode pg in ptnodes) { treMusic.Nodes.Add(pg); }

From the code above, this is treenode that will display.

User1
  -> Music Group node 1
    -> Music SubGroup node 1
         -> Music Node 1

  -> Node Workplane 1

User1
  -> Music Group node 2
     -> Music SubGroup node 2
         -> Music Node 2
   -> Node Workplane 2

My question how i can combine user1 in one node. Thank you for helps. so the following node that i want to achieve:

User1
      -> Music Group node 1
        -> Music SubGroup node 1
             -> Music Node 1


      -> Music Group node 2
         -> Music SubGroup node 2
             -> Music Node 2

      -> Node Workplane 1
      -> Node Workplane 2
Mark de Torres
Top achievements
Rank 1
 asked on 25 Jan 2013
1 answer
185 views
Hi,

I have a requirement in my project that i have to export the data from RadGrid to excel.

This can be achieved by using the following command:

.MasterTableView.ExportToExcel();

But i want a few rows in the excel (which is exported) grouped by means of expand and collapse feature to the left of the row.

Please find attached the screenshot.

Thanks in advance

Regards, Vasanth
Shinu
Top achievements
Rank 2
 answered on 25 Jan 2013
3 answers
242 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
294 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
441 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
81 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
50 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
102 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
151 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?