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

It would be great if some one can help me on this.

I have a combobox with enableloadondemand=true property when i clicked on the dropdown first time its pulling the records.  Second time when i change some options and again clicked on the dropdown its not refreshing the dropdown, still showing the old values only.
this control i placed in ascx. here i am getting the problem. if i use the same control in aspx then its working fine.

Thanks,
Ram
Dimitar Terziev
Telerik team
 answered on 18 May 2011
1 answer
88 views
Hey, once again I'm having some issues getting what I want. I need to create RadWindows and set their properties in my code-behind page, because I need to put an ID which I will be able to use to show/hide my windows later. So what I've done at the moment, is calling a static function in my code behind, from Javascript. Then I create the window and set the properties, and from the instance I stocked in a variable in the public constructor, I call a non-static method. Then, I add my newly created window in my RadWindowManager. The problem is that my object reference is not set to an instance of an object. Is there any other way I can get it to work ?

Thanks in advance,
Francis
Marin Bratanov
Telerik team
 answered on 18 May 2011
1 answer
49 views
As per demo, one sliding pane should always slide over docked sliding pane, but in my website the second pane always slides under docked sliding pane. My screen also have Radajaxmanager, so could that effects behaviour of sliding pane.
<rad:RadSlidingZone ID="RadSlidingZoneTree" runat="server" Width="23" SlideDirection="Right"
                                DockedPaneId="RadSlidingPane1">
                                <rad:RadSlidingPane ID="RadSlidingPane1" Title="Pane1" runat="server" Width="220">
                                    pane 1
                                </rad:RadSlidingPane>
                                <rad:RadSlidingPane ID="RadSlidingPane2" Title="Pane2" runat="server" Width="220">
                                    pane 2
                                </rad:RadSlidingPane>

Let me know if I am missing any property here, otherwise I'll need a client side function to manually overlay new sliding pane over existing docked pane.

Niko
Telerik team
 answered on 18 May 2011
1 answer
148 views
Hi

I am trying to use a RadGrid with pagination controls in the footer.

I have been able to get the grid to fill the area I want horizontally,
and when I resize my browser window the width adjusts to fit the
available space because I have assigned a width of 100%.

However vertically is another matter.

The only way I see to be able to resize is to change the page size setting,
which I have been able to do. But having to calculate the number of
visible rows that will fit into the area horizontally seems prone to miscalculation.

Any ideas, even not using pagination, would help.

Thanks
Sebastian
Telerik team
 answered on 18 May 2011
2 answers
46 views
When looking at a page for an event on a control the page used to detail the type of the arguments of the delegate but the new docs don't. The only hope you have of gleaning this information is if there is an example of the code on the page.

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 18 May 2011
1 answer
81 views
I m using Asp.net MVC version 2.0 .Is it possible to link teleric control in our project???????
Sebastian
Telerik team
 answered on 18 May 2011
1 answer
103 views
I have a little scenario I am having trouble with.  Basically, I have a webform which users can click a button and get a PDF output report.  Upon clicking the button, I show a radWindow with a animated gif stating "please wait, while the report is created."  On the server side, I am responding to the request with a PDF document in the response.binarywrite method.  Therefore, the user will get a prompt to open/save/cancel the downloaded pdf document. 

My problem is that the original webpage doesn't refresh and doesnt close the radwindow.  It seems that outputting the PDF via the response object doesnt refresht the parent page calling the postback. Oh, by the way this is not AJAX.  I am using a standard post-back.

Dim

 

 

rpt As New NewHireReport

 

 

 

Dim rptProc As New Telerik.Reporting.Processing.ReportProcessor

 

 

 

Dim rendRst As RenderingResult = rptProc.RenderReport("PDF", rpt, Nothing)

 

 

 

Dim filename As String = rendRst.DocumentName & ".pdf"

 

 

 

 

 

 

 

Response.Clear()

 

Response.ClearHeaders()

 

Response.ContentType = rendRst.MimeType

 

Response.Expires = -1

 

Response.Buffer =

 

True

 

 

 

 

 

 

 

Response.AddHeader(

 

"Content-Disposition", String.Format("{0};FileName=""{1}""", "attachment", filename))

 

 

Response.BinaryWrite(rendRst.DocumentBytes)


Is there a way to close the radwindow?
Marin Bratanov
Telerik team
 answered on 18 May 2011
1 answer
117 views
Hi
I do the following
a)  add a ComboBox inside the EditTemplate,
b) SAVE the Row 
c) cause another postback from somewhere on the PAGE, thus causing the page to partially referesh irself via RadScriptManager, I get the following error:

Line: 6
Error: Sys.WebForms.PageRequestManagerServerErrorException: Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

If I take RadComboBox out and put the DropDownList or CheckBoxList, the problem stays.

I am using the 2010.2.929.35 version of Rad ASP.Net Ajax

Thanks
- Arvind
Dimitar Terziev
Telerik team
 answered on 18 May 2011
13 answers
283 views
how i alert message give on


RadAjaxManager1.Alert("This Asset Make Use Ticket, Are Sure Delete This Asset");


how i give yes , no command

Thanks,
Mohamed
Marin Bratanov
Telerik team
 answered on 18 May 2011
13 answers
1.7K+ views
I have a radgrid wherein I want certain fields within each row to always be editable.  I did this in the ItemDataBound event and it works fine.  However, I would like to call the TextChanged event whenever the data in one of these fields is changed.  My goal is to make a call to save the data back to the database whenever a text field is changed.  I tried adding a TextChanged event handler to each textbox but it never fires.  The only AJAX I have going on is a drop-down list that updates the contents of the radgrid.  Any help would be very much appreciated!

Here is my ItemDataBound code:
protected void grdTaxSaleItemsListGrid_ItemDataBound(object sender, GridItemEventArgs e)  
            {  
                if (e.Item is GridDataItem)  
                {  
                    GridDataItem item = e.Item as GridDataItem;  
                    foreach (GridColumn column in item.OwnerTableView.RenderColumns)  
                    {  
 
                        if (column.UniqueName == "DocumentTax" ||   
                            column.UniqueName == "RecordingFee" ||  
                            column.HeaderText == "StateFee" ||  
                            column.UniqueName == "CountyFee" ||  
                            column.UniqueName == "CostOfNotice" ||  
                            column.UniqueName == "MoneyInTrust")  
                        {  
                            TextBox tbEditBox = new TextBox();  
                            tbEditBox.Text = item[column].Text;  
                             
                            tbEditBox.CssClass = "gridEditItem";                              
                            tbEditBox.Width = Unit.Pixel(50);  
                            tbEditBox.TextChanged += new EventHandler(tbEditBox_TextChanged);  
                            tbEditBox.AutoPostBack = true;  
                            item[column].Controls.Clear();  
                            item[column].Controls.Add(tbEditBox);                              
                        }  
                    }                      
                }  
            } 

Thanks!
-Jim
Magnus
Top achievements
Rank 2
 answered on 18 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?