Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
167 views
Is there a way to use the checkbox column on the client side without putting the radtreelist in edit mode? I want the behavior of the select column but without allowing whole row selection. 
james
Top achievements
Rank 1
 answered on 15 Jan 2015
1 answer
118 views
Hi,

I am using telerik UI for Asp.net Ajax version 2012.3.1016.40.  I am trying to display Goto page control in radgrid's pager.  I have set the pager style mode to NextPrevNumericAndAdvanced.  But Goto page  control is not displaying in pager.  I am able to display Advanced Goto page control using jQuery and CSS.  But I want them to be displayed withiout any extra code.  Am I missing anything?

jQuery+CSS code to display Advanced pager controls: 
$('div.rgAdvPart').css('display','block');

Here I am providing sample code.  I have removed <columns> section.  

<telerik:RadGrid ID="Grid" runat="server" OnNeedDataSource="Grid_NeedDataSource"
                OnItemCreated="Grid_ItemCreated" OnDeleteCommand="Grid_DeleteCommand" 
                OnItemCommand="Grid_ItemCommand" OnItemDataBound = "Grid_ItemDataBound" AllowFilteringByColumn="True" Skin="Metro"
                CellSpacing="0" GridLines="None" Width="99%" EnableViewState="true" AllowPaging="true" PageSize="20" 
                ViewStateMode="Enabled" HeaderStyle-ForeColor='Black' AllowSorting="true" SortingSettings-EnableSkinSortStyles="false">
                <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" DataKeyNames="Id" CommandItemSettings-ShowExportToExcelButton="true" AllowNaturalSort="false" PagerStyle-Mode="NextPrevNumericAndAdvanced" > 
                    <SortExpressions>

                        <telerik:GridSortExpression FieldName="Status" SortOrder="Ascending" />
                    </SortExpressions>

                    <CommandItemSettings AddNewRecordText="Add" />  
</MasterTableView>
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
                <GroupingSettings CaseSensitive="false" />
            </telerik:RadGrid>

Thank you,
Gafoor


Pavlina
Telerik team
 answered on 15 Jan 2015
3 answers
154 views
Hello,

I am using asp.net telerik controls like Grid, Calander, etc...in our application and now we are running with huge performance issue.

Some suggestion came out that can we disable viewstate of page which uses lots of telerik control?

As per our understanding, page will not working properly is this case....

so what is the solution or can we disable page level viewstate..?

thanks,
Glauco Basilio
Top achievements
Rank 1
 answered on 15 Jan 2015
1 answer
41 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
46 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
82 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
103 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
46 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
580 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
83 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?