Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
150 views
I get the following Javascript error:
Error: Unable to set value of the property 'control': object is null or undefined
When I add a MultiPageView control to the <UpdatedControls> list in RadAjaxManager.

<telerik:AjaxSetting AjaxControlID="RadGridUser" >
<UpdatedControls>  

<telerik:AjaxUpdatedControl ControlID="RadMultiPage1"/>

</UpdatedControls>

</telerik:AjaxSetting>


On ItemSelected event of RadGridUser, I want to be able to refresh (content and selected page index) of the RadMultiPage control.

 
Maria Ilieva
Telerik team
 answered on 29 Feb 2012
1 answer
93 views
Hi All,

          I have a Rad-grid within the Rad-grid i have template-column where i used a literal control in item-plate and a rad combo box.I need to load the rad combo box during the update of each row i need to load the rad combo box dynamically. How to do this ? 

Thanks in Advance.
Princy
Top achievements
Rank 2
 answered on 29 Feb 2012
2 answers
88 views
Strange things are happening with RadButtons, IE9, and Visual Studio 2010.

I started a project and created a webform based on a master page. I added 4 radbuttons, 2 for users and 2 for admins.

The admin buttons are enabled=false and visible=false and will be enabled and visible if user is an admin. The user buttons are also disabled (still visible though) and the text is changed IF the user logged in is an admin.

Initial page load works as desired and if the page is refreshed it works as desired.

Now begins the bizarre behavior.

1. User loads the page and only sees the two user buttons (the admin buttons are invisible). Correct :)
2. User navigates off the page.
3. User clicks back button.
4. ALL 4 buttons are visible and all 4 buttons are in a state as if an admin is logged in. What?
5. Click refresh and all is fine.

Frustrated I started ripping my code apart to try and find where this was happening and nothing I am doing changes this behavior in the slightest. I went as far as completely removing ANY code for three of the buttons (they should not exist at all) and yet steps 2-5 above are the same every time. How can these buttons be on the page after clicking the back button on the browser when they no longer exist in my code? Where the heck are they coming from?
Slav
Telerik team
 answered on 29 Feb 2012
1 answer
64 views
Hi , if this is correct to find RadComboBox in PagerTemplate?
<PagerTemplate>
<telerik:RadComboBox ID="ddlMoveToFolder" Runat="server"
                                            EnableLoadOnDemand="False" EnableVirtualScrolling="false" 
                                            ShowMoreResultsBox="False"  >
                                            <Items>
                                                <telerik:RadComboBoxItem Text="Select Folder" Value="Select Folder" />
                                            </Items>
</telerik:RadComboBox> 
</PagerTemplate>

protected void grdMessage_PreRender(object sender, EventArgs e)
{
GridPagerItem pagerItem = (GridPagerItem)grdMessage.MasterTableView.GetItems(GridItemType.Pager)[0];
        RadComboBox customFolderDDL = (RadComboBox)pagerItem.FindControl("ddlMoveToFolder");
}
Shinu
Top achievements
Rank 2
 answered on 29 Feb 2012
4 answers
462 views
I've found quite a few threads talking about the Display and Visible properties of ExpandCollapseColumn. Several describe work-arounds for hiding this column, but none explain why 2 properties which the documentation says should show/hide the column seem to do nothing at all.

http://www.sitefinity.com/help/developer-manual/radgrid.net2-telerik.webcontrols.gridexpandcolumn_members.html 

Please, either make sure these properties do what the documentation says, or fix the documentation. I should not have to write code to do what the documentation says can be done by setting a property.

Thanks

Ross Crawford
Radoslav
Telerik team
 answered on 29 Feb 2012
3 answers
154 views
there is RadAjaxLoadingPanel which has radgrid.
after displaying duplicate message from server side using

 

ScriptManager.RegisterStartupScript(),grid does not retain the inline mode i.e. row for adding new record gets disappears.
is there any solution to retain inlin einsert mode after postback also.
i tried

 

e.Item.OwnerTableView.IsItemInserted = true;

 

 

 

RadGrid.Rebind()

but its not working

Pavlina
Telerik team
 answered on 29 Feb 2012
2 answers
191 views
Hello Everybody,
In my Project i am using rad grid control. in the grid Dynamically I created text boxes and buttons for adding and editing i don't know how to put validations in java script. I used  the following code and it is not working. can you please help me

<telerik:RadGrid ID="SpGrid" runat="server" AllowMultiRowSelection="False"
    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="false" PageSize="7"
    ShowStatusBar="true" Skin="Outlook">
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
    </HeaderContextMenu>
    <PagerStyle Mode="NumericPages" />
    <MasterTableView AllowMultiColumnSorting="True" CommandItemDisplay="Top" DataKeyNames="SPECIALITY_ID"
        Name="Specialist">
        <Columns>
            <telerik:GridEditCommandColumn HeaderText="Edit" UniqueName="EditCommandColumn">
                <ItemStyle Width="50px" />
            </telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn DataField="SPECIALITY_ID"
                HeaderButtonType="TextButton" HeaderText="SPECIALITY ID"
                SortExpression="SPECIALITY_ID" UniqueName="SPECIALITY_ID">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="SPECIALITY_DESC"
                HeaderButtonType="TextButton" HeaderText="DESCRIPTION"
                SortExpression="SPECIALITY_DESC" UniqueName="SPECIALITY_DESC">
            </telerik:GridBoundColumn>
            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"
                ConfirmText="Delete this Specialist ?" Text="Delete" UniqueName="DeleteColumn1">
                <HeaderStyle Width="20px" />
                <ItemStyle CssClass="MyImageButton" HorizontalAlign="Center" />
            </telerik:GridButtonColumn>
        </Columns>
        <EditFormSettings EditFormType="Template">
            <FormTemplate>
                <table ID="tblSpecialitymaster" border="1" cellpadding="1" cellspacing="2"
                    rules="none" style="border-collapse: collapse; background: white;" width="100%">
                    <tr class="EditFormHeader">
                        <td colspan="2" style="font-size: small; font-family: Verdana;color:Maroon">
                            <b>SpecialityDetail</b>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table ID="Table3" border="0" cellpadding="1" cellspacing="1" class="module"
                                width="250">
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        SpecialityID:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSpId" runat="server" Font-Names="verdana"   Text='<%# Bind("SPECIALITY_ID") %>'
                                            Font-Size="8.5pt" MaxLength="50" TabIndex="1" ReadOnly="true">
                                                </asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Description:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSpDesc" runat="server" Font-Names="verdana"
                                            Font-Size="8.5pt" MaxLength="50" onkeypress=" return CharOnly('txtSpDesc',50)" TabIndex="2"
                                            Text='<%# Bind("SPECIALITY_DESC") %>' >
                                                </asp:TextBox>
                                                 
                                                <asp:RequiredFieldValidator ID="RFVSpDesc" runat="server" ErrorMessage="Enter Description."
                                                                ControlToValidate="txtSpDesc"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" colspan="2">
                            <asp:Button ID="btnUpdate3" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>'
                                        Style="color: White; background-color: SteelBlue; font-family: Verdana; font-size: 8pt;
                                        width: 87px;" runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'>
                                    </asp:Button>
                              
                            <asp:Button ID="btnCancel3" runat="server" CausesValidation="False"
                                CommandName="Cancel" Style="color: White; background-color: SteelBlue; font-family: Verdana;
                                        font-size: 8pt; width: 87px;" Text="Cancel" />
                        </td>
                    </tr>
                </table>
            </FormTemplate>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>
function valid() {
var grid = $find("<%=RadGridCountry.ClientID %>");
var detail= grid.get_detailTables()[0].get_dataItems()[0].findElement("txtSpDesc");
 
}
i trace that detail value it giving always null value
Madhuri
Top achievements
Rank 1
 answered on 29 Feb 2012
1 answer
146 views
After session expired when the user click on any Export icon of the grid. it doesnt fire the session expire event.

We have placed the grid inside a radwindow.Following is the code snippet for the grid.
 <telerik:RadGrid ID="rgdDisplay" runat="server" AllowPaging="true" PageSize="5" GridLines="Both"
                                    AutoGenerateColumns="true" EnableEmbeddedSkins="false"   OnColumnCreated="rgdDisplay_ColumnCreated"
                                    EnableViewState="True" OnNeedDataSource="rgdDisplay_NeedDataSource" CellPadding="0"
                                    AllowMultiRowSelection="true" OnItemDataBound="rgdDisplay_ItemDataBound" OnItemCommand="rgdDisplay_ItemCommand"
                                    HeaderStyle-HorizontalAlign="Left" OnItemCreated="rgdDisplay_ItemCreated">
                                    <ExportSettings HideStructureColumns="false" IgnorePaging="true" ExportOnlyData="true"
                                        FileName="Result" OpenInNewWindow="true">
                                        <Pdf PageHeight="210mm" PageWidth="297mm" PageTitle="Advance Search Result" DefaultFontFamily="Arial Unicode MS"
                                            PageBottomMargin="20mm" PageTopMargin="20mm" PageLeftMargin="20mm" PageRightMargin="20mm" />
                                    </ExportSettings>
                                    <MasterTableView DataKeyNames="PatientId" ClientDataKeyNames="PatientId" EnableColumnsViewState="False"
                                        CommandItemDisplay="Top">
                                        <Columns>
                                            <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" ItemStyle-Width="2%" />
                                        </Columns>
                                        <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true"
                                            ShowExportToCsvButton="true" ShowExportToPdfButton="true" ShowRefreshButton="false"
                                            ShowAddNewRecordButton="false" />
                                    </MasterTableView>
                                    <ClientSettings>
                                        <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" EnableDragToSelectRows="false" />
                                        <ClientEvents OnRowSelecting="RowSelecting" OnRowDeselected="RowDeselected" />
                                    </ClientSettings>
                                    <HeaderContextMenu  EnableEmbeddedSkins="False">
                                    </HeaderContextMenu>
                                </telerik:RadGrid>

We tried using PAGE METHODS, it worked in IE .
but its causing problem in chrome and Firefox.

Kindly let me knw if more information is needed from my end.

Thnks in advance.


Daniel
Telerik team
 answered on 29 Feb 2012
1 answer
103 views
My requirement is such that I want to have a functionality of  Column Menu  but without having title 'Column' .
As you can see in this link It has a liitle button in shipCity Column.I want to have that Button and when I click that button it will just show me the column names that I want to hide/show. So basically it is a functionality of "Column Menu" but rather then showing in a subMenu manner ,I want to show those Columns of the Grid to be hide/show directly in menu. 

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/headercontextfiltermenu/defaultcs.aspx
Antonio Stoilkov
Telerik team
 answered on 29 Feb 2012
1 answer
145 views
Hi;

I have a problem with a DataPager paging a RadListView. The RadDataPagerButtonField works as expected when page is loaded the first time; one click and the list pages. After the first pageing is not one click enough, you have to click twice (not double click). I have also noticed that changing page size in the RadDataPagerPageSizeField control has the same effect as the initial click on the RadDataPagerButtonField. Seems like something happens with DataPager after the first paging. Any ideas?



<AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="uxRadPager">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="uxPhotos" LoadingPanelID="uxAjaxLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="uxPhotos">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="uxRadPager" LoadingPanelID="uxAjaxLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>

<telerik:RadListView runat="server" ID="uxPhotos" AllowPaging="true" OnNeedDataSource="uxPhotos_NeedDataSource"
                                    OnItemDataBound="uxPhotos_ItemDataBound" ViewStateMode="Enabled">
                                    <LayoutTemplate>
                                        <asp:Table ID="Table3" runat="server" CellPadding="0" CellSpacing="0">
                                            <asp:TableRow>
                                                <asp:TableCell>
                                                    <fieldset runat="server" id="itemPlaceholder" />
                                                </asp:TableCell>
                                            </asp:TableRow>
                                        </asp:Table>
                                        <telerik:RadDataPager ID="uxRadPager" Skin="Vista" runat="server" PagedControlID="uxPhotos"
                                            PageSize="10" ViewStateMode="Enabled">
                                            <Fields>
                                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                                <telerik:RadDataPagerButtonField FieldType="Numeric" />
                                                <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                                <telerik:RadDataPagerPageSizeField PageSizeText="Page size: " />
                                                <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                                                    TextBoxWidth="15" />
                                            </Fields>
                                        </telerik:RadDataPager>
                                    </LayoutTemplate>
                                    <ItemTemplate>
                                        <fieldset style="float: left; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
                                            vertical-align: middle; text-align: center; width: 90px; border: 0px;">
                                            <asp:Table runat="server" CellPadding="0" CellSpacing="0">
                                                <asp:TableRow>
                                                    <asp:TableCell Style="position: relative">
                                                        <div style="position: relative">
                                                            <asp:Image runat="server" ImageUrl="~/Images/ThumbnailBg.jpg" />
                                                            <div id="Div1" runat="server" style="position: absolute; left: 10px; top: 10px; z-index: 1;">
                                                                <asp:HyperLink runat="server" ID="uxPhotoLink">
                                                                    <asp:Image runat="server" ID="uxPhoto" /></asp:HyperLink>
                                                                <div id="Div2" runat="server" style="position: absolute; left: 62px; top: -10px;
                                                                    z-index: 2; height: 20px; width: 20px">
                                                                    <asp:Image runat="server" ID="uxStatus" ImageUrl="~/Images/StatusEdit.png" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:TableCell>
                                                </asp:TableRow>
                                            </asp:Table>
                                        </fieldset>
                                    </ItemTemplate>
                                </telerik:RadListView>
Antonio Stoilkov
Telerik team
 answered on 29 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?