Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
177 views
Hi there,

I need to do some changing (not just creating an initial filter) of filters from 'outside' the radgrid (like adding a filter based on another dropdown). For example adding a filter to an already filtered grid from some event that occurs. I've seen things on using the filterExpression property, but I think that might get hairy if a filter is already applied and I want to manipulate it via string editing that property. Is there a better, more API-centric way to add/remove filters from external influences rather than hacking the filterExpression string?

Any pointers would be appreciated.

Thanks!

John
Ricardo
Top achievements
Rank 1
 answered on 18 Jul 2014
3 answers
187 views
I have columns that are sized to fit the data, I am not setting the widths. With this format, is there a way to find the widths of the columns once all of the data has been bound to the grid?

I'm trying to truncate text and append an ellipsis (...), but the user can choose to hide or show columns, so I can't hard code the columns widths. I need to find a way to find the widths, and calculate the number of characters to allow from that.

rgResults.Columns[i].HeaderStyle.Width.Value

is returning 0.0
Galin
Telerik team
 answered on 18 Jul 2014
3 answers
749 views
<telerik:RadButton runat="server" Text="Letter Manager"  
     Image-EnableImageButton="True" Image-ImageUrl="~/images/btnLetterManger.png"
     Height="62" Width="207" ID="btnLetterManager" Image-HoveredImageUrl="~/images/btnLetterManger_hover.png" Image-IsBackgroundImage="False" ToolTip="Letter Manager" NavigateUrl="~/LetterManager.aspx" UseSubmitBehavior="True">
 </telerik:RadButton>

When the button is clicked it never navigates the user to LetterManager.aspx

What am I missing?

Thanks
Tom
Top achievements
Rank 1
 answered on 18 Jul 2014
4 answers
265 views
Using version 2013.1.417.35 and Internet Explorer 10.

If you attempt to check/uncheck the checkbox of a node in a RadTreeView quickly, the node does not always successfully check or uncheck.  (No postbacks occur.)  Is there a reason for this, or is it a small bug?

Thanks,
Kyle
Alex Gyoshev
Telerik team
 answered on 18 Jul 2014
2 answers
347 views
I need to know if there is a way to determine what is triggering my ItemCreated event when I have a GridEditableItem in edit mode and the user is clicking the "Update" button, "cancel Button" or neither.  On my page, the itemCreated event is being triggered when the user clicks the update or cancel button when my GridEditableItem is in editmode.  This is fine.  However, the event is also triggered if another control on my page is clicked while my GridEditableItem is in edit mode and it's click event forces a page load.  If this happens, I could run into a situation where my grid row is open for update/cancel, a new page is loaded and my grid row remains open for update/cancel after the page has been refreshed (which I do not want). I want to force "cancel" the edit mode when this happens, before the page is refreshed.   Since I'm able to capture the logical flow of activity in the ItemCreatedEvent when the user does something on my page that is outside of the update/cancel activity of my row, I need to be able to determine what type of activity is firing off the ItemCreated event (update/cancel or neither) in order to assess whether to manually kick off the cancel event through the item's FireCommand method or not.  Is there a way to do this?
Larry
Top achievements
Rank 1
 answered on 18 Jul 2014
11 answers
121 views
Hi,

I am using custom provider for Scheduler. But the problem is I have more than 800 users in my system and I can't display all 800 users as Multiple section Resource on the page. Please let me know if there is any way to get around with this situation.

Thanks!

Alan
Hristo Valyavicharski
Telerik team
 answered on 18 Jul 2014
2 answers
134 views
Hi.

As stated in the title, the position keeps resetting to the 1st element in the combobox as soon as new data is added to the combobox.  Below is the itemrequested code I use.

Protected Sub cboInstrument_ItemsRequested(ByVal sender As Object, ByVal e As RadComboBoxItemsRequestedEventArgs)
    Try
        Dim oSender As Telerik.Web.UI.RadComboBox = DirectCast(sender, Telerik.Web.UI.RadComboBox)
        oSender.DataValueField = "Name"
        oSender.DataTextField = "Name"
        Dim data As List(Of Instrument)
        If Not String.IsNullOrWhiteSpace(ExchangeComboBox.SelectedValue) Then
            data = GetData(ExchangeComboBox.SelectedValue, e.Text, False)
            Dim itemOffset As Integer = e.NumberOfItems
            Dim endOffset As Integer = Math.Min(itemOffset + ItemsPerRequest, data.Count)
            'e.EndOfItems = endOffset = IIf(data.Count = 1, 0, data.Count)
            e.EndOfItems = endOffset = data.Count
            For i As Integer = itemOffset To endOffset - 1
                oSender.Items.Add(New RadComboBoxItem(String.Format("{0} - {1}", data(i).Symbol, data(i).Name), data(i).ExchangeSymbolKey))
            Next
            e.Message = GetStatusMessage(endOffset, data.Count)
        Else
            Dim endOffset As Integer = 0
            oSender.Items.Add(New RadComboBoxItem("Select an Exchange", Nothing))
            e.Message = GetStatusMessage(endOffset, 0)
        End If
    Catch exc As Exception
        ProcessModuleLoadException(Me, exc)
    End Try
End Sub

Any help will be greatly appreciated.

Regards
Leon
Top achievements
Rank 1
 answered on 18 Jul 2014
5 answers
950 views
I've had a tough time trying to figure out how to access my grid on client side. I've tried everything I could find, and nothing seems to work. I FINALLY got my grid object ($find didn't work for me), but now get_masterTableView() isn't doing anything. If I step through the javascript, it steps into the line and just disappears into some WebResource.axd abyss and never returns. I don't get any javascript errors.

If I try to run the function in the console, it says "undefined is not a function".

Here's my code

<script type="text/javascript">
    function GridCreated(grid) {
        var mtv = grid.get_masterTableView();
        var pageIndex = mtv.get_currentPageIndex();
        alert(pageIndex);
    }
</script>
<radG:RadGrid ID="rgResults" runat="server" AllowMultiRowSelection="True" AllowPaging="True"
            AllowSorting="True" EnableAJAX="False" GridLines="None" OnItemCommand="rgResults_ItemCommand" OnItemDataBound="rgResults_ItemDataBound"
            PageSize="20"
            Skin="Default" Width="100%" OnPageIndexChanged="rgResults_PageIndexChanged" OnSortCommand="rgResults_SortCommand" OnInit="rgResults_Init" OnPreRender="rgResults_PreRender">
            <ClientSettings ApplyStylesOnClient="True">
                <ClientEvents OnGridCreated="GridCreated(this);" />
            </ClientSettings>
            <ItemStyle CssClass="griditemtext" />
            <HeaderStyle CssClass="gridheadertext" />
            <FooterStyle CssClass="gridfootertext" />
            <AlternatingItemStyle CssClass="gridalternetitemtext" />
            <PagerStyle CssClass="gridpagertext" Mode="NumericPages" />
            <CommandItemStyle CssClass="gridcommandtext" />
            <SelectedItemStyle CssClass="gridselecteditemtext" />
            <MasterTableView AutoGenerateColumns="False"
                DataKeyNames="Article Number" Font-Bold="False" Font-Italic="False" CommandItemDisplay="None" Font-Overline="False"
                Font-Strikeout="False" Font-Underline="False" GridLines="Both">
                <ExpandCollapseColumn Visible="False">
                    <HeaderStyle Width="19px" />
                </ExpandCollapseColumn>
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <PagerStyle Mode="NumericPages" />
                <Columns/>
            </MasterTableView>
        </radG:RadGrid>
Konstantin Dikov
Telerik team
 answered on 18 Jul 2014
2 answers
214 views
Hey,

Is there any possibility, code or workaround to implement multiple parents for an org chart?

Ty 

luk
Slav
Telerik team
 answered on 18 Jul 2014
1 answer
55 views
Is there any way that I can bind a url to chart series item so that when I click it will redirect to my details page? It will be good if it can be done at client side.
Danail Vasilev
Telerik team
 answered on 18 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
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?