Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
71 views
Class People
    Property Name As String ()
    Property IsAssigned As Boolean
End Class

Class Assignment
    Property ManagerName As String ()
    Property AssignmentDetails As String ()
    Property AssignedToList As List (Of People)
End Class

I have a requirement where i have a Telerik grid which is bound to a list of a custom collection. The structure of the collection is
List (Of Assignment), which is bound to my grid. I have a couple of bound columns which are bound to the string properties. I also have a template column, where i want to have another grid, which gets bound to AssignedToList. This binding should be two-way. How can I achieve this ?

Pavlina
Telerik team
 answered on 27 Jul 2011
2 answers
247 views
Hi,
I have the following scenario:
A RadTabStrip that has 4 tabPages.
On first page i have some textboxes with validators on it.

I want to do the following:
when i try to change the page, the notification should show up if there are validation errors.
I want this done on client side script.

It looks that the validation fires before any onClient... event of the RadTabStrip.
If i use a button inside the TabPage and i attach the script to the button, everything works fine.

Please give me a solution.
Thanks,
Tiberiu
Top achievements
Rank 1
 answered on 27 Jul 2011
1 answer
468 views
I've got an issue with RadComboBox where the style is incorrectly loading. In the CSS the style is being supplied by both WebResource.axd and Telerik.Web.UI.WebResouce.axd under the same style reference names.

Using the F12 tools in IE9, it seems to ignore the style provided by WebResource.axd and uses the Telerik.Web.UI.WebResource.axd declaration instead. All of the settings specified works except one, the background-image attribute.

url("/WebResource.axd?d=zOVDqaYoPgeOeTYRB8nFIraLP5bLJSS9mMvDXS2Gx92JFqyRrNGZriTPN9mB7xlBQFxVSthsLQnMRvJxdzh-NApiIOzkarqCcMpJuch6Tgb8cKKZ0WIUgnuFhTjBEQcHDVzKVTvN77djfMIX88P3QnswbBED1M2cytf8YE-HDNWhzSyZ0&t=634466635859336554")

This does not exist and causes a 404 error viewable in fiddler2. The style provided by WebResource.axd that is ignored does actually work

url("WebResource.axd?d=6f34yHv5y1TzMk-qXSedyUJ3gu_cuzFGdK186mb7ERzGXwRyXOrZcRZFvvBZU2BqM8REO42TLDNxTUpIk7koA_PsHFXVUovxk3l-H1Kep8esMtd22bWXhtBYtHaRWNs2Jzoa0ZCiZTx0uS1_usC6OqWvQQIRw2L4IsgFrEhgBCm7v1MX0&t=634466635859336554")

First of all I'm confused why both web resources are serving for the same content, and secondly how the telerik web resource can generate a reference for something that doesnt exist.

As an extra twist, the issue does not happen with everyone.
Dimitar Terziev
Telerik team
 answered on 27 Jul 2011
3 answers
125 views

Hi All,

 

In the new 2011 Q2 controls the Checkbox in RadCombo is introduced.

 

I'm adding Items to the Control by Code, Always Select the first one, which cant be deselected

So on the Item_created i do the following:

if e.item.index = 0 then

e.item.checked = true

e.item.enabled = false

endif

 

which results in a greyed out Text, but still enabled Checkbox.
See attached picture

Kind regards Marco

Kalina
Telerik team
 answered on 27 Jul 2011
1 answer
167 views
Hi,

Given:
- I have an AjaxControlToolKit TabPanel.
- I have a radgrid in a tab with Master Table and Detail Table views. I am using Client hierarchy mode.
- I have having a dropdown in master table ItemTemplate. A selected index changed event is handled in code behind.
- I have a textbox in detailtable ItemTemplate. A javascript function is called on click of the textbox where I send textbox's Client ID. Inside the javascript function, I use document.getElementById() to get the DOM object of textbox.

Problem:
- When grid loads for the first time, everything works fine. I expand child items, click on texboxes and document.getElementById() gets me the textbox object.
- But when I click on dropdown, change the selected item and the grid loads back.
- Now when I open a child item and click on textbox, document.getElementById() throws a null reference error.
- I checked the viewsource, I was able to find the textox with id. But document.getElementById() is not able to locate it.

I believe this has something to do with Ajax and viewstate of DetailTable views but I dont know where the problem. Please help me pinpoint the issue and find a solution.

Regards,
Himalay
Pavlina
Telerik team
 answered on 27 Jul 2011
1 answer
110 views
Hi supporter,

I meet a problem, if i disabled the javascript of the browser, the upload control can't display.
So i want to check if the upload control is created by js?

Thanks.
Peter Filipov
Telerik team
 answered on 27 Jul 2011
4 answers
195 views
I have radmenu control on my web page.
on chiled menu click i want to know the root menu text name in

RadHistorickMenu_ItemClick() menthod.



can any1 help me on this??


         <telerik:RadMenu ID="RadHistorickMenu" Skin="MenuSkin" runat="server" EnableEmbeddedSkins="false" OnClientItemClicking="OnClientItemClicking"
                            EnableRoundedCorners="true" EnableShadows="true" Width="100%" OnItemClick="RadHistorickMenu_ItemClick"> 
                            <Items>
                                <telerik:RadMenuItem Text="Quarterly" >
                                    <Items>
                                        <telerik:RadMenuItem Text="I S"/>
                                        <telerik:RadMenuItem Text="O D"  />
                                    </Items>
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="Annual" >
                                    <Items>
                                        <telerik:RadMenuItem Text="I S"  />
                                        <telerik:RadMenuItem Text="O D"  />
                                    </Items>
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenu>


i mean on click of IS or OD, it will give me Quarterly / Annual name.

Kate
Telerik team
 answered on 27 Jul 2011
4 answers
127 views
If I specify that I dont want the title menu, why do you still render out the markup (and I assume then download the RadMenu scripts)?...doesn't that seem a little bloated?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 27 Jul 2011
3 answers
162 views
i've got a radgrid and a button that both need to have a loading graphic on them. the radgrid is more important than the button, but both is preferred. i do have a master page on my .aspx.

what happens is when i hit the 'submit' button i get a loading graphic on top of the submit button but not on the grid. THEN, once something else is triggered (submit button or radgrid update) there is no loading indicator at all.

please help!

here's the contents of the .aspx page:


<asp:content id="ctRecoverCart" contentplaceholderid="AdminContent" runat="server">
    
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest" >
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="submitbtn" >
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="submitbtn" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>             
              <telerik:AjaxSetting AjaxControlID="RadGrid1" >
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Skin="Transparent" InitialDelayTime="0" EnableSkinTransparency="false" runat="server" />

    <form id="search" >

    <fieldset id="searchcriteria">
    <legend>Enter Search Criteria</legend>
    <label for="CartID">Cart ID</label><telerik:RadTextBox runat="server" id="CartID" Width="250px"/>
    <span id="spanSMIT"><telerik:RadButton runat="server" ID="submitbtn" Width="100px"
            UseSubmitBehavior="true" Text="Apply" AutoPostBack="true" 
            onclick="Submit_Clicked" />
            <telerik:RadButton ID="resetbtn" runat="server" OnClientClicked="clearForm" Width="100px"
            Text="Reset" AutoPostBack="false" UseSubmitBehavior="false"  /></span>
    <hr />
    <span id="spanAD"><label for="sAddr1">Shipping Address1</label><telerik:RadTextBox runat="server" id="sAddr1"/>
    <label for="sAddr2">Shipping Address2</label><telerik:RadTextBox runat="server" id="sAddr2"/></span>
    <span id="spanSZ"><label for="sCity">Shipping City</label><telerik:RadTextBox runat="server" id="sCity"/>
    <label for="sState">Shipping State</label><telerik:RadTextBox runat="server" id="sState"/>
    <label for="sZip">Shipping Zip</label><telerik:RadTextBox runat="server" id="sZip"/></span>
    <span id="spanPE"><label for="sPhone">Shipping Phone</label><telerik:RadTextBox runat="server" id="sPhone"/>
    <label for="sEmail">Shipping Email</label><telerik:RadTextBox runat="server" id="sEmail"/>
    </span>
    
    </fieldset>

    </form>


    <telerik:RadGrid Visible="false" ID="RadGrid1" runat="server" Width="100%"
        AllowPaging="True" AllowSorting="True" PageSize="50" CellSpacing="0" 
        OnNeedDataSource="RadGrid1_NeedDataSource" GridLines="None" AllowCustomPaging="true"
        AllowFilteringByColumn="false" ShowStatusBar="true" AutoGenerateColumns="false"
        AllowAutomaticUpdates="true" >
    
        <PagerStyle Mode="NumericPages" />

         <ClientSettings>
            <Scrolling AllowScroll="True" EnableVirtualScrollPaging="True" UseStaticHeaders="True"
                SaveScrollPosition="True"></Scrolling>
        </ClientSettings>


        <MasterTableView>


        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>


        <Columns>
            <telerik:GridBoundColumn DataField="CartID" HeaderText="Cart ID" UniqueName="CartID"><ItemStyle Width="150px"></ItemStyle></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="CartName" HeaderText="Cart Name" UniqueName="CartName" AllowFiltering="false" />
            <telerik:GridBoundColumn DataField="sAddr1" HeaderText="Shipping Address 1" UniqueName="sAddr1" />
            <telerik:GridBoundColumn DataField="sAddr2" HeaderText="Shipping Address 2" UniqueName="sAddr2" />
            <telerik:GridBoundColumn DataField="sCity" HeaderText="Shipping City" UniqueName="sCity" />
            <telerik:GridBoundColumn DataField="sState" HeaderText="Shipping State" UniqueName="sState" />
            <telerik:GridBoundColumn DataField="sZip" HeaderText="Shipping Zip" UniqueName="sZip" />
            <telerik:GridBoundColumn DataField="sPhone" HeaderText="Shipping Phone" UniqueName="sPhone" />
            <telerik:GridBoundColumn DataField="sEmail" HeaderText="Shipping Email" UniqueName="sEmail" />
            <telerik:GridBoundColumn DataField="PONumber" HeaderText="PO Number" UniqueName="PONumber" AllowFiltering="false" />
            <telerik:GridBoundColumn DataField="DateDeleted" HeaderText="Date Deleted" UniqueName="DateDeleted" DataFormatString="{0:MM/dd/yyyy}" />
            <telerik:GridBoundColumn DataField="QtyCO" HeaderText="Qty Current Order" UniqueName="QtyCO" AllowFiltering="false" />
            <telerik:GridBoundColumn DataField="QtyBO" HeaderText="Qty Back Order" UniqueName="QtyBO" AllowFiltering="false"  />
            <telerik:GridCalculatedColumn HeaderText="Total Qty" UniqueName="TotalQty" DataType="System.Double"
                        DataFields="QtyCO, QtyBO" Expression="{0}+{1}" FooterText="Total : "
                        Aggregate="Sum" AllowFiltering="false" />
        </Columns>


        </MasterTableView>


        <FilterMenu EnableImageSprites="False"></FilterMenu>


        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
    
    </telerik:RadGrid>

</asp:content>
Eric
Top achievements
Rank 1
 answered on 27 Jul 2011
0 answers
62 views
Based on this example:
http://www.telerik.com/help/aspnet-ajax/grid-api-for-controlling-net2.html

What would the asp.net code look like for the <EditItemTemplate> tag.

Im trying to add a few custom items on the click event, but the combo box is not being populated.



Luke
Top achievements
Rank 1
 asked on 27 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?