Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
394 views
Hi,

I have an XML like this:

<Notes>
   <Note id="111" author="John Doe">
      <SubNote text="Sub note text 1"/>
   </Note>
   <Note id="222" author="Mary Jane">
      <SubNote text="Sub note text 2"/>
   </Note>
</Notes>

Basically I want to use a RadGrid to display:

1. The author in the first row with an expand/collapse icon next to it
2. The subnote directly underneath the note (ie. a separate row)
3. When the expand icon is clicked I want to display the actual contents of the note (server side call).

Is this possible? I toyed with NestedTemplates, DetailTables and even trying to dynamically create rows but didn't get very far.

Here is a screenshot of what I'm trying to achieve:

http://rs552l34.rapidshare.com/files/172818872/grid_example.PNG

Thanks for your help
Duc
Prangadj
Top achievements
Rank 1
 answered on 15 Dec 2008
10 answers
172 views
I am having two really odd problems with a RadSpell button.

1.  I am placing the RadSpell button next to two other regular buttons.  However the RadSpell button keeps forcing itself onto the next line.  It won't stay on the same line as the other buttons.
2.  I can't get it to center horizontally.  It is placed in a div with css applied to handle the centering of the objects.  Everything else is centered properly except for this RadSpell button.

So it is forcing line breaks and won't center.  Any help will be appreciated.

Thanks!



Kosal
Top achievements
Rank 1
 answered on 15 Dec 2008
5 answers
549 views
How do I update the text of a label/control on my page when the user changes the value, using the OnValueChanged ClientEvent.

I have a Master/Content page scenario, with a RadAjaxManager in the master page and a RadAjaxManagerProxy in the content page. I also have my function in a RadCodeBlock and am using

$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("args"); 

to get the args. I can't get the numerictextbox to update the label's text when I change the value.

Here is my code block but neither line to set the text worked.

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
 
        <script language="javascript" type="text/javascript"
                function OnClientValueChanged (sender, args) 
                { 
                    $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("args"); 
                    <%= lblValueEntered.ClientID %>.Text=  "Value Entered:" + args.get_newValue(); 
                    // document.getElementById("lblValueEntered").Text =  "Value Entered:" + args.get_newValue(); 
                } 
        </script> 
    </telerik:RadCodeBlock> 


My textbox looks like this
           <div style="text-align: center; margin: 5px 0px 0px 5px;"
                <asp:Label ID="lblScheduled" runat="server" Text="Lessons Scheduled" AssociatedControlID="txtScheduled"></asp:Label> 
                <telerik:RadNumericTextBox ID="txtScheduled" runat="server" ShowSpinButtons="True" 
                    Culture="English (United States)" Width="125px"
                    <ClientEvents OnValueChanged="OnClientValueChanged" /> 
                </telerik:RadNumericTextBox> 
            </div> 

I also tried adding those 2 controls, the textbox an the label to the updatedcontrols but that didn't help.

What am I missing here? Please help!

Aniket



Daniel
Telerik team
 answered on 15 Dec 2008
1 answer
176 views
Hi,
I haven't found this information anywhere.  I know that the max that the upload can do is 2GB. but is there a limitation on how big a file can be.  so far my experience has been if the file is less than 1mb i can load it . now if i load several files that equal to 1mb it loads fine but when i load a single 1mb file it doesnt.  Any clarity would be appreciated.
Veselin Vasilev
Telerik team
 answered on 15 Dec 2008
11 answers
179 views
Hello,

Why doesn't this recur?  In the backend database, I have this:

DTSTART:20081208T090000Z  DTEND:20081208T113000Z  RRULE:FREQ=DAILY;UNTIL=20090227T000000Z;INTERVAL=1 

For one appointment entry.  I have the 

DataRecurrenceField and the 

 

DataRecurrenceParentKeyField

set correctly, but no recurring appointments, not even the original 12/8 appointment.  Why is that?  This is the only feature in the scheduler that does not just want to work, and I desperately need it to.

Thanks.

Peter
Telerik team
 answered on 15 Dec 2008
15 answers
522 views
Hi ,
I have a grid. two button on my grid one is "Edit" another is "Delete"

i set EnablePostBackOnRowClick="true" ,because  i want on click event the item state is change to Edit.

 protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)  
    {  
        if (e.CommandName == "RowClick")  
        {  
            e.Item.Edit = true;  
            (source as RadGrid).Rebind();  
        }  
    } 

The problem is .when i click delete button. we also get row click event. can we stop it.

We i use RowClick event
 <ClientEvents OnRowClick="RowClick2" 
 function RowClick2(sender, args) {  
        $find("<%= RadAjaxPanel1.ClientID %>").ajaxRequest("Edit:" + args._itemIndexHierarchical);  
    } 
That is correct. when i click the delete button. i don't get the RowClick event that is correct.

Btw: when you use DetailTable with EnablePostBackOnRowClick="true" . when click the DetailTable button. it is collapsing.
Daniel
Telerik team
 answered on 15 Dec 2008
1 answer
116 views
Hello,

I wanted to edit all items in all detail tables. Here is the javascript I used:

             var grid = $find("<%= RadGrid1.ClientID %>"); 
             for (i = 0; i < grid.get_detailTables().length; i++) { 
                var detailTable = grid.get_detailTables()[i]; 
                for (j = 0; j < detailTable.get_dataItems().length; j++) { 
                    detailTable.editItem(detailTable.get_dataItems()[j].get_element()); 
                } 
             } 

To my surprise, only the last item in the last details table entered the edit mode and I can't understand why. I have set both AllowMultiRowEdit="true" and AllowMultiRowSelection="true" I have also looked over the 'Going into edit mode with AJAX double-click', but I see a problem there in finding the ID of the detaile table, or at least it's index in the detailesTable array, because the mentioned article only shows how to edit with double click a master table view.
I am also looking for a way to perform a batch update on all of these detail tables. Will EditItems property of the RadGrid hold all currently editable items, even if they are from the detaile tables?

Thanks in advance.
Sebastian
Telerik team
 answered on 15 Dec 2008
1 answer
67 views
I'm looking to flip the resource and time view for my scheduler (ie, have the time displayed on the X axis, and multiple resources displayed on the Y axis.)  NOT like Outlook.  Is this possible with the Telerik RADScheduler control?

Thanks!

Peter
Telerik team
 answered on 15 Dec 2008
1 answer
85 views
when clicking text for apointment (the word clicked) dissapears and only way to get it back is to rebind the grid.
the problem happens even in the online example
http://demos.telerik.com/aspnet-ajax/Scheduler/Examples/TimelineView/DefaultCS.aspx

click the word "history" to edit the appointment, for the clicking instants it dissapears, and when u cancel the appointment it comes back, in my case i am launching a rad window on click and mine stays dissapeared until i am rebinding the scheduler
Peter
Telerik team
 answered on 15 Dec 2008
1 answer
137 views
Hi,

I've got a situation where I need to upload a file, then process it, all the time letting the user know how it is all going.
At the moment I have the progress area working fine for the upload (showing the progress for multiple files).
Once the file is uploaded, I can even send data to the existing progress area using RadProgressContext to update the uploader's progress area.

Question 1.

Is it possible to control a second progress area for the second stage of the process?
This would be cleaner, and would avoid the issue where the progress bar goes to 100% when the upload is complete, then continues from 50% when starting the second phase.


Question 2.

Is it possible to send data back via the progress area that could be used by the client?
In my case I'd want to send the names fo the files successfully saved and the names of those rejected.

Thanks
Veselin Vasilev
Telerik team
 answered on 15 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?