Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
441 views
This two minute exercise has somehow turned into two hours.  I'm following the directions on http://www.telerik.com/help/aspnet-ajax/grid-validation.html and trying to declaratively add a required field validator (2012 Q3 controls):

        <telerik:GridBoundColumn DataField="nOrder" DataType="System.Int32"
            FilterControlAltText="Filter Order column" HeaderText="Order"
            SortExpression="nOrder" UniqueName="nOrder" HeaderStyle-Width="5%">
<HeaderStyle Width="5%"></HeaderStyle>
    <ColumnValidationSettings EnableRequiredFieldValidation="true" EnableModelErrorMessageValidation="true">
        <RequiredFieldValidator ForeColor="Red" ErrorMessage="This field is required"></RequiredFieldValidator>
    </ColumnValidationSettings>
        </telerik:GridBoundColumn>

Which results in:
Error    3    Type 'Telerik.Web.UI.GridBoundColumn' does not have a public property named 'ColumnValidationSettings'.
Error    4    Type 'Telerik.Web.UI.GridBoundColumn' does not have a public property named 'RequiredFieldValidator'.

What gives? What did I miss?
Angel Petrov
Telerik team
 answered on 20 Feb 2013
1 answer
194 views
Hello,

I have a small problem.

My PanelBar:
<telerik:RadPanelBar ID="pnlMainNav" runat="server" Width="100%" ExpandMode="FullExpandedItem" Height="100%" >

Panel bar has several items and one of those items is shown below:

<telerik:RadPanelItem runat="server">
           <ItemTemplate>
               <telerik:RadTreeView id="myTree" runat="server"/>
           </ItemTemplate>
</telerik:RadPanelItem>

The tree view is bound on the server.

Now the thing is, if the tree view has a lot of nodes , everything is ok, and treeview occupies 100% of the panel.

When there is few nodes, the treeview does not occupy 100% of the panel item.

How can I achieve that ?


Ian David
Top achievements
Rank 1
 answered on 20 Feb 2013
1 answer
254 views

Hi

 

I'm trying to get a filter icon indicating which column(s) that has a filter. I set the ShowFilterIcon, FilterImageUrl and FilterItemStyle properties but there seems to bee no effect...

 

My set up looks like this:

 

<telerik:RadGrid  runat="server" ID="gvCustomerProspects" OnNeedDataSource="gvCustomerProspects_OnNeedDataSource" OnItemCommand="gvCustomerProspects_OnItemCommand" OnItemDataBound="gvCustomerProspects_OnItemDataBound">

                        <FilterItemStyle CssClass="test" BackColor="red"></FilterItemStyle>

                        <MasterTableView DataKeyNames="CustomerId">

                                    <Columns>

                                                <telerik:GridBoundColumn HeaderText="Prospect" FilterImageUrl="~/Images/Layout/Icons/Open16.png" ShowFilterIcon="True" DataField="CustomerCompanyName" SortExpression="CustomerCompanyName" />

                <telerik:GridBoundColumn HeaderText="Sales Phase" DataField="SalesPhase" SortExpression="SalesPhase" />
                <telerik:GridBoundColumn HeaderText="Sales Probability" DataField="SalesProbabilityFormatted" SortExpression="SalesProbability" />
                <telerik:GridBoundColumn HeaderText="Category" DataField="Category" SortExpression="Category" />
                <telerik:GridBoundColumn HeaderText="Account Manager" DataField="AccountManagerName" SortExpression="AccountManagerName" />
                <telerik:GridButtonColumn
                    ButtonType="ImageButton"
                    ImageUrl="/Images/Layout/Icons/Transparent1x1.png"
                    CommandName="EditProspect"
                    Text="Open"
                    UniqueName="EditColumn"
                    ButtonCssClass="gridOpen"
                    HeaderStyle-Width="30">
                </telerik:GridButtonColumn>
                <telerik:GridButtonColumn
                    ConfirmText="Delete this prospect?"
                    ConfirmDialogType="RadWindow"
                    ConfirmTitle="Delete"
                    ButtonType="ImageButton"
                    ImageUrl="/Images/Layout/Icons/Transparent1x1.png"
                    CommandName="DeleteProspect"
                    Text="Delete"
                    UniqueName="DeleteColumn"
                    ButtonCssClass="gridDelete"
                    HeaderStyle-Width="30">
                </telerik:GridButtonColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

 

 

The following properties are set in code behind

 

                                    Skin = "Black";

                                    EnableEmbeddedSkins = true;

                                    AutoGenerateColumns = false;

                                    EnableHeaderContextMenu = true;

                                    GroupingEnabled = true;

                                    AllowMultiRowSelection = true;

                                    AllowSorting = true;

                                    AllowPaging = true;

                                    EnableHeaderContextAggregatesMenu = true;

                                    EnableHeaderContextFilterMenu = true;

                                    AllowFilteringByColumn = true;

 

                                    CssClass = "thRadGrid";

 

                                    GroupingSettings.ShowUnGroupButton = true;

 

                                    ClientSettings.EnablePostBackOnRowClick = false;

                                    ClientSettings.AllowExpandCollapse = false;

                                    ClientSettings.AllowColumnsReorder = true;

                                    ClientSettings.ReorderColumnsOnClient = true;

                                    ClientSettings.ColumnsReorderMethod = GridClientSettings.GridColumnsReorderMethod.Reorder;

 

                                    ClientSettings.Selecting.AllowRowSelect = true;

                                    ClientSettings.Selecting.UseClientSelectColumnOnly = true;

 

                                    ClientSettings.Resizing.AllowResizeToFit = true;

                                    ClientSettings.Resizing.AllowRowResize = true;

                                    ClientSettings.Resizing.EnableRealTimeResize = true;

                                    ClientSettings.Resizing.ResizeGridOnColumnResize = false;

                                    ClientSettings.Resizing.AllowColumnResize = true;

 

                                    MasterTableView.ShowFooter = true;

                                    //MasterTableView.PageSize = 100;

                                    MasterTableView.GroupLoadMode = GridGroupLoadMode.Server;

                                    MasterTableView.ShowHeadersWhenNoRecords = true;

                                    MasterTableView.ShowGroupFooter = true;

                                    MasterTableView.IsFilterItemExpanded = false;

 

                                    MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None;

 

                                    ExportSettings.ExportOnlyData = true;

                                    ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;

                                    ExportSettings.IgnorePaging = true;

                                    MasterTableView.UseAllDataFields = true;

                                    ExportSettings.OpenInNewWindow = true;

Shinu
Top achievements
Rank 2
 answered on 20 Feb 2013
2 answers
143 views
is possible before or after uploading an image, change its dimensions?
Why I load the images into a div via css and I set the background-size, it works on all browsers except on IE8. Here the image does not change size. So I was thinking that it was better to directly change the size of the uploaded file. How can I do?
Fabio Cirillo
Top achievements
Rank 1
 answered on 20 Feb 2013
1 answer
141 views
I am using all Telerik controls, except for asp.net labels, on my web page and the built-in styles look good. The asp.net Labels do not use the same styles as the Telerik controls so they look out of place.

How do I get the asp.net Labels to use the same styles that the Telerik controls are using so they look the same?
Princy
Top achievements
Rank 2
 answered on 20 Feb 2013
7 answers
230 views
Hi

I've tried to use this example Multi-selection radcombobox in a project, but I have run in to a  problem because my case differs a bit from the example code.

My gridview is bound to a custom collection of Chemical objects. The Chemical object have a sub-property ChemicalLabels collection of which each item is bound to a gridcolumn as a commaseparated string.

How can I set the filterexpression in the gridview, so that it only shows object with chemicallabels selected in the radcombobox?

The filterexpression used in the example is: (it[\"ShipCountry\"].ToString().Contains(\"" + item.Text + "\")) but this does not work with my custom collection. 
Eyup
Telerik team
 answered on 20 Feb 2013
2 answers
196 views
Hi,

I want to update the ViewPaths depending on login usernames. So each username will have different ViewPaths location. I tried the following code but it does not not work, the ViewPaths does not change. Please help me.

private void ChangeServerPath(string folderPath)
{
    string[] path = new[] { folderPath };
    fileExplorer.Configuration.ViewPaths = path;
    fileExplorer.Configuration.UploadPaths = path;
    fileExplorer.Configuration.DeletePaths = path;
    fileExplorer.TreeView.DataBind();
    fileExplorer.DataBind();
}

Thank you,
Khoa
Dobromir
Telerik team
 answered on 20 Feb 2013
3 answers
109 views
I've done a lot of searching and have not found exactly my issue. Most of the "multiple rows" involve putting multiple rows in a single column. I need entire second rows.

At a high level this is my dilemma. I get a row of data back. Sometimes this row has warnings associated with it. The business wants those warnings to be displayed in a full row below the row of data. It has to be always visible. In addition we currently use the expander to show additional details about the row.

I've had a few thoughts.on how to do this. The first is to use the OnPreRender method that we are using to add a second header row . I think this might work but I can see it getting pretty ugly since I'll be dealing with the grid as a whole rather than one row at a time. The second idea is to use two DetailTables, one for the warnings and one for the additional detail. The problem with this is that I don't think there would be a way to open one detail table, close the other but have the expander say "closed" so it behaves "normally". My third idea is to somehow leverage a NestedViewTemplate to finagle this. I think this would suffer the same fate as my second idea.

Has anyone done this before? Any advice or help in how I should proceed would be greatly appreciated!

/Rob
Daniel
Telerik team
 answered on 20 Feb 2013
1 answer
105 views
Has there been in progress in addressing the issue with only 30 days showing in March in month view? In 2013 it only shows 29 days in month view. 

http://demos.telerik.com/aspnet-ajax/scheduler/examples/overview/defaultcs.aspx


UPDATE*** After debugging locally I have noticed if you disable the timezone features all the days appear correctly. 
Boyan Dimitrov
Telerik team
 answered on 20 Feb 2013
1 answer
221 views
I am using RadGrid. i am binding another grid , when i click on a row.And selected row color is "#FF9B35". if i click on this row again, it's color should be different and second grid should bind with another or you can say second gird should release.
I an working on its selectedIndexChanged event.  

And the problem is that "if i click already selected row , its selectedIndexChanged event is not firing".

you can see snapshot also.

Please help . Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 20 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?