Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
52 views
I have a batch editable RadGrid with a column that contains comboboxes for selecting the value in the editable cell. When the cell is not in edit mode, the text for the item selected in the combo box is shown (and the ID value stored) and when in edit mode the combo box appear so the user can select a value. What I'd like users to be able to do is click the header for this column and have the column sorted by the displayed text. I am not seeing a way readily to do this. Has anyone run into a similar situation before?
Pavlina
Telerik team
 answered on 15 Jan 2015
0 answers
65 views
I’m having trouble with a form that I am working on and I’m
not sure if this is the best way to do it (yes I’m newer to programming). I
have a form with multiple buttons and different input fields, each button when
clicked needs to validate different controls. i.e button one validates txt1,
txt 5 and ddl3 but button 2 needs to validate txt1, txt 2, chkbx 1, and ddl1. This
form is used to test different functions and the returned values of each button
gives data I need to fill in for other fields.

Using the code behind how can I achieve this with the rad UI
controls and using the rad notification box?

Or

If this is really the bad way to go about it, recommendations
how to better make this page.

Thanks for your time.
Mitchell
Top achievements
Rank 2
 asked on 15 Jan 2015
1 answer
101 views
Hey devs,

I have found something weird happening with a grid that has multiple boolean columns that are filterable. On fresh page load if i don't check any of the boolean checkboxes and then click the filter dropdown and set it "Equal To" as if i were to filter for the records that are set to false, the grid seems to think that i want to filter all boolean columns with false instead of just the one i am trying to filter for.

1. Fresh page load
2. After selecting equal to on the last column
3. After setting no filter on all but last column

After that i can do any sort of combination i want and it works fine. Just on that first load that it behaves this way.

Has anyone seen this behavior before?

Thanks

Max T.
Angel Petrov
Telerik team
 answered on 15 Jan 2015
1 answer
126 views
Hi

I saw below link

http://www.telerik.com/support/code-library/move-rows-up-down-using-radgrid-for-asp-net-ajax-prometheus
It is having attached sample to move rows up down by selecting rows (RadGrid),
can i get same for RadTreeList?

Senthil
Maria Ilieva
Telerik team
 answered on 15 Jan 2015
2 answers
63 views
Hello,

I'm having a problem with my RadGrid's Edit feature where I have  to click on the "Edit" link three times for the popup modal window to appear.  I set the DataSource for my grid in the "NeedDataSource" event handler:
protected void grdViewInventory_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
    int? siteID = ApplicationInformation.GetSiteID();
    grdViewInventory.DataSource = BLL.GetInventory(siteID);
}

The data is coming from a view inside of my Entity Framework model as an IList.

I don't generate columns automatically.  Here's what my grid code looks like:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wucInventoryView.ascx.cs" Inherits="FACApps.Module.ESPSMT.wucInventoryView" %>
<telerik:RadAjaxLoadingPanel ID="alpViewInventory" runat="server" Height="75px" Width="75px"
    Transparency="5">
    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
        style="border: 0;" />
</telerik:RadAjaxLoadingPanel>
<telerik:RadGrid ID="grdViewInventory" runat="server" AllowPaging="True" AllowSorting="True"
    GroupPanelPosition="Top" Height="1000px" Width="100%"
    OnNeedDataSource="grdViewInventory_NeedDataSource" Skin="Silk" EnableEmbeddedSkins="true">
    <MasterTableView AutoGenerateColumns="False" EditMode="PopUp" PageSize="200">
        <GroupHeaderTemplate>
            <asp:Label runat="server" ID="Label1" Text='<%# Eval("Building") %>' />
            <asp:Label runat="server" ID="Label2" Text='<%# "(" + Eval("PropertyNumber") + ")" %>' />
            <asp:Label runat="server" ID="Label4" Text='<%# Eval("UnitTag") %>' />
            <asp:Label runat="server" ID="Label3" Text='<%# Eval("AHUType") %>' />
        </GroupHeaderTemplate>
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                <SelectFields>
                    <telerik:GridGroupByField FieldName="Building" />
                    <telerik:GridGroupByField FieldName="PropertyNumber" />
                    <telerik:GridGroupByField FieldName="UnitTag" FieldAlias="UnitTag" FormatString="" HeaderText=""></telerik:GridGroupByField>
                    <telerik:GridGroupByField FieldName="AirHandlerType_Description" FieldAlias="AHUType" FormatString="" HeaderText=""></telerik:GridGroupByField>
                </SelectFields>
                <GroupByFields>
                    <telerik:GridGroupByField FieldName="Building" SortOrder="Ascending" />
                    <telerik:GridGroupByField FieldName="PropertyNumber" SortOrder="Ascending" />
                    <telerik:GridGroupByField FieldName="UnitTag" FieldAlias="UnitTag" FormatString="" HeaderText=""></telerik:GridGroupByField>
                    <telerik:GridGroupByField FieldName="AirHandlerType_Description" FieldAlias="AHUType" FormatString="" HeaderText=""></telerik:GridGroupByField>
                </GroupByFields>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
        <Columns>
            <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" >
            </telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn DataField="PropertyNumber" HeaderText="Property ID" ReadOnly="True" SortExpression="PropertyNumber" UniqueName="PropertyNumber" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Building" HeaderText="Property Name" ReadOnly="True" SortExpression="Building" UniqueName="Building" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="UnitTag" HeaderText="Unit Tag" ReadOnly="True" SortExpression="UnitTag" UniqueName="UnitTag" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="AirHandlerType_Description" HeaderText="AHU Type" ReadOnly="True" SortExpression="AirHandlerType_Description" UniqueName="AirHandlerType_Description" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="AHU_Manufacturer" HeaderText="AHU Mfgr" ReadOnly="True" SortExpression="AHU_Manufacturer" UniqueName="AHU_Manufacturer" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="FilterType" HeaderText="" ReadOnly="True" SortExpression="FilterType" UniqueName="FilterType">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Bank_description" HeaderText="Filter Bank" ReadOnly="True" SortExpression="Bank_description" UniqueName="Bank_description" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ModelNumber" HeaderText="" ReadOnly="True" SortExpression="ModelNumber" UniqueName="ModelNumber">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="FilterManufacturer" HeaderText="Filter Mfgr" ReadOnly="True" SortExpression="FilterManufacturer" UniqueName="FilterManufacturer" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="FilterDimension" HeaderText="" ReadOnly="True" SortExpression="FilterDimension" UniqueName="FilterDimension">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Quantity" HeaderText="" ReadOnly="True" SortExpression="FilterManufacturer" UniqueName="FilterManufacturer">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Dimension" HeaderText="" ReadOnly="True" SortExpression="Dimension" UniqueName="Dimension">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PartNumber" HeaderText="" ReadOnly="True" SortExpression="PartNumber" UniqueName="PartNumber">
            </telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings EditFormType="WebUserControl" UserControlName="Modules\ESPSMT\wucInventoryEdit.ascx">
            <EditColumn UniqueName="EditCommandColumn" FilterControlAltText="Filter EditCommandColumn1 column" ></EditColumn>
            <PopUpSettings ScrollBars="None" Modal="true" ZIndex="100010" />
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>


As you can see my grid is inside a WebUserControl. Can anyone please tell me why I have to click on the "Edit" button multiple times?  I don't see anything in my code that should cause this behavior.  Thanks!
Shawn
Top achievements
Rank 1
 answered on 15 Jan 2015
13 answers
603 views
Why does tab not highlight when selected? Added RadTab control to master page using NavigateURL redirection but selected tab does not highlight when selected as published demo does. Am I missing something or does this require additional coding?

 

 

<td style="background-color:#f0e68c; width:100%">

 

 

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Hay" Align="Justify" SelectedIndex="0">

 

 

<Tabs>

 

 

<telerik:RadTab Text="Search" NavigateUrl="~/Forms/Search.aspx">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab Text="Incidents" NavigateUrl="~/Forms/Incidents.aspx">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab Text="Unit Logs" NavigateUrl="~/Forms/UnitLogs.aspx">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab Text="Rosters" NavigateUrl="~/Forms/Rosters.aspx">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab Text="Assignments" NavigateUrl="~/Forms/Assignments.aspx">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab Text="Activities" NavigateUrl="~/Forms/Activities.aspx">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

 

<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

 

 

</asp:ContentPlaceHolder>

 

 

</td>

 

Ivan Danchev
Telerik team
 answered on 15 Jan 2015
1 answer
99 views
Hi everyone!

I've been using Telerik controls for almost ten years and I'm having some difficulties regarding the size of the result HTML/JS file size.

Current scenario: We have almost 150 table rows and each row contains multiple RadNumericTextBox. Currently, for each RadNumericTextBox an enourmous scripting is being produced (see below).

I remember that a solution was found for this same problem but for "RadCalendar" (where we could use a technique called "Shared Calendars").

Can we use something like that in this situattion? What can we do in order to reduce the enourmous content that is being generated on our html page?

Thanks in advance!



Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadNumericTextBox, {"_displayText":"1,00","_focused":false,"_initialValueAsText":"1","_postBackEventReferenceScript":"setTimeout(\"__doPostBack(\\\u0027ctl00$cphMain$numTextBoxNumDays_2798\\\u0027,\\\u0027\\\u0027)\", 0)","_skin":"Default","_validationText":"1","clientStateFieldID":"numTextBoxNumDays_2798_ClientState","enabled":true,"incrementSettings":{InterceptArrowKeys:true,InterceptMouseWheel:true,Step:1},"minValue":0,"numberFormat":{"DecimalDigits":2,"DecimalSeparator":",","CultureNativeDecimalSeparator":",","GroupSeparator":".","GroupSizes":3,"NegativePattern":"-n","NegativeSign":"-","PositivePattern":"n","AllowRounding":true,"KeepNotRoundedValue":false,"KeepTrailingZerosOnFocus":false,"NumericPlaceHolder":"n"},"showSpinButtons":true,"styles":{HoveredStyle: ["width:60px;text-align:right;", "riTextBox riHover"],InvalidStyle: ["width:60px;text-align:right;", "riTextBox riError"],DisabledStyle: ["width:60px;text-align:right;", "riTextBox riDisabled"],FocusedStyle: ["width:60px;text-align:right;", "riTextBox riFocused"],EmptyMessageStyle: ["width:60px;text-align:right;", "riTextBox riEmpty"],ReadOnlyStyle: ["width:60px;text-align:right;", "riTextBox riRead"],EnabledStyle: ["width:60px;text-align:right;", "riTextBox riEnabled"],NegativeStyle: ["width:60px;text-align:right;", "riTextBox riNegative"]}}, {"valueChanging":OnValueChangingNumDays}, null, $get("numTextBoxNumDays_2798"));
});
Maria Ilieva
Telerik team
 answered on 15 Jan 2015
1 answer
117 views
Hello,
I Opened a RadWindow1 in Splitter which is height 500px.
I want to open another Radwindow2(need to show big window) from RadWindow1.
But new Radwindow2 opens within the RadWindow1.
I want to open Radwindow2 big just like a window.open method
How can i do that.?
Marin Bratanov
Telerik team
 answered on 15 Jan 2015
2 answers
791 views
using telerik v.2014.3.1024.45 with ASP.NET 4.5
How can i use the boostrap glyphicons for my edit / insert / delete buttons?
so far i have used this

                    <telerik:TreeListEditCommandColumn UniqueName="InsertCommandColumn" ButtonType="ImageButton" ShowAddButton="true" ShowEditButton="true" HeaderStyle-Width="50px" ItemStyle-HorizontalAlign="Center">

but i cannot find a simple way to change the icons.

let me know please
thanks

ck
Top achievements
Rank 1
 answered on 15 Jan 2015
3 answers
108 views
I'm just starting to use grouping as it solves a big problem we have, and so far the display for rendering the data is great.

The way we add appointments is to open our own in house booking form, via javascript.

Now with the scheduler showing several locations, when we click in a column (for horizontal grouping) or a row for vertical grouping) how do I get a handle on the resource ID?

Andy
Boyan Dimitrov
Telerik team
 answered on 15 Jan 2015
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?