Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
198 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
247 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
299 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
159 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
1 answer
69 views
I have a Grid on an aspx page that displays some hierarchical data.  I would like to total one column of the sub table and then subtract it from a column in its parent row and display the results in the sub table footer.  Is that possible, and if so, how do I go about it?
Antonio Stoilkov
Telerik team
 answered on 07 May 2012
1 answer
91 views
Hello Expert,
    I'm wanting to work with the scheduler, and I'm looking for demo/sample of scheduling resources and then schedule within the resource.

For example I want to be able to schedule resource availability (e.g. job assignment (overlapping is fine, but not the same time)).  Within this resource I want to able to schedule people to do the task that is assign.  Job assignment like rooms can hold a certain amount of people ei (4 people).

Sample would be great, also a example using store procedure (would be better).

Thank you,
Paul
Peter
Telerik team
 answered on 07 May 2012
3 answers
72 views
Users can change the appointment end date by resizing the appointment with the handle at the bottom of the appointment. However, my client would also like to have a similar handle at the top of the appointment so that the appointment start date can easily be changed. Is this possible, and if not, is such a feature planned for a future release?

Thank you.
Plamen
Telerik team
 answered on 07 May 2012
2 answers
388 views
Hi

I have a RadPanelBar, and I can't find controls inside the ItemTemplate.
I read:Help documentation for accessing item: Accessing Items
Help documentation for accessing control inside: Accessing Controls Inside Templates
But it doesn't work for me.

here is my code:

 

<telerik:RadPanelBar ID="rpbAddFilters" runat="server">

    <Items>

        <telerik:RadPanelItem Text="RadPanelItem" runat="server">

            <Items>

                <telerik:RadPanelItem Value="test" runat="server">

                    <ItemTemplate>

                        <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">

 

                                        <asp:Panel ID="pnlValues" runat="server">

 

                                `       </asp:Panel>


                        </telerik:RadCodeBlock>

                  </ItemTemplate> 
                </telerik:RadPanelItem >
            </Items>
         </telerik:RadPanelItem >
    </Items>
</RadPanelBar>

 

 





function find()
{

    var panelbar = $find("<%= rpbAddFilters.ClientID %>");

 

  

    var item = panelbar.findItemByValue("test");

    var pnlValues = item.findControl("pnlValues");

}



I get null value for pnlValues.


Thanks.
Peter
Telerik team
 answered on 07 May 2012
1 answer
191 views
I can't find any examples or documentation on using asp.net validators with the RadCalendar (not the RadDatePicker).

Ideally, I'd like to have two calendars, and use the CompareValidator to ensure that one date is less than the other. Has anyone been able to do this?
Princy
Top achievements
Rank 2
 answered on 07 May 2012
8 answers
230 views
Hello,

I am unable to find any means to enable client editing of the grid as initial mode.

I wish to have several checkbox colums that can have items checked. As far as I know the table should be in edit mode. But there seems to be no other way than to have a command column, in which the user has to click "UPDATE" or such to enter the edit mode.
What I need is no command column, but just a grid that is in Edit mode from the beginning and has more than one check columns the user can check items in.

Hope you can help me out on this......

Kind regards,

Jack
Andrey
Telerik team
 answered on 07 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?