Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
155 views
Hi  -- I just updated to latest release yesterday and this morning I notice that all my menus do not show separator items anymore for the default skin -- I must change to another skin like windows 7 for them to show.

Is it me or is there a problem with latest release?
Ivan Zhekov
Telerik team
 answered on 17 Jun 2014
7 answers
359 views
hi,

  if i want to disable the option of rename how can i do it??means when the user right clicks the file the rename option should be disable.........how can i do it??secondly if i want to disable the rename option on directory which starts with name shortcuts how can i do it??

regards

samee javaid 
Princy
Top achievements
Rank 2
 answered on 17 Jun 2014
14 answers
770 views
    protected void ddlMake_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)  
    {  
        ViewState["Make"] = e.Text;  
    } 

Forgive me if this is an extremely easy question but for some reason I cannot get the SelectedValue rather than the SelectedText from the RadCombo in the SelectedIndesChanged event.  Can someone please help me find where this may be?  e.Text is the only thing that appears to be accessible.  My ID values are the hidden piece I need.

Thanks in advance.
Doug

Shinu
Top achievements
Rank 2
 answered on 17 Jun 2014
1 answer
166 views
I have a radgrid with a  GridBoundColumn. There is a button outside the radgrid with is enabled only when one or more rows are selected. How can I achieve this client side? I tried the following but did not work:
this._RadGrid1.ClientSettings.ClientEvents.OnRowSelected = "OnRowSelected";
Shinu
Top achievements
Rank 2
 answered on 17 Jun 2014
1 answer
193 views
Hi

I am retrieving data from database table (MS SQL Server), which can have thousands of rows. DataSource for RadGrid is an EntityDataSource control.

For performance & usability reasons I have activated paging. This works really good as long as grouping is not involved! SQL on server-side only returns rows for current page when grouping is not enabled, but when it is always all rows get returned. It was verified by SQL Profiler.

I have checked all properties in EntityDataSource (and of EntityDataSourceView control - in OnQueryCreated event) and they are all correct for paging and sorting (see http://msdn.microsoft.com/en-us/library/vstudio/cc488534%28v=vs.100%29.aspx).

And also RadGrid.EnableLinqExpressions and MasterTableView.EnableLinqGrouping are set to true.

Here relevant markup:

<telerik:RadGrid ID="VialsGrid" runat="server" CellSpacing="0"
    AllowPaging="true" PageSize="50" AllowFilteringByColumn="true" AutoPostBackOnFilter="true" AutoGenerateColumns="false" AllowSorting="true"
    GridLines="None" Width="1000" ItemStyle-VerticalAlign="Top" AlternatingItemStyle-VerticalAlign="Top"
    DataSourceID="VialsGridDataSource" EnableLinqExpressions="true" OnUpdateCommand="VialsGrid_UpdateCommand" OnItemCreated="VialsGrid_ItemCreated">
    <MasterTableView DataKeyNames="VialLocationID" Name="MasterTableView" CommandItemDisplay="Top" EnableLinqGrouping="true">
        <Columns>
            ...
        </Columns>
        <CommandItemSettings ShowAddNewRecordButton="true" ShowRefreshButton="true"></CommandItemSettings>
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                <SelectFields>
                    <telerik:GridGroupByField FieldName="VialLocationGroupName" FieldAlias="VialLocationGroupName" HeaderText="Group" />
                </SelectFields>
                <GroupByFields>
                    <telerik:GridGroupByField FieldName="VialLocationGroupName" />
                </GroupByFields>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
    </MasterTableView>
    <ClientSettings>
        <ClientEvents OnCommand="function(){}" OnMasterTableViewCreated="MasterTableViewCreated" />
    </ClientSettings>
</telerik:RadGrid>
</div>
 
<asp:EntityDataSource ID="VialsGridDataSource" runat="server"
    ConnectionString="name=EmbryoDBEntities"
    DefaultContainerName="EmbryoDBEntities" EnableFlattening="false"
    EnableInsert="false" EnableUpdate="true" EnableDelete="false"
    EntitySetName="VialLocationViews" OrderBy="it.VialLocationGroupName, it.VialLocation asc"
    AutoPage="true" AutoSort="true"
    OnQueryCreated="VialsGridDataSource_QueryCreated">
</asp:EntityDataSource>

Any ideas?

Thanks,
Roger

Daniel
Telerik team
 answered on 16 Jun 2014
1 answer
123 views
We are displaying a lightbox with a simple form and button within a relatively complex page (complex mostly due to the foundation css classes used), and as soon as it comes up it closes within 1-4 seconds.  If there is a javascript timer on the page closes in 1-2 seconds; if the same page doesn't have the timer it closes in 3-4 seconds.  A simple page with the same lightbox (using their same master page) stays open until manually closed.  It appears then that other stuff is causing the closing.  Is there a way the lightbox can block the page until it is closed? Are there any best practices on keeping a lightbox isolated from what else is going on in the page?
Thanks very  much
Angel Petrov
Telerik team
 answered on 16 Jun 2014
2 answers
127 views
Hi,

I need some guidance on using/setting up Ajax in my application. My application is a single page aspx with many user controls on it. When the page loads initially, there's a RadTabStrip with RadMultiPage which dynamically loads a user control containing RadListView. When the user clicks a button on an item, the application dynamically creates a tab that has the detail info of the item.  At this point, everything is currently working fine.

The problem starts here:

The new detail tab contains a user control that is used as a layout page to host other 5 user controls.  When I click on a button on any of the 5 controls, they all do a post-back instead of callback.  I only want let's say user control 3 to trigger an update on user control 5.

I've set up RadAjaxManager on the Main page which hosts the RadTabStrip like this :
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadFilterButton">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" />

Listview user control has RadAjaxManagerProxy:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadListView1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="RadAjaxLoadingPanel1" />
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

When user clicks a button on the list view, the application creates another tab that has a user control hosting other 5 user controls.
This is the code of the detail page:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="DetailLocationContact">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="DetailProvider" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 
 
<div class="detailpane">
    <!-- LeadId -->
    <div class="leadidarea">
        <asp:Label ID="Label1" runat="server" Text="Lead ID:" /><asp:TextBox ID="LeadIDTextBox" runat="server" Text="LeadID"></asp:TextBox>
        Detail Main Controls here!
    </div>
 
    <!-- Forecast -->
    <div class="forecastarea">
        <uc1:DetailForecast runat="server" ID="DetailForecast" />
    </div>
 
    <!-- Company -->
    <div class="companyarea">
        <uc2:DetailCompany runat="server" ID="DetailCompany" />
    </div>
 
    <!-- Provider -->
    <div class="providerarea">
        <uc3:DetailProvider runat="server" ID="DetailProvider" />
    </div>
 
    <!-- Location and Contact -->
    <div class="locationarea">
        <uc4:DetailLocationContact runat="server" ID="DetailLocationContact" />
    </div>
 
    <!-- Additional Info -->
    <div class="additionalarea">
        <uc5:DetailAdditionalInfo runat="server" ID="DetailAdditionalInfo" />
    </div>
</div>

Sorry for the long description and complex UI as it has so many layers.  Is it possible for the Ajax manager to accomplish what I need?
That is, to have Location user control to refresh only the Provider user control when a row has been clicked? 
I have attached a screen shot to help in visualizing the process.

Thank you,

Helen
















Maria Ilieva
Telerik team
 answered on 16 Jun 2014
2 answers
108 views
Hi there,

I have a radgrid with 2 values, Amount1 and Amount2. If someone puts an amount in Amount1, I want the grid to automatically clear Amount2 so that only one of the two fields can be entered.

I have this almost working. If there is a single row in the grid and I am in EDIT MODE, it works. If I am in INSERT mode it does not work (is it because when you're in insert mode, the row you're adding isn't yet a row?) and if there is more than one row in the grid and I am editing a row, it tries to clear ALL rows, not just the one I'm editing, because of the row loop.

My question is 2 parts, one - how do I get the row ID of the row I'm editing and second how do I clear a control that is in INSERT mode?

 
<script type='text/javascript'>
    var run = false;
 
    function ClearOtherField(fieldname) {
        var grid = $find("<%=RadGrid2.ClientID %>");
            if (run == false) {
                run = true;
                if (grid) {
                    var MasterTable = grid.get_masterTableView();
                    var Rows = MasterTable.get_dataItems();
                    for (var i = 0; i < Rows.length; i++) {
                        var row = Rows[i];
 
                        var PercentageRadNumericTextBox = row.findControl(fieldname);
                        PercentageRadNumericTextBox.set_value("");
                    }
                }
                run = false;
            }
        }
        function AmountRadNumericTextBox_OnValueChanging() {
            ClearOtherField("PercentageRadNumericTextBox");
        }
 
        function PercentageRadNumericTextBox_OnValueChanging() {
            ClearOtherField("AmountRadNumericTextBox");
        }
 
 
</script>
Eyup
Telerik team
 answered on 16 Jun 2014
1 answer
223 views
Hi, 

I have been poking around on the forums and doing some soul-googling about this, but have not found any examples that hit the mark. 

I am displaying some data in a RadTreeView. For some, but not all, of the nodes, I want to have a popup on mouse-over that will display some summary data. I want the data to be populated at run time from an ajax call to the server to avoid bloating the get payload whenever the tree is populated.

I am not sure whether I need to use a window to do this -- these look a bit more heavy weight than what I need. This just needs to be a simple panel that comes up and that can be dismissed from a cancel button. 

I would be grateful for any suggestions you can offer. Thanks. 
--Phil 

Plamen
Telerik team
 answered on 16 Jun 2014
2 answers
161 views
Hello,
            Is it possible to close the editform without out any server side execution(commend name) when we add/edit an item in radGrid?

I don't want data binding again when we click on Cancel - This should be just cancel the current operation from client side only. 


Please help me out if there is any solution.


Thanks,
Eyup
Telerik team
 answered on 16 Jun 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?