Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
64 views
Using ServerOnDemand, the grid post back when collapsing, and then when re-expanding the same row item is hits the server again.  There a way to have the client remember the data that was there so it just pulls up the rows again real fast? And also to not post back on collapse?
Veli
Telerik team
 answered on 11 Aug 2009
4 answers
74 views
When I click on the dock title bar (created with a template) the dock completely moves its location (switches with the dock above it).  How can I prevent this from happening.  I don't want to set the drag handle, I just don't want the dock to move on click.  I want it to move on drag only.

Thank you,
Beth
Modern
Top achievements
Rank 1
 answered on 11 Aug 2009
3 answers
116 views
I spent so much time today trying to figure out why site does not work on Opera Mini.
Steps to reproduce.
1. Create a RadAjaxPanel
2. Put down 2 RadTextbox control
3. Put on requiredfieldvalidators that point to the radtextbox.
4. Put a Regular Submit button.

Render this using opera simulator located at http://www.opera.com/mini/demo/
When you click next button the page seems to not save state. Like the text box was not filled.
 Is there something wrong I am doing. I also removed runat=server in the head declaration.
Martin
Telerik team
 answered on 11 Aug 2009
3 answers
123 views
Greets.

When I deselect a row, I'm wondering if there is anyway I can tell that another row will be selected immediately afterwards; that is that the row is being deselected because another row has just been selected.

If I have one row selected and a user unchecks (deselects) it, I want the UI to reset itself to its default view where no rows are selected.
If I have one row selected and a user selects another row, deselecting the previous one in the process, I don't want to reset the UI rather I just want to populate the UI based on the new selected row.

This will get rid of a slight flicker that occurs when selecting a new row when a previous selection already exists.

I doubt there is any way since deselection has to occur before selection; and at that point the row count will always be 1.
Just wondering if anyone can make some helpful suggestions.
Tsvetoslav
Telerik team
 answered on 11 Aug 2009
1 answer
92 views
Hi,

I have a grid on a usercontrol, which is called from a content page.  The grid is created using the GridColumn Collection Editor, and contains two columns, a GridClientSelectColumn, and a GridBoundColumn which is of datatype System.Int32.  I have enabled filtering and the AllowFilteringByColumn is True.

I also have a list :  List<Int32> valueList = new List<Int32> , which is populated.

In my RadGrid1.NeedDataSource I assign RadGrid1.DataSource  = valueList.

The problem is that when the usercontrol is loaded, and I enter a value in the filter box, and select any option (such as equal to), the grid is not filtered.  I have debugged and the NeedDataSource is called after the filter option is selected.

Anyone have any idea what I am doing wrong?
Veli
Telerik team
 answered on 11 Aug 2009
3 answers
114 views
I have a scenario and I'm struggling with the best way to implement it using Rad Ajax controls.

The system I have has a very custom single sign on process with multiple redirects and code execution. Here is the current flow:

1. Enter info, click Login button
2. Redirect to Site 2
3. Site 2 does it's thing (outside of my control)
4. Site 2 redirects back to Page 2 on Site 1
5. Page 2 does all sorts of processing, multiple web service calls to multiple sites
6. Upon completion, Redirect to Site 3
7. Site 3 does its thing (I have control of this site and on same server as Site 1)
8. Site 3 redirects back to Site 1
9. Done

This whole process takes anywhere from 5-35 seconds on different computers, connections, etc. So I'm trying to figure out a way to give the user a better experience. Currently, the browser does not display any other pages other than Page 1 on Site 1. All of the other redirects and pages listed above are simply blank pages with code behind. So the user doesn't even know they are being redirected multiple times.

I'm almost 99% sure I can't do anything with Ajax when it involves redirects...? If that assumption is correct, my only option is to do something with Step 5 above. Since Page 2 on Site 1 does all the code processing, web service calls, etc. I am thinking I can Ajax that page. Currently all the code for that page simply executes on page load, then redirects.

How can I put an Ajax Loading Panel on the page and get it to fire on Page_Load, have all the code execute, and then redirect when finished? My initial thought is to put a timer on Page_Load that will basically pause things for a split second, once the timer completes it would fire off the function that handles the code execution (and the Loading Panel display), once the code execution completes it would redirect as normal.

I'm looking for the best implementation here, so even if I'm way off base, I'd appreciate any ideas. Thanks.
Veli
Telerik team
 answered on 11 Aug 2009
1 answer
94 views
I have wasted a lot of time today because I did not fully understand the control hiarcy of the RadGrid.
 My problem was that I were not able to get the values from the editedItem controls.

My grid has a  GridTemplateColumn like this 


<
telerik:GridTemplateColumn UniqueName="doc_name_org" HeaderText="Document">

 

<HeaderStyle CssClass="colored_header" Width="40%" />

 

 

 

<ItemStyle CssClass="colored" Width="40%" />

 

 

 

<ItemTemplate>

 

 

 

<asp:ImageButton ID="lnk_doc_name_org_img" Style="border: 0px; vertical-align: middle;" runat="server" />

 

 

 

<asp:HyperLink ID="lnk_doc_name_org_txt" runat="server"></asp:HyperLink>

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

 <asp:TextBox ID="txtFileName" CssClass="small" Style="float: left" runat="server" Text="" Width="60%"></asp:TextBox>

 

 

 

 <input type="button" style="float: right" causesvalidation="false" id="btnGetExtraDoc" runat="server" class="button_small" value="Get document" />

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

 


Handling the ItemTemplate was ok, but the EditItemTemplate was a bit more tricky.
Every example I came across used this methode to get the value from the textbox txtFileName

 

 

Dim DocName As String = TryCast(editedItem("doc_name_org").Controls(0), TextBox).Text

But of course it was not that simple. It turned out that I had to use .Controls(1) to get the textbox value.

 


I find this a bit confusing because I actually would expect the textbox to be control(0) and the button to be control(1)....
Any explenations for this? Is control(0) the ItemTemplate and Control(1) the EditTemplate?
If so, I must have missed this explenation somewhere....

To remove the posibility of messing this up later on I figured I should use another approach that does not relay on me to get the index right.

So, the following line accomplishes the same result, but more failsafe. I can add/remove controls without any damage.

Dim
DocName2 As String = TryCast(e.Item.FindControl("txtFileName"), TextBox).Text

I think the examples for Telerik Controls should also demonstrate more complex implementations and give explenations for them, not just basic implementations.

Hope this helps someone.

regards
Alexander

 

 

 

Tsvetoslav
Telerik team
 answered on 11 Aug 2009
1 answer
100 views
Hi,

I have added an Attachment custom attribute to my scheduler. To upload the attached files I use RadWindow. This is from AdvancedForm.ascx:


<script type="text/javascript">  
   function openRadWindow()  
   {  
       var oWnd = radopen("DesktopModules/Calendar/AppointmentForms/UploadFiles.aspx", "RadWindow1" );  
                oWnd.center();  
   }  
</script> 
 
 <telerik:RadWindowManager ShowContentDuringLoad="false" AutoSize="false" Skin="Vista"
    ID="RadWindowManager1" runat="server" VisibleStatusbar="false" Height="300px" Width="400px">
        <Windows>
            <telerik:RadWindow ID="RadWindow1"
            runat="server"
            Title="File Upload"
            Height="300px"
            Width="400px"
            Left="200px"
            DestroyOnClose="true" 
            VisibleStatusbar="false" 
            ReloadOnShow="true" />
        </Windows>
</telerik:RadWindowManager>

<

 

asp:Panel runat="server" ID="AdvancedControlsPanel" CssClass="rsAdvMoreControls">

Attachments:

 

<asp:Label runat="server" ID="lblAttachment"><%# ShowAttachments() %> </asp:Label><br /> 
<href="#" onclick="openRadWindow(); return false;">Add files</a> 
 

Everything works great until I add this control to my DNN site. Then the window shows the scheduler page instead of the upload page. What could be the problem?

Thanks,
Julia
Dimitar Milushev
Telerik team
 answered on 11 Aug 2009
1 answer
88 views
I have a textBox and Radgrid on Parentpage....
if i click edit Button inside radgrid i want to set texbo
x(outside radgrid) value to Somevalue.....

I have used following Code in ItemCommand Event

       If e.CommandName = "Edit" Then

            Dim index As Integer = e.Item.ItemIndex

            Dim item As Telerik.Web.UI.GridDataItem = RadGrid1.Items(index)

            Dim nitem As Integer
            nitem = Server.HtmlDecode(item("pnv_id").Text)
            textBox1.text=nitem
        End If

I M using EditPopupForm mode..when i click on edit Button inside grid.Popup Form Appears but .textbox value is Not Changed


Please Suugest a Solution for This.

Yavor
Telerik team
 answered on 11 Aug 2009
1 answer
92 views
Hi,

I am currently replacing my radScheduler edit form using Replacing The Edit Form and Client Side Objects

My radScheduler is grouped by "Studios" (Rehearsal Studios). And "Studios" are "Blue", "Red", "Yellow", ...

And my current code is
            function AppointmentInserting(sender, eventArgs) { 
                var start = formatDate(eventArgs.get_startTime()); 
                // New appointment 
                window.radopen("AdvancedForm.aspx?Mode=Insert&Start=" + start+"&Studio="+ groupby , "AdvancedForm"); 
                eventArgs.set_cancel(true); 
            } 

I would like to obtain the text of the clicked column ("Blue", "Red", "Yellow", ....) and not "Studios" in groupby

The incorrect code I've used is

var groupby = sender.get_groupBy() 

Have you got an idea ?

Thank you,

Adrien

Peter
Telerik team
 answered on 11 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?