Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
338 views
I am trying to get RadFilter to work.

I am building a DNN module with OpenAccess.

I have a basic RadGrid already on the page.  I added RadFilter and set the FilterContainer to point to my grid.  I also defined 2 simple fields to filter.

I keep getting this error though at runtime:

InnerException: Parameter cannot be null or empty. Parameter name: fieldName
FileName
FileLineNumber: 0
FileColumnNumber: 0
Method: Telerik.Web.UI.RadFilterDataFieldEditorCollection.RetrieveEditorForFieldName
StackTrace
Message: DotNetNuke.Services.Exceptions.PageLoadException: Parameter cannot be null or empty. Parameter name: fieldName ---> System.ArgumentException: Parameter cannot be null or empty. Parameter name: fieldNameat Telerik.Web.UI.RadFilterDataFieldEditorCollection.RetrieveEditorForFieldName(String fieldName)at Telerik.Web.UI.RadFilterSingleExpressionItem.SetupFunctionInterface(Control container)at Telerik.Web.UI.RadFilterExpressionItem.CreateFunctionalInterface()at Telerik.Web.UI.RadFilter.CreateFilterItems()at Telerik.Web.UI.RadFilter.CreateControlHierarchy()at Telerik.Web.UI.RadFilter.CreateChildControls()at System.Web.UI.Control.EnsureChildControls()at Telerik.Web.UI.RadFilter.RecreateControl()at Telerik.Web.UI.RadFilter.AddChildExpression(RadFilterGroupExpressionItem groupItem, Boolean isGroup)at Telerik.Web.UI.RadFilterCommandEventArgs.ExecuteCommand(Object source)at Telerik.Web.UI.RadFilter.OnBubbleEvent(Object source, EventArgs args)at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)at Telerik.Web.UI.RadFilterExpressionItem.OnBubbleEvent(Object source, EventArgs args)at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)--- End of inner exception stack trace ---

Sebastian
Telerik team
 answered on 21 Oct 2010
4 answers
280 views
Hello All,

I have a RadGrid and I have assigned HeaderStyle-CssClass="Font12px" and AllowSorting="true" but the font size is not set to 12px.
Suggest me how can I maintain the font size to the headers.
Mona
Top achievements
Rank 1
 answered on 21 Oct 2010
4 answers
460 views
Hi

I have a radToolbar using the Office2007 skin.  When hovering over the buttons a orange highlight appears.  For 1 of the buttons in my toolbar I dont want the orange background.

My button is as follows :

<telerik:RadToolBarButton commandName="status" HoveredCssClass="noHover" tooltip="Initial page state" PostBack="false" ImageUrl="/status_alert.png" />

I have CSS as follows :
<style>
.noHover {
background-image:none !important;
}
</style>

When viewed in browser the .noHover style is applied to my button but the orange background still appears.  How do i stop the orange hightlight appearing ?

Thanks in advance


Phil
Top achievements
Rank 1
 answered on 21 Oct 2010
1 answer
85 views
I'm trying to add the functionality to allow my users to drag a row from one GridTableView to another GridTableView in the same RadGrid.  How can I access the SourceTableView so that i can rebind that GridTableView like I can for the DestinationTableView?
Veli
Telerik team
 answered on 21 Oct 2010
1 answer
157 views
I have a web application that uses a master page and content pages. On several of the pages I am using the RadGrid Control and the RadAjaxManagerProxy control (the RadAjaxManager is on the master page). On one page in particular when the user clicks the form (html form tag) it triggers an event handler that causes a javascript error - "Microsoft JScript runtime error: Object doesn't support this property or method" - and calls the javascript function

Sys$WebForms$PageRequestManager$_matchesParentIDInList.


 

function

 

Sys$WebForms$PageRequestManager$_matchesParentIDInList(clientID, parentIDList) {

 

 

    for (var i = 0, l = parentIDList.length; i < l; i++) {

 

 

        if (clientID.startsWith(parentIDList[i] + "_")) {

 

 

            return true;

 

        }

    }

 

    return false;

 

}

 

On this page I have 3 RadGrids and if I remove the one with the following code evrything works fine.

 

<

 

telerik:RadGrid ID="gvExpenseAssignments" runat="server" AutoGenerateColumns="false" Height="570">

 

 

    <ClientSettings EnableRowHoverStyle="true">

 

 

        <Scrolling AllowScroll="true" ScrollHeight="550" UseStaticHeaders="true" />
    
</ClientSettings>

 

 

    <MasterTableView DataKeyNames="GL_Account_Template_Id" EditMode="InPlace" AllowMultiColumnSorting="false"

 

 

 

            TableLayout="Fixed" AllowNaturalSort="false" Width="99%">

 

 

 

        <Columns>

 

 

 

            <telerik:GridBoundColumn DataField="ItemsString" Visible="false" UniqueName="strHintItems"></telerik:GridBoundColumn>

 

 

 

            <telerik:GridBoundColumn DataField="GL_Account_Name" HeaderText="Account Name" ReadOnly="true" AllowSorting="true" HeaderStyle-Width="260"></telerik:GridBoundColumn>

 

 

 

            <telerik:GridButtonColumn Text="Hint" runat="server" CommandName="cmdHint" HeaderText="Account Items" ShowInEditForm="true" HeaderStyle-Width="65px" ItemStyle-Width="65px"></telerik:GridButtonColumn>

 

 

            <telerik:GridButtonColumn Text="Suggest" runat="server" CommandName="cmdSuggest" HeaderText="Mapping Assistant" ShowInEditForm="true" HeaderStyle-Width="65px" ItemStyle-Width="65px"></telerik:GridButtonColumn>

 

 

 

            <telerik:GridBoundColumn DataField="GL_Account_No" HeaderText="Linked Account No" UniqueName="lblAcctNo" ReadOnly="true" AllowSorting="true"></telerik:GridBoundColumn>

 

 

 

            <telerik:GridBoundColumn DataField="Cust_GL_Account_Name" HeaderText="Linked Account Name" UniqueName="lblAcctName" ReadOnly="true" AllowSorting="true"></telerik:GridBoundColumn>

 

 

 

        </Columns>

 

 

    </MasterTableView>

 

 

 

</telerik:RadGrid>

The whole aspx file is attached as an image file. I get the same behavior wether I data bind the grid or not. The issue that I have found is that clientID in the javascript function is a function and not a string so it contains no method startsWith. I have found a workaround that creates an anonomous function for startsWith -

 

Function.prototype.startsWith = function(){return false;};

 

 

but I would like to be able to find a mor permanent fix or what I am doing that is causing the error to begin with.

Thank you.

Veli
Telerik team
 answered on 21 Oct 2010
5 answers
862 views
hey everyone,

I have a radgrid,under whoch i've a textbox and 2 label.I want to show product of label1 and textbox on OnBlur property of text box into the second label.I am doing this--
<script type="text/javascript">         
            function FillAmount(sender, args) 
            {  
                var grid = $find("<%=RadGrid1.ClientID %>");
                var MasterTable = grid.get_MasterTableView();                  
                var txtQuantityE = $find('<%= txtQuantityE.ClientID %>')
                var lblRate = $find('<%= lblRate.ClientID %>'); 
                var lblAmount = $find('<%= lblAmount.ClientID %>');
                var Amount = $find(Number(txtQuantityE.value)*Number(lblRate.Text)).get_value(); 
                $find(lblAmount).set_value(Amount);  
            }        
            </script>
aspx has this under RadNumericTextBox <ClientEvents OnBlur="FillAmount" />
Can't find the controls its showing errors.Also is this proper way of finding product?....
plz help..

Thanks
Amit
Veli
Telerik team
 answered on 21 Oct 2010
2 answers
176 views
Hi,

I'm using the loop below to fill a GridDropDownColumn control with items from a customized LINQ query. That part works fine, so I did not include that code.

Private Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound
    If e.Item.IsInEditMode Then
        For Each Column As GridColumn In e.Item.OwnerTableView.Columns
            If Column.UniqueName = "ProductForReseller" Then
               ' Code goes here
            End If
        Next
    End If
End Sub

To finalize the query, I need to retrieve a value from one of the other cells (a GridDropDownColumn as well) in the same row. It's probably very simple, but I can't find how to get to that value. The HTML is listed below:

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="LinqDataSource1"
            AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" GridLines="None"
            Skin="Outlook" ShowGroupPanel="True" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
            AllowAutomaticUpdates="True" AutoGenerateColumns="False" Width="62em" Height="37em">
            <ClientSettings AllowDragToGroup="True">
                <Scrolling AllowScroll="True" />
            </ClientSettings>
            <MasterTableView DataKeyNames="reseller, product" EditMode="InPlace" CommandItemDisplay="Bottom"
                DataSourceID="LinqDataSource1">
                <SortExpressions>
                    <telerik:GridSortExpression FieldName="product" SortOrder="Ascending" />
                </SortExpressions>
                <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldName="reseller" HeaderText="Reseller" />
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="reseller" HeaderText="Reseller" />
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                </GroupByExpressions>
                <Columns>
                    <telerik:GridEditCommandColumn EditText="edit" HeaderStyle-Width="7em">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridDropDownColumn UniqueName="Reseller" ListTextField="name" ListValueField="id"
                        DataSourceID="LinqDataSourceReseller" HeaderText="Reseller" DataField="reseller"
                        DropDownControlType="RadComboBox" AllowSorting="true" HeaderStyle-Width="7em"
                        AllowFiltering="false">
                    </telerik:GridDropDownColumn>
                    <telerik:GridDropDownColumn UniqueName="ProductForReseller" ListTextField="name" ListValueField="id"
                        DataSourceID="LinqDataSourceProduct" HeaderText="Product" DataField="product"
                        DropDownControlType="RadComboBox" AllowSorting="true" HeaderStyle-Width="7em"
                        AllowFiltering="false">
                    </telerik:GridDropDownColumn>
                    <telerik:GridDropDownColumn UniqueName="ProductActivationType" ListTextField="name"
                        ListValueField="id" DataSourceID="LinqDataSource2" HeaderText="Activation type"
                        DataField="product_activation_type" DropDownControlType="RadComboBox" AllowSorting="true"
                        HeaderStyle-Width="7em" AllowFiltering="false">
                    </telerik:GridDropDownColumn>
                    <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="Delete"
                        HeaderStyle-Width="7em">
                    </telerik:GridButtonColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>

I want to retrieve the value of the column "Reseller". How can I do it?
Arno
Top achievements
Rank 2
 answered on 21 Oct 2010
1 answer
143 views
Hi,
    Is there anyway that i can make my combobox is always in expanded state.....



Shinu
Top achievements
Rank 2
 answered on 21 Oct 2010
1 answer
113 views

I'm displaying a context menu when right-clicking a radgrid. How do I access radgrids columns?

Thanks for the help!

  Protected Sub RadContextMenu1_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadMenuEventArgs) Handles RadContextMenu1.ItemClick
  
        Dim radGridClickedRowIndex As Integer = Convert.ToInt32(Request.Form("radGridClickedRowIndex"))
        Dim radGridClickedRow As GridDataItem = CType(RadGrid1.Items(radGridClickedRowIndex), GridDataItem)
'How do I access radGridClickedRow column here? 
        mpuDuplicateTrip.Show() ' show ModalPopup
  
    End Sub
Pavlina
Telerik team
 answered on 21 Oct 2010
9 answers
204 views
Hi,

We are facing some issue while creating the page with telerik editor. Screen shot also attached for the same error below mentioned.
I am getting "Click Auto Correct on the toolbar to remove invalid content or formatting". I am not able to figure out where auto correct icon is in toolbar. Will apreciate if someone can help me on that.



Stanimir
Telerik team
 answered on 21 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?