Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
138 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
301 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.8K+ 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
212 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
116 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
109 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
9 answers
205 views
Sorry, but i can't find in the Help how to configure languages in radSpell in sharepoint. I want to spell check two languages.
so i supose it should be in the control or in the config xml.
Can you help me?

Thanks,
Edgar Cardeira
PeteV
Top achievements
Rank 1
 answered on 18 May 2011
2 answers
92 views
Hi
I've read the document on http://www.telerik.com/help/aspnet-ajax/radstylesheetmanager.html about how to embed our custom skins in an assembly to have the performance point by RadStyleSheetManager control.
My question is : 
Is there any possibility to embed multiple skins for different Rad Controls and just make ONE entry in RadStyleSheetManager ?
Please consider this markup:

<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    <StyleSheets>
        <telerik:StyleSheetReference Name="TelerikCustomSkins.TelerikSkinForComboBox.css"
            Assembly="TelerikCustomSkins"></telerik:StyleSheetReference>
    </StyleSheets>
</telerik:RadStyleSheetManager>

I want to change this to :

<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    <StyleSheets>
        <telerik:StyleSheetReference Name="TelerikCustomSkins.COMMEN.css"
            Assembly="TelerikCustomSkins"></telerik:StyleSheetReference>
    </StyleSheets>
</telerik:RadStyleSheetManager>

and for example if I use my custom skin for RadInput , the special css for RadInput , 
and if I use another custom skin for RadButton , the special css for RadButton been loded by RadStyleSheetManager.

I want to get rid of adding multiple entries to <StyleSheets> part of RadStyleSheetManager.
If it's not possible , are these added CSS references (for different custom skins) just loaded when they are required(when custom skins are used)?

Thank you very much for your feedbacks?
reza
Top achievements
Rank 1
 answered on 18 May 2011
3 answers
432 views
I have a radgrid.
Data is shown in the RadGrid
On window xp professional service pack 3 with Adobe Reader 8.2
i run the code
RadGrid.MasterTableView.ExportToPDF();
Its work fine.

when same code i run on Window7 Enterprise service pack1 with Adobe Reader 9.4 (on remote machine)
it does not work fine.
By default file that is exported from the radgrid is shown with word format.
and have the data in encrypted format. Second thing when this file is opened
in pdf it does not contain anything.

Please provide me solution.
Daniel
Telerik team
 answered on 18 May 2011
4 answers
196 views
I'm trying to export data using radgrid, it works fine for word, csv and excel. But when I try exporting to  dpf document, data is not formatted as it appears on the radgrid and yet for the other formats, are OK. In pdf, the column get resized and come out larger than they appear on the grid and thus they dont fit in A4 page on landscape even when they should.

How can I ensure the pdf document appear like data displayed on the grid? (i.e. columns in pdf are the same like the fixed columns i have set on radgrid). It works for other formats.

I have attached two sample docs that I get after exporting data:

1. Word-All columns appear.jpg: It shows a sample document exported to "word" and all columns are visible and well formatted.
2. PDF-cut of columns.jpg: Shows a sample document exported to "pdf" only a few columns are visible. The columns widths have been enlarged such that it cannot fit in the A4 page.

How can I fix this?
Andrew
Top achievements
Rank 1
 answered on 18 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?