Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
131 views
We have multiple telerik controls on a page and any time you click on the in IE 8 on a win xp machine we get the error attached. Do you know of any solution for this? I should note that the commands (such as a delete command in a gridview, an upload command, etc) actually work, it just pops up with that ajax error every time. Any ideas?
Iana Tsolova
Telerik team
 answered on 19 Mar 2012
1 answer
97 views
I have two Listview's. They are populated the same was. One does not give any evidence of getting any data. HELP!

Here is the definition of the one that has no data:
<telerik:RadListView ID="RadListView2" runat="server" AllowPaging="True" ItemPlaceholderID="ListPlaceHolder"
    Skin="listview_2" EnableEmbeddedSkins="false" DataKeyNames="id,filenameextension,typeAbbr,title"
    OnNeedDataSource="RadListView2_NeedDataSource">
    <LayoutTemplate>
        <table id="products" class="products">
            <thead>
                <tr>
                    <th>
                        Prev
                    </th>
                    <th class="expand">
                    </th>
                    <th>
                        File Name
                    </th>
                    <th>
                        Asset Type
                    </th>
                    <th>
                        Document Type
                    </th>
                    <th>
                        Advertiser Name
                    </th>
                    <th>
                        Advertiser Category
                    </th>
                    <th>
                        Details
                    </th>
                    <th>
                        Market
                    </th>
                    <th>
                        Product Category
                    </th>
                    <th>
                        Keywords
                    </th>
                    <th>
                        Approved
                    </th>
                    <th>
                        Date
                    </th>
                </tr>
            </thead>
            <tbody>
                <tr id="ListPlaceHolder" runat="server">
                </tr>
            </tbody>
        </table>
    </LayoutTemplate>
    <ItemTemplate>
        <tr>
            <td>
                <%# String.Format("javascript:Popup_Window('asset_preview', '{0}');", Eval("id").ToString())%>
            </td>
            <td>
                <asp:CheckBox ID="ChkImage2" runat="server" Style="float: left; padding-top: 5px" />
            </td>
            <td>
                <%# String.Format("javascript:Popup_Window('asset_detail', '{0}');", Eval("id").ToString())%>
            </td>
            <td>
                <%# Eval("typeAbbr")%>
            </td>
            <td>
                <%# Eval("documentTypeText")%>
            </td>
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        No Assets Found 2
    </EmptyDataTemplate>
</telerik:RadListView>
Andrey
Telerik team
 answered on 19 Mar 2012
1 answer
186 views
Hi,

                                 I have put two tabs in my tabstrip and added a multipageview.Every time when i opens the tabstrip i want my first tab to be opened even i have opened the second one before last close.I have set the selectedindex to '0',but it doesn't work for me.
Kate
Telerik team
 answered on 19 Mar 2012
1 answer
70 views
Hi Team,

while loading the RadAjaxLoadingPanel, we need to restrict the access to other conrols. this panel is used in masterPage only.
we have used radAjax controls.
i.e., Page has 4 buttons and lot of other controls. while clicking "button1" , the Loadingpanel and its image will be displayed. at the same time, we can access(click) the other(button) controls.
kindly clarify this one.

Regards,
Meenakshi
Andrey
Telerik team
 answered on 19 Mar 2012
1 answer
188 views
i'm trying to add a RadFilter to filter my RadGrid which has several coulmns.it works fine. now i need to add a dropdown only for a one column filter.i have a column named  Revision in my RadGrid.i'm trying the following but it doesn't work

   <telerik:RadFilter runat="server" ID="RadFilter1" 
                FilterContainerID="gridSearchL3" ShowApplyButton="true" Height="100px" >
                <FieldEditors>
                <custom:RadFilterDropDownEditor DataValueField="Revision" DataTextField="Revision" DataType="System.String" FieldName="Revision" />
       
                </FieldEditors>
                </telerik:RadFilter>

i'm getting the error " Object reference not set to an instance of an object"
for creating custom dropdown i've used following class

http://www.telerik.com/help/aspnet-ajax/filter-custom-editors.html 

Tsvetina
Telerik team
 answered on 19 Mar 2012
1 answer
41 views
I currently have an issue where a RadMenu in a Site.Master page seems to slide under a txtbox when expanded (see attachement).

This seems to only impact IE. Any thoughts?
Kate
Telerik team
 answered on 19 Mar 2012
1 answer
64 views
Hi,

I have been using Telerik ASP.NET AJAX FileExplorer control.

Here is my problem:
On right click of folder or file in FileExplorer, i need to get the full path with name of the file or folder.

Please help,
Dobromir
Telerik team
 answered on 19 Mar 2012
4 answers
368 views
Normally, if I need a client-side reference to the grid's CommandItem, I wire up the Toolbar's OnClientLoad command and save the reference when that fires. Either that or use $find(...).

However, I find myself updating a page that used multiple instances of a user control that has a grid in it and i need to access the CommandItem for a grid when a row on the grid is selected, but for the life of me I can't find anything in the API that allows me to get at the CommandItem from, say, the OnRowSelecting event.

Is this possible?

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 19 Mar 2012
3 answers
191 views
So I'm using a radgrid tied to an object data source see grid code below...

<tk:RadGrid ID="rgThreshold" runat="server" AllowPaging="True" Width="100%" PageSize="10" Skin="Black"
                    OnInsertCommand="rgThreshold_InsertCommand" OnDeleteCommand="rgThreshold_DeleteCommand" OnUpdateCommand="rgThreshold_UpdateCommand"
                    AutoGenerateColumns="False" AllowSorting="True" CellSpacing="0" OnNeedDataSource="rgThreshold_NeedDataSource" >
                    <PagerStyle Mode="NextPrevAndNumeric" />
                    <ValidationSettings EnableValidation="true" EnableModelValidation="true" CommandsToValidate="Insert,Edit" />
                    <MasterTableView CommandItemDisplay="Top" EditMode="EditForms" InsertItemDisplay="Top" AutoGenerateColumns="false" DataKeyNames="ThresholdID" EditFormSettings-EditColumn-ButtonType="ImageButton">
                        <CommandItemSettings AddNewRecordText="Add New Threshold" />
                        <Columns>
                            <tk:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="ImageButton">
                                <ItemStyle CssClass="myImageButton" />
                            </tk:GridEditCommandColumn>
                            <tk:GridBoundColumn HeaderText="Threshold ID" DataField="ThresholdID" Display="false" UniqueName="ThresholdID" ReadOnly="true" />
                            <tk:GridTemplateColumn HeaderText="Threshold Number" DataField="ThresholdNumber" UniqueName="ThresholdNumber" SortExpression="ThresholdNumber" ColumnEditorID="ThresholdNumberEditor" HeaderStyle-Width="150px" >
                                <ItemTemplate>
                                    <%# Eval("ThresholdNumber") %>
                                </ItemTemplate>
                                <InsertItemTemplate>
                                    <tk:RadNumericTextBox ID="tbThresholdNumber" runat="server" Value="5" DbValue='<%# Bind("ThresholdNumber") %>' Width="50px" ShowSpinButtons="true" NumberFormat-DecimalDigits="0" />
                                    <asp:RequiredFieldValidator ID="rfvThresholdNumber" runat="server" ControlToValidate="tbThresholdNumber" Text="Threshold Number is Required." InitialValue="" Display="Dynamic" CssClass="Validator" />
                                </InsertItemTemplate>
                                <EditItemTemplate>
                                    <tk:RadNumericTextBox ID="tbThresholdNumber" runat="server" DbValue='<%# Bind("ThresholdNumber") %>' Width="50px" ShowSpinButtons="true" NumberFormat-DecimalDigits="0" />
                                    <asp:RequiredFieldValidator ID="rfvThresholdNumber" runat="server" ControlToValidate="tbThresholdNumber" Text="Threshold Number is Required." InitialValue="" Display="Dynamic" CssClass="Validator" />
                                </EditItemTemplate>
                            </tk:GridTemplateColumn>
                            <tk:GridTemplateColumn HeaderText="Threshold Name" DataField="ThresholdName" UniqueName="ThresholdName" ColumnEditorID="ThresholdNameEditor" HeaderStyle-Width="300px">
                                <ItemTemplate>
                                    <%# Eval("ThresholdName") %>
                                </ItemTemplate>
                                <InsertItemTemplate>
                                    <tk:RadTextBox ID="tbThresholdName" runat="server" Text='<%# Bind("ThresholdName") %>' Width="500px" MaxLength="100" />
                                    <asp:RequiredFieldValidator ID="rfvThresholdName" runat="server" ControlToValidate="tbThresholdName" Text="Threshold Name is Required." InitialValue="" Display="Dynamic" CssClass="Validator" />
                                </InsertItemTemplate>
                                <EditItemTemplate>
                                    <tk:RadTextBox ID="tbThresholdName" runat="server" Text='<%# Bind("ThresholdName") %>' Width="500px" MaxLength="100" />
                                    <asp:RequiredFieldValidator ID="rfvThresholdName" runat="server" ControlToValidate="tbThresholdName" Text="Threshold Name is Required." InitialValue="" Display="Dynamic" CssClass="Validator" />
                                </EditItemTemplate>
                            </tk:GridTemplateColumn>
                            <tk:GridTemplateColumn HeaderText="Emails" DataField="Emails" UniqueName="Emails" ColumnEditorID="EmailsEditor" HeaderStyle-Width="400px">
                                <ItemTemplate>
                                    <%# Eval("Emails") %>
                                </ItemTemplate>
                                <InsertItemTemplate>
                                    <tk:RadTextBox ID="tbEmails" runat="server" Text='<%# Bind("Emails") %>' TextMode="MultiLine" Width="500px" Height="100px" MaxLength="2000" />
                                    <asp:RequiredFieldValidator ID="rfvEmails" runat="server" ControlToValidate="tbEmails" Text="Emails are Required." InitialValue="" Display="Dynamic" CssClass="Validator" />
                                </InsertItemTemplate>
                                <EditItemTemplate>
                                    <tk:RadTextBox ID="tbEmails" runat="server" Text='<%# Bind("Emails") %>' TextMode="MultiLine" Width="500px" Height="100px" MaxLength="2000" />
                                    <asp:RequiredFieldValidator ID="rfvEmails" runat="server" ControlToValidate="tbEmails" Text="Emails are Required." InitialValue="" Display="Dynamic" CssClass="Validator" />
                                </EditItemTemplate>
                            </tk:GridTemplateColumn>
                            <tk:GridTemplateColumn HeaderText="CC Emails" DataField="AdminEmails" UniqueName="AdminEmails" ColumnEditorID="AdminEmailsEditor" HeaderStyle-Width="400px">
                                <ItemTemplate>
                                    <%# Eval("AdminEmails") %>
                                </ItemTemplate>
                                <InsertItemTemplate>
                                    <tk:RadTextBox ID="tbAdminEmails" runat="server" Text='<%# Bind("AdminEmails") %>' TextMode="MultiLine" Width="500px" Height="100px" MaxLength="2000" />
                                </InsertItemTemplate>
                                <EditItemTemplate>
                                    <tk:RadTextBox ID="tbAdminEmails" runat="server" Text='<%# Bind("AdminEmails") %>' TextMode="MultiLine" Width="500px" Height="100px" MaxLength="2000" />
                                </EditItemTemplate>
                            </tk:GridTemplateColumn>
                            <tk:GridButtonColumn ConfirmText="Delete this Threshold (All Assignments will also be deleted)?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete Threshold" CommandArgument="ThresholdID" CommandName="Delete" ConfirmDialogHeight="100px" ConfirmDialogWidth="220px" ButtonType="ImageButton" />
                        </Columns>
                        <EditFormSettings ColumnNumber="2" CaptionDataField="ThresholdName" CaptionFormatString="Edit: {0}">
                            <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                        </EditFormSettings>
                    </MasterTableView>
                </tk:RadGrid>
                <tk:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Black" />
                <tk:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Black" />

The problem is it works great if at least one record exists but if I have a collection of object with count = 0 (no records) and I click the add new record button i get a:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'ThresholdName'.

What am I doing wrong?
Tsvetina
Telerik team
 answered on 19 Mar 2012
1 answer
143 views

Hi,

I am binding the radgrid using normal datasource and databind method.

the grid is getting filled with autogenerated columns. I have placed one checkbox which is in the grid, not auto generated.

Now, on post back usong any button in the page. the data in the viewstate also gets loaded. this creates addtional column. I did
radgrid.MasterTableView.Columns.Clear();

the reaction is, this will also remove the checkbox in the item template. I am not sure on how to add check box and header text box in the item template in radgrid programmatically. the example given in telerik site is not helpful.

http://www.telerik.com/help/aspnet-ajax/grid-programmatic-creation.html

I requrie a solution, on how to added a column which checkbox programmatically or

 

running this without touching template column or
prevent viewstate from acting on button postbacks.

thanks in advance.

Andrey
Telerik team
 answered on 19 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?