Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
439 views
Good day,

we have a working radgrid that shows an unusual behavior.
The grid works as expected, but after entering editmode, pressing the enter key alone will display the default radgrid filter menu, on the top left corner of the containing div (where there's no grid columns)

We've noticed that this seems related to control focus: after sorting the grid with a column header click, pressing enter after edit mode, will exit edit mode as expected, without displaying the default filter menu, and updating the record.

We'd like to know where and how this filter menu enter key is listened to, especially since we have a different grid, where this does not happen (it's in a page with a form view, while the troublesome one is just a grid).

Do note that we've successfully 'solved' this by intercepting the FilterMenuShowing event, but we believe there's a behavior problem that we'd like to pinpoint.

Thanks.
Eyup
Telerik team
 answered on 15 Nov 2012
1 answer
76 views
Could anyone tell me which Telerik control is used for the pull-down 'Show Cart Info' box on this page please?

http://demos.telerik.com/aspnet-ajax/ecommercestore/categoryview.aspx?Category=26234

Is it the menu control?

Thanks.
Ivan Zhekov
Telerik team
 answered on 15 Nov 2012
1 answer
71 views
I have no idea how to even describe this so I'm attaching a screen shot.  

For the most part I've had no problem positioning Rad controls since they're either virtually the only item on the screen (i.e. RadGrid) or I've put them in a table.  

But by themselves on a template or a blank screen they seem to be accompanied by a 'blue box', and if I try to re-position them I sometimes get negative x-y values.  (And the blue box itself doesn't seem to do anything...)

Could there be a problem with my Visual Studio 2012 setup?
Slav
Telerik team
 answered on 15 Nov 2012
1 answer
126 views
Hi,
I've two RadButton in my page, the first button using async postback to rebind a RadGrid and enable the second radButton.

I've used RadAjaxManager to do this, when press the button, radgrid and radbutton are updated as well, but the second button starts to do async postback..

How can i solve it?
Thanks

Maria Ilieva
Telerik team
 answered on 15 Nov 2012
9 answers
351 views
Hello,

In the autocompletBox , we search in the "DataTextField" which represent the column,

is it possible to take the query and modify this, to search on the other column ?


I want to search in City table, i must to search Zip code or City Name in the same AutocompleteBox.

Please
Have you a solution ?

thanks
Olivier,


Olivier
Top achievements
Rank 2
 answered on 15 Nov 2012
1 answer
90 views
Hi,

I am trying to bind a dropdownlist in the itemdataBound event, but when I enter edit mode I am getting the error:
"Specified argument was out of the range of valid values. Parameter name: index"
for the line:
"Dim editor As GridDropDownListColumnEditor = CType(editMan.GetColumnEditor("Band"), GridDropDownListColumnEditor)"

I was referring to this to bind the dropdown: http://www.telerik.com/help/aspnet-ajax/grid-customize-configure-griddropdowncolumn.html

Any ideas why I am getting this error?

My code is below:

RadGrid1_ItemDataBound
Private Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound
        If TypeOf e.Item Is GridDataItem Then
            Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
            Dim row As DataRowView = DirectCast(e.Item.DataItem, DataRowView)
 
            item("Band").Text = row("Band").ToString()
            item("capoptioname").Text = row("capoptioname").ToString()
        End If
 
           If (TypeOf e.Item Is GridEditableItem AndAlso CType(e.Item, GridEditableItem).IsInEditMode) Then
            Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
            Dim editMan As GridEditManager = editedItem.EditManager
            Dim editor As GridDropDownListColumnEditor = CType(editMan.GetColumnEditor("Band"), GridDropDownListColumnEditor)
            Dim ddlBand As DropDownList = editor.DropDownListControl
 
            Dim ProductBus As New Product
            Dim bands As Entities.Product.callbandsDataTable
            bands = ProductBus.GetCallBandsList
            ddlBand.DataSource = bands
            ddlBand.DataTextField = "description"
            ddlBand.DataValueField = "value"
            ddlBand.DataBind()
        End If
End Sub

aspx
<telerik:RadGrid ID="RadGrid1" runat="server" PagerStyle-AlwaysVisible="true" AllowPaging="True" AllowSorting="True" pagesize="25" pagerposition="bottom" GridLines="None"
         Width="99.9%" EnableEmbeddedSkins="False" AllowMultiRowEdit="True" OnSortCommand="RadGrid1_SortCommand" ShowStatusBar="True" Skin="p3"
         OnNeedDataSource="RadGrid1_NeedDataSource" AllowFilteringByColumn="True" AutoGenerateColumns="False" CellSpacing="0" Culture="en-GB"  >
 
<MasterTableView EditMode="inplace" AllowMultiColumnSorting="true" DataKeyNames="id" GridLines="Both" CommandItemDisplay="Top" >
             
<CommandItemSettings ExportToPdfText="Export to PDF" />
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True"> </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True"> </ExpandCollapseColumn>
         <CommandItemTemplate>
             
        </CommandItemTemplate>
 
        <Columns>
                <telerik:GridEditCommandColumn HeaderStyle-Width="4%" ButtonType="ImageButton" EditImageUrl="/images/edit.png" />
                <telerik:GridBoundColumn UniqueName="id" DataField="id" HeaderText="id" ReadOnly="True" HeaderStyle-Width="1%" Display="False"> </telerik:GridBoundColumn>
                <telerik:GridDropDownColumn DataField="Band" HeaderText="Band"  UniqueName="Band" ColumnEditorID="GridDropDownListColumnEditor1" HeaderStyle-Width="10%"  ListTextField="description" ListValueField="value" EnableEmptyListItem="true" EmptyListItemValue="0" EmptyListItemText="please select"  FilterControlAltText="Filter callband column" DropDownControlType="RadComboBox" > </telerik:GridDropDownColumn>
        </Columns>
         
        <PagerStyle AlwaysVisible="True" />
        </MasterTableView>
        <ClientSettings>
            <Scrolling AllowScroll="True" ScrollHeight="" SaveScrollPosition="True"></Scrolling>           
        </ClientSettings>
        
        <SortingSettings  EnableSkinSortStyles="false"></SortingSettings>
         
    <PagerStyle Mode="NumericPages" />
</telerik:RadGrid>
<telerik:GridDropDownListColumnEditor ID="GridDropDownListColumnEditor1" runat="server" DropDownStyle-Width="200px" > </telerik:GridDropDownListColumnEditor>
Shinu
Top achievements
Rank 2
 answered on 15 Nov 2012
16 answers
584 views
Hi,

We are currently having performance problem on the TabStrip when the AutoPostBack property is set to "True" even there is no server side event attached. It takes about 3 seconds to show the newly selected tab. There is no problem if AutoPostBack property is set to "False".

Is there any workaround ?

Regards,

Semih
Nencho
Telerik team
 answered on 15 Nov 2012
1 answer
90 views
I have a client side function that fires when the "OnGridCreated" event is triggered.  The code in there used to work fine, then we got an update, now we discover get_masterTableView() is returning null in some cases were it used to be ok.  Any idea?


function onGridCreated(sender, eventArgs) {
        if (rowIsSelected()) {
        .....
 
function rowIsSelected()    {
        var getSeletecteRow=getSelectedRow();
        ......
 
function getSelectedRow()    {
        var employeeSummaryGrid = $find('<%=EmployeeSummaryGrid.ClientID%>');
        if (employeeSummaryGrid != null)
        {
            var MasterTable = employeeSummaryGrid.get_masterTableView();   //this is returning null in some cases
            return MasterTable.get_selectedItems()[0];
        }
 
        return null;
    }

Eyup
Telerik team
 answered on 15 Nov 2012
2 answers
262 views
Hello Telerik team,

I have Delete logic on server side & want to use radconfirm. Prompt me how I can turn from java script method RadListBox1Deleted!

function RadListBox1Deleting(sender, arg) {
             var callBackFunction = Function.createDelegate(sender, function (shouldSubmit) {
                 if (shouldSubmit) {
                     // call server side RadListBox1Deleted
                 }
             });
             var text = "Are you sure you want to delete?";
             radconfirm(text, callBackFunction, 300, 100, null, "Deleting");
             arg.set_cancel(true);
         }

Anatoliy
Top achievements
Rank 2
 answered on 15 Nov 2012
5 answers
150 views
Hi.

I would like to display values of a HashTable inside a ClientBinding, is this possible?

If not i would like to recommend it.
It should be possible to declare a container for the hashtable, and inside fields that can display the key and value of the hashtable, for all entries inside the hashtable the key/value pair will get duplicated and filled with there corresposing values till the end is reached.
How can i achieve this functionality when its not already possible?
Radoslav
Telerik team
 answered on 15 Nov 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?