Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
573 views
Hi,
    I have a RadGrid within a asp:Tablecell. When I try to use the get_masterTableView(), I get the error Object property not defined. Given below is the structure of my RadGrid.

 

<div id="divContent" runat="server" style="display: none;">

 

 

<asp:Table ID="MainContainer" style="width:99%; height:92%; margin-left:1%; margin-right:0%;" runat="server">

 

 

<asp:TableRow>

 

 

<asp:TableCell ColumnSpan="2">

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

<asp:TableRow>

 

 

<asp:TableCell id="tdTimelineCell" CssClass="TimelineCell" runat="server"></asp:TableCell>

 

 

<asp:TableCell id="tdSummaryCell" CssClass="SummaryCell" runat="server">

 

 

<div style="overflow: auto; width: 100%; height: 100%;">

 

 

<telerik:RadGrid ID="SummaryRadGrid" runat="server">

 

 

<MasterTableView AutoGenerateColumns = "false">

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="Id" Visible="false"></telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn HeaderStyle-CssClass="HeaderEpisodeMarginLeft"></telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn DataField="Remote_Index" visible="false"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Time_Effective" Visible="false"></telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn HeaderStyle-CssClass="HeaderEpisodeMarginRight"></telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

 

<asp:label id="lblNoRecords" runat="server" visible="false" CssClass="NoRecords">

 

 

<asp:Literal id="litNoRecords" runat="server" enableviewstate="false">No records</asp:Literal>

 

 

</asp:label>

 

 

</div>

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

</asp:Table>

 

 

</div>

 


I tried getting the master view of the radgrid in the followig ways

var

 

grid = $("#MainContainer tdSummaryCell").find("SummaryRadGrid").get_masterTableView();

 

 

var dgrSummary = $find('<%=SummaryRadGrid.ClientID %>').get_masterTableView();

 

 and many other ways but none of them worked.

Could you please suggest how I can load the RagGrid into a jquey object so I can assign its datasource and bind the grid in jquery.

Thank you,
Mahita 
Radoslav
Telerik team
 answered on 07 May 2012
3 answers
123 views
Dear all,

i am using dbcontentprovider and dbdataserver classes.i am able to add custom fields in radupload and also i am saving the data in DB.
now i want to display some more fields on explorer grid,i am able to create the column in grid but how can i show the data from table.


please guide me.
Thanks.
Dobromir
Telerik team
 answered on 07 May 2012
2 answers
124 views
Is there a way to right align the text in a rad combo?
Thanks ... Ed
Dhamodharan
Top achievements
Rank 1
 answered on 07 May 2012
1 answer
96 views
a while ago I upgraded from v2009.1.527.35  to v2010.1.519.35

everything seemed to be working ok, except when I use the file uploader I get an error

Could not load file or assembly 'Telerik.Web.UI, Version=2009.1.527.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


so it looks like the uploader is still using the old version.  What can I do to fix this ?
Kate
Telerik team
 answered on 07 May 2012
1 answer
86 views
I want to create a simple tree view but I can't seem to do it, should be simple?

My data is structured in 1 table like:

ID Name Date
1 Name1 1/5/2012
2 Name2 1/6/2012
3 Name3 1/5/2012     


I want it to be displayed in the treeView like (Date is Root, name is Child)

1/5/2012
----Name1
----Name3
1/6/2012
----Name2

What properties and values do I need to set on the control to achieve this? DataTextField,  DataFieldParentID , etc

Thanks!
Bozhidar
Telerik team
 answered on 07 May 2012
3 answers
363 views
In my page I toggle content visibility by having partial page updates using the UpdatePanel. The problem is that when my RadComboBox is in the hidden content and later made visible it's completely unresponsive with no events being raised.  Unfortunately I haven't been able to recreate this problem so I can't provide any code but if anyone has an idea of what it could be due to I'd greatly appreciate your advice. 
Marin Bratanov
Telerik team
 answered on 07 May 2012
0 answers
190 views
hi
I was looking for a way to expand a nested view (and collapse all the others) on client side
and since I couldn't find one, I've decided to post my own resolution
I'm using a little bit of jQuery so I could catch the expand button mouseover event

<script type="text/javascript">
    $(document).ready(function () {
        //expand details row to show more data on a certain work
        $(".rgExpandCol").live("mouseover", function (event) {
 
            var masterTable = $find("<%= Grid1.ClientID %>").get_masterTableView();
          //collapse all
            for (var i = 0; i < masterTable.get_dataItems().length; i++) {
                masterTable.collapseItem(i);
            }
            //expend row
            for (var i = 0; i < masterTable.get_dataItems().length; i++) {
 
                if (masterTable.get_dataItems()[i].get_element() == $(this).parent()[0]) {
                    masterTable.expandItem(i);
                    break;
                }
 
            }
             
        });
 
    });
</script>
Yotam
Top achievements
Rank 1
 asked on 07 May 2012
16 answers
238 views
Hello,

I love the export feature available with telerik, but I'm curious of one thing.  If I schedule a recurring appointment, it comes up as one appointment record.  Say this appointment recurs from November to June.  I only want to export the month of January.  How, with the recurring appointments, can I export just the month of January, since recurrence is represented by a single Appointment class?

Thanks.
Shahzada
Top achievements
Rank 1
 answered on 07 May 2012
6 answers
289 views
Hi,

I'm building a pie chart with 10 slices programmatically and having a few problems getting the labels to show the way I want.

I have to set "chart.IntelligentLabelsEnabled = true;" otherwise the labels collide with each other.

But when I turn this on, some of the labels are just omitted altogether, which isn't acceptable.

Also I can't get label connectors to work at all.

I have set "series.Appearance.LabelAppearance.LabelConnectorStyle.Visible = true;" on the chart series, and also tried setting the equivalent property on the individual items for each pie slice as well. I also tried setting the .PenStyle & .Color properties explicitly.

Am I missing something?

Thanks,
Simon

Peshito
Telerik team
 answered on 07 May 2012
2 answers
146 views
Hey gang -

I'm building a new page that needs to allow the user to select a person in the corporate hierarchy, then see that person's direct reports, with some columnar data. So I'm using the RadTreeList control because it appears to be the right tool for the job.

However, I'm struggling with getting beyond the simplest initial implementation (one guy and his immediate direct reports). I've looked around on the forum for answers, but can't find anything that will get me over the hump (probably asking my questions incorrectly). Hopefully, I can glean what I need by asking for help all at once. Thanks in advance for help on...

Here are the problems I'm running in to, mostly around getting a specific value (samAccountName) for a selected item and databinding on demand.

  1. The corporate hierarchy is quite large, so I'm only wanting to load the direct reports when a person clicks on a person within the hierarchy. Otherwise, the CEO and several upper managers will get timeouts when they load the page (because of the large hierarchy). I know the system can handle on-demand loading of child elements, though I cannot figure out how to do it.

    I'm building the initial collection of objects via a WCF service when the user first enters the page, based on their AD Sam Account Name. The collection includes an (int) ID and (int) ParentID - as I understand this is the only way to properly indicate the hierarchical relationships. This is a short list as a rule, and it works for the first load of the page (I'm using the NeedDataSource event handler for all this so far).

    I see the individual and their immediate direct reports (but these reports don't have an expander (+/-) button because I haven't loaded their direct reports - I want to do that on selection).

    I have a method that can check if a person has direct reports, so I can call that for each person in the direct reports list, but how do I show the expander button if they have reports without loading any data yet? I don't want to load that person's direct reports until they have been selected.

  2. Which leads me to the second problem: How do I append a selected person's direct reports to the current treelist's collection on selection? I know I can get the list of items, convert to a collection, append the new direct reports items, and rebind... but... 

  3. How do I get the selected person's Sam Account Name (which is bound to the item, so I know it's available)? 

  4. Which event should fire to reconstitute the collection and rebind?

  5. If I can get the info to do all of that on the correct event handler, then the only other thing I need to know is how can I make a column value (i.e. the person's full name) be the actual selectable button instead of the expander icon? This would be preferable.

  6. Is the RadTreeView the right control for this job???

I know I'm asking numerous questions all at once. I'm hoping the answers are very straightforward. I have to get this thing ready for a demo within the next week.

Again - thanks very much for all the help you can provide in solving this set of dilemmas.
A
Maria Ilieva
Telerik team
 answered on 07 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?