Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
143 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
43 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
75 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
102 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
112 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
276 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
6 answers
188 views
I have a RadPanelBar that contains two RadPanelItems.  In Internet Explorer 8 the PanelItems expand and collapsed as expected.  In Firefox, however, the page posts back and the PanelBar's ItemClick event fires, but the PanelItems do not expand.

Has anyone run into this before?  Here is the code for the RadPanelBar:

<telerik:RadPanelBar ID="SearchPanelBar" Runat="server"  
                                        ExpandMode="FullExpandedItem" Width="100%" CausesValidation="False"  
                                        OnItemClick="SearchPanelBar_ItemClick"
                                        <Items> 
                                            <telerik:RadPanelItem Value="TopDateSearchPanelItem" runat="server" Text="Search Work Orders By Date" Width="100%" Expanded="true"
                                                <Items> 
                                                    <telerik:RadPanelItem Value="DateSearchPanelItem"
                                                        <ItemTemplate> 
                                                            <asp:Panel ID="pnlDateRange" runat="server" Direction="LeftToRight" HorizontalAlign="Left" Width="100%" Wrap="False"
                                        <table> 
                                            <tr> 
                                                <td> 
                                                    <asp:Label ID="lblStartDate" runat="server" Text="Install Start Date" CssClass="dateLabel"></asp:Label> 
                                                </td> 
                                                <td> 
                                                    <telerik:RadDatePicker ID="InstallStartDate" Runat="server" AutoPostBack="false" 
                                                        Culture="English (United States)"  
                                                        onselecteddatechanged="InstallStartDate_SelectedDateChanged"   
                                                        Width="150px"
                                                        <Calendar ID="Calendar1"  
                                                            runat="server"  
                                                            UseColumnHeadersAsSelectors="False"  
                                                            UseRowHeadersAsSelectors="False"  
                                                            ViewSelectorText="x"
                                                        </Calendar> 
                                                        <DatePopupButton HoverImageUrl="" ImageUrl="" /> 
                                                        <DateInput ID="DateInput1"  
                                                            runat="server"  
                                                            AutoPostBack="True"  
                                                            CausesValidation="false"  
                                                            DateFormat="M/d/yyyy"  
                                                            DisplayDateFormat="M/d/yyyy"
                                                        </DateInput> 
                                                    </telerik:RadDatePicker> 
                                                     
                                                </td> 
                                                <td  style="width:5px;">&nbsp;</td> 
                                                <td> 
                                                    <asp:Label ID="lblEndDate" runat="server" Text="Install End Date" CssClass="dateLabel"></asp:Label> 
                                                </td> 
                                                <td> 
                                                    <telerik:RadDatePicker ID="InstallEndDate" Runat="server" 
                                                        Culture="English (United States)"  Width="150px"
                                                    <Calendar ID="Calendar2"  
                                                        runat="server"  
                                                        UseColumnHeadersAsSelectors="False"  
                                                        UseRowHeadersAsSelectors="False"  
                                                        ViewSelectorText="x"
                                                    </Calendar> 
                                                    <DatePopupButton HoverImageUrl="" ImageUrl="" /> 
                                                    <DateInput ID="DateInput2"  
                                                        runat="server"  
                                                        DateFormat="M/d/yyyy"  
                                                        CausesValidation="false" 
                                                        DisplayDateFormat="M/d/yyyy"
                                                    </DateInput> 
                                                    </telerik:RadDatePicker> 
                                                     
                                                </td> 
                                                <td style="text-align:left;"
                                                    <asp:Button ID="btnSearchDateRange" runat="server" onclick="SearchDateRange_Click"  
                                                     Text="GO" CssClass="searchBtnRight" /> 
                                                </td> 
<%--AJAX Loading Panel Settings--%>        
                                                <td style="vertical-align:top;"
                                                   <telerik:RadAjaxLoadingPanel id="LoadingPanel1" runat="server" IsSticky="true" Transparency="1" style="position:absolute;"
                                                        <asp:Image id="Image1" runat="server"  ImageUrl="Images/loading7.gif" ImageAlign="Bottom"></asp:Image> 
                                                    </telerik:RadAjaxLoadingPanel> 
<%--Control Validator Settings--%>        
                                           <%--          <asp:RequiredFieldValidator ID="StartDateValidator" ControlToValidate="InstallStartDate" Enabled="true"  
                                                        ErrorMessage="The Start Date is required<br />" runat="server" Display="None" ></asp:RequiredFieldValidator> 
                                                    <asp:RequiredFieldValidator ID="EndDateValidator" ControlToValidate="InstallEndDate" Enabled="true"  
                                                        ErrorMessage="The End Date is required<br />" runat="server" Display="None" ></asp:RequiredFieldValidator> 
                                                    <asp:CompareValidator ID="dateCompareValidator" runat="server" Display="None" ControlToValidate="InstallEndDate" ControlToCompare="InstallStartDate" Operator="GreaterThanEqual" Type="Date" Enabled="true" 
                                                        ErrorMessage="The End Date must be after the Start Date.<br />"
                                                    </asp:CompareValidator> 
                                                    <asp:ValidationSummary id="validationSummary" DisplayMode="BulletList" runat="server"/> --%> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </asp:Panel> 
                                                        </ItemTemplate> 
                                                    </telerik:RadPanelItem> 
                                                </Items> 
                                                 
                                            </telerik:RadPanelItem> 
                                            <telerik:RadPanelItem  Value="TopNumberSearchPanelItem" runat="server" Text="Search WorkOrders By Number" Width="100%"
                                                <Items> 
                                                            <telerik:RadPanelItem Value="NumberSearchPanelItem"
                                                                <ItemTemplate> 
                                                                        <table> 
                                                                            <tr> 
                                                                                <td> 
                                                                                    <asp:Label ID="lblSearch" runat="server" Text="Enter Search Value" CssClass="dateLabel"></asp:Label> 
                                                                                </td>    
                                                                                <td>                                                   
                                                                                    <asp:TextBox ID="txtSearchValue" runat="server" Visible="true"></asp:TextBox>                                                     
                                                                                </td> 
                                                                                <td  style="width:5px;"
                                                                                    <telerik:RadComboBox ID="SearchType" Runat="server"
                                                                                        <Items> 
                                                                                            <telerik:RadComboBoxItem runat="server" Text="R00 Number" Value="ReceiverNumber" /> 
                                                                                            <telerik:RadComboBoxItem runat="server" Text="Serial Number" Value="SerialNumber" /> 
                                                                                            <telerik:RadComboBoxItem runat="server" Text="Account Number" Value="AccountNumber" /> 
                                                                                            <telerik:RadComboBoxItem runat="server" Text="Job Number" Value="JobNumber" /> 
                                                                                        </Items> 
                                                                                    </telerik:RadComboBox> 
                                                                                </td> 
                                                                                <td style="text-align:left;"
                                                                                    <asp:Button ID="btnSearchNumber" runat="server" onclick="SearchNumber_Click"  
                                                                                        Text="GO" CssClass="searchBtnRight" /> 
                                                                                </td> 
<%--AJAX Loading Panel Settings--%>        
                                                                                <td style="vertical-align:top;"
                                                                                    <telerik:RadAjaxLoadingPanel id="LoadingPanel2" runat="server" IsSticky="true" Transparency="1" style="position:absolute;"
                                                                                        <asp:Image id="Image1" runat="server"  ImageUrl="Images/loading7.gif" ImageAlign="Bottom"></asp:Image> 
                                                                                    </telerik:RadAjaxLoadingPanel> 
                                                                            </tr> 
                                                                        </table> 
                                                    </ItemTemplate> 
                                            </telerik:RadPanelItem> 
                                        </Items> 
                                        </telerik:RadPanelItem> 
                                        </Items> 
                                    </telerik:RadPanelBar> 

mohmmad misk
Top achievements
Rank 1
 answered on 18 May 2011
3 answers
104 views
Hello!
Is it possible to add some icon to the title bar (next to or before "X" close button) of the pop-up edit form? I'd like to add "Help" icon and that would be the best place I think.

Thanks in advance!
Andy.
Andy
Top achievements
Rank 1
 answered on 18 May 2011
3 answers
83 views
How can I create a yahoo! mail beta-like grid, where you can scroll as long as you want and get new rows filled?

Yes, similar like this demo but get a bunch of empty rows there first, and fill them up when they're scrolled to.

I want users to get the feeling they can scroll down until the very last record instead of being limited to certain records like the demo.

Thanks.
Pavlina
Telerik team
 answered on 18 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?