Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
123 views
How to find the treelistboundcolumn value in void function call

<telerik:RadTreeList ID="RadTreeListWork" runat="server" OnNeedDataSource="RadTreeListWork_NeedDataSource"
                        ParentDataKeyNames="WorkParentId" DataKeyNames="WorkId" AutoGenerateColumns="False"
                        OnItemDataBound="RadTreeListWork_ItemDataBound" EditMode="PopUp" AllowMultiItemEdit="False"
                        Culture="(Default)" GridLines="None" IsItemInserted="false" ShowOuterBorders="False"
                        Width="900px">
                        <%--AllowPaging="true" PageSize="10"--%>
                        <Columns>
                            <telerik:TreeListBoundColumn DataField="WorkId" HeaderText="WorkId" ReadOnly="true"
                                UniqueName="WorkId" HeaderStyle-Width="75px" ForceExtractValue="Always" Visible="false" />
                            <telerik:TreeListBoundColumn DataField="WorkParentId" HeaderText="WorkParentId" HeaderStyle-Width="65px"
                                UniqueName="WorkParentId" ReadOnly="true" ForceExtractValue="Always" Visible="false" />
                            <telerik:TreeListBoundColumn DataField="WorkName" HeaderText="Name" UniqueName="WorkName"
                                HeaderStyle-Width="70px" />
                            <telerik:TreeListBoundColumn DataField="WorkDescription" HeaderText="Description"
                                UniqueName="WorkDescription" HeaderStyle-Width="170px" />


.cs

foreach (TreeListDataItem item in RadTreeListWork.Items)
               {
                   dtl1 = new xmlDSPrepareClaimDtl();
 
                   int? id = (int?)item.GetDataKeyValue("WorkId");
                   int? Parentid = (int?)item.GetDataKeyValue("WorkParentId");

i find like that id is coming but parent id and other things are not come

Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 25 Jan 2013
3 answers
86 views
My application contains a datagrid. Each record have different values but buttons(Edit button) with same name against each record. how to click a particular button corresponding to a particular record using test studio
Princy
Top achievements
Rank 2
 answered on 25 Jan 2013
3 answers
75 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
119 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
182 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
231 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
281 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
435 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
72 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
49 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?