Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
160 views
Hi,

I've just started up a new web project using the Rad Controls template.
In the wizard, I chose the black skin.

I cannot see the folder in solution explorer for that skin or any style sheets.
I have deduced that the skin is embedded as a web resource.

What options to I have for styling my site? With the skin embedded away, there's no transparency of styles. I'm not sure how to work in with this "styling framework".
Yana
Telerik team
 answered on 28 Oct 2010
1 answer
190 views
code is below. it works fine for edit, but errors on insert when it tries to bind the date control. text control work fine.
  

<EditFormSettings InsertCaption="Add new Comment" CaptionFormatString="Edit Comment: {0}"
                                    CaptionDataField="CultivarCommentsID" EditFormType="Template" ColumnNumber="2">
                                    <FormTemplate>
                                        <table id="Table1" cellspacing="1" cellpadding="1" border="0">
                                            <tr>
                                                <td>
                                                    Date:
                                                </td>
                                                <td>
                                                    <telerik:RadDatePicker Skin="Forest" ID="dtpCommentDate" runat="server" SelectedDate='<%# Bind( "Date" ) %>'></telerik:RadDatePicker>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    User:
                                                </td>
                                                <td>
                                                    <telerik:RadTextBox Skin="Forest" ID="txtCommentUser" runat="server" Text='<%# Bind( "UserName") %>' Width="325" TabIndex="1">
                                                    </telerik:RadTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Comment:
                                                </td>
                                                <td>
                                                    <telerik:RadTextBox Skin="Forest" ID="txtComment" runat="server" Text='<%# Bind( "Comments") %>' Width="325" TabIndex="2" Rows="6" TextMode="MultiLine">
                                                    </telerik:RadTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                        <table style="width100%">
                                            <tr>
                                                <td align="right" colspan="2">
                                                    <asp:Button ID="Button1" Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Insert", "Update") %>'
                                                        runat="server" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'>
                                                    </asp:Button>&nbsp;
                                                    <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel">
                                                    </asp:Button>
                                                </td>
                                            </tr>
                                        </table>
                                    </FormTemplate>
                                </EditFormSettings>
Princy
Top achievements
Rank 2
 answered on 28 Oct 2010
4 answers
111 views
I have a RadGrid with a GridDateTimeColumn.  In the RadGrid1_ItemDataBound event handler, I am configuring the DatePicker.ShareCalendar.  The markup for the grid and the event handler are shown at the end of the post.

Note that I am setting the datepicker.SharedCalendar.FastNavigationStep = 12, so that the FastNavigation should jump by 12 months.

However, it still jumps by the default 3 months.  The FastNavigationStep property update is not taking.  Incidentally, the FastNavigationPreviousToolTip and FastNavigationNextToolTip are not taking either.

Any help would be appreciated.

Code:

         <telerik:RadGrid ID="grdFamily" runat="server" DataSourceID="ldsUserFamilyMembers" Skin="Vista"    Width="500px"
                 AutoGenerateColumns="false" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"
                    GridLines="None" PageSize="5" OnItemDataBound="RadGrid1_ItemDataBound"
                    AllowPaging="True"  >
                   
                    <MasterTableView DataKeyNames="pk_user_family_member"  TableLayout="Fixed" CommandItemDisplay="Top"  DataSourceID="ldsUserFamilyMembers" Width="500px">
                        <Columns>
                        ...
                        <telerik:GridDateTimeColumn  DataField="birth_date" PickerType="DatePicker" DataFormatString="{0:MMM dd, yyyy}" HeaderText="Birth Day" >
                            </telerik:GridDateTimeColumn>
                       ...

                        </Columns>
                        <EditFormSettings>
                            <EditColumn ButtonType="ImageButton" />
                        </EditFormSettings>
                    </MasterTableView>
                </telerik:RadGrid>

 protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem && e.Item.IsInEditMode)
            {
                GridEditableItem item = (GridEditableItem)e.Item;
                RadDatePicker datepicker = (RadDatePicker)item["DateTimeColumn"].Controls[0];
                datepicker.SharedCalendar.FastNavigationStep = 12; 
                datepicker.SharedCalendar.FastNavigationNextToolTip = "Next Month";
                datepicker.SharedCalendar.FastNavigationPrevToolTip = "Previous Month";
            }
        }

Barry
Top achievements
Rank 1
 answered on 27 Oct 2010
2 answers
83 views
Hi Guys,

I am trying to disable a column when I click on "Edit" command. In my grid, the Edit command is autogenerated and columns are also autogenerated.

I want to disable a column when I click on "Edit" link. However, the column remains enabled and editable. Can anyone please let me know what am I doing wrong. Following is the code:

 

 

protected void RadGrid_EditCommand(object sender, GridCommandEventArgs e)

{

 

 

    GridDataItem dataItem = e.Item as GridDataItem 

 

 

    var column = RadGrid.MasterTableView.AutoGeneratedColumns.First(i => i.HeaderText == "Name");  

    dataItem[column].Enabled = 

 

false;  

 

 

}

 

 

Bhavik
Top achievements
Rank 1
 answered on 27 Oct 2010
0 answers
61 views
Hi,
I am using a telerik combobox, which am binding at the code behind using an SP.
When I use this attribute "ShowMoreResultsBox" , and on rendering  when i click on the button that appears at the foot of the drop down of  the combobox as a result of adding this attribute , the number of items in the combobox increase as the items get repeated as you click 
 Pl suggest.
rajani
Top achievements
Rank 1
 asked on 27 Oct 2010
0 answers
94 views
Hi,
Me again, as I say, Am new to both asp.net and Telerik.
I have added a user control in the telerik panel bar.
The user control contains many text boxes and dropdows. I have not set the tab order as the controls are placed in order using <table>
I guess this should provide proper tab order but the tab order is not retained.
The <td> in table were chaged many a times for the UI changes.
I tried giving tabindex to the controls but of no use. Pl suggest as to how to retain the tab order. I searched in the net but dint get a satisfactory solution
rajani
Top achievements
Rank 1
 asked on 27 Oct 2010
2 answers
615 views
I have a textbox where I need to accept a System ID.  The System ID is 6-10 numeric digits.  I do NOT want any "group separators" between groupings.  How do I do it?  It won't let me set as blank.  The largest I'm allowed to set group size is 9, which is not big enough to always hide it.
msigman
Top achievements
Rank 2
 answered on 27 Oct 2010
1 answer
54 views
Hi,

Telerik chart comtrol is only loading , if we put our web application in default application pool.
otherwise, chart is not loading.

If we, create an new IIS pool [ integrated or classic] , then chart is not loading.

Telerik Chart is not loading other than if we put our apps in other application pool.


Please help.

Regards
Mainak
Ves
Telerik team
 answered on 27 Oct 2010
4 answers
116 views
Hello,

I'm setting up the grid to bind client-side.  I'm also creating my columns programmatically following all of your documentation.  It's working okay so far except for the hyperlink column.  I'm thinking it's because the hyperlink column is using a data format string?  Basically none of the column cells get populated.  Is this a known issue?  I also haven't tried many other column types, just the Bound and the ClientSelect - those are working fine.

Any insight is appreciated!
Dasha
Top achievements
Rank 1
 answered on 27 Oct 2010
1 answer
126 views
I have a RadGrid and have two columns, Start Date and End Date, that displays in standard MM/dd/yyyy format but I need the filtering to be in yyyy/MM/dd format. Otherwise, something like 12/08/2009 evaluates as greater than 04/01/2010 (because it will compare the month values first, not the year values).

I've looked through several different demos/examples and cannot find the right mix.

Also, I do not want the DatePicker control to be shown in the filter. I want to use only a textbox with the filter icon visible next to it.

Here is the relevant portion of my grid:

<telerik:RadGrid ID="radgrdMyPrograms" runat="server" Width="100%" DataSourceID="ldsProgramsAllByUserName" EnableLinqExpressions="true"
    EnableEmbeddedSkins="false" Skin="DMCpro" ShowStatusBar="true"
    AutoGenerateColumns="false" AllowFilteringByColumn="true" AllowPaging="true" AllowSorting="true" PageSize="20" >
    <ClientSettings EnableRowHoverStyle="true" Selecting-AllowRowSelect="true" Scrolling-AllowScroll="true" Scrolling-ScrollHeight="600px" Scrolling-UseStaticHeaders="true" />
    <GroupingSettings CaseSensitive="false" />
    <MasterTableView TableLayout="Fixed" DataKeyNames="ProgramID,ProgramName,ClientId,Client" >
        <HeaderStyle HorizontalAlign="Left" />
        <ItemStyle Font-Size="Small" Wrap="false" />
        <AlternatingItemStyle Font-Size="Small" Wrap="false" />
        <Columns>
            <telerik:GridHyperLinkColumn HeaderText="Program #" DataTextField="ProgramID" SortExpression="ProgramID" UniqueName="ProgramID" 
                HeaderStyle-CssClass="radGridViewHeader" HeaderStyle-Width="80px" HeaderStyle-HorizontalAlign="Left" AllowFiltering="false" />
            <telerik:GridBoundColumn HeaderText="Program" DataField="ProgramName" SortExpression="ProgramName" UniqueName="ProgramName"
                HeaderStyle-CssClass="radGridViewHeader" HeaderStyle-Width="150px"
                AutoPostBackOnFilter="true" ShowFilterIcon="false" FilterControlWidth="150px" />
            <telerik:GridBoundColumn HeaderText="AE" DataField="AEName" SortExpression="AEName" UniqueName="AE"
                HeaderStyle-CssClass="radGridViewHeader" HeaderStyle-Width="35px" AllowFiltering="false" />
            <telerik:GridDateTimeColumn HeaderText="Start Date" DataField="StartDate" SortExpression="StartDate" UniqueName="StartDate"
                HeaderStyle-CssClass="radGridViewHeader" HeaderStyle-Width="95px" PickerType="None"
                AutoPostBackOnFilter="true" FilterControlWidth="65px" />
            <telerik:GridDateTimeColumn HeaderText="End Date" DataField="EndDate" SortExpression="EndDate" UniqueName="EndDate"
                HeaderStyle-CssClass="radGridViewHeader" HeaderStyle-Width="95px" PickerType="None"
                AutoPostBackOnFilter="true" FilterControlWidth="65px" />


BTW, I tried using DataFormatString = "{0:yyyy/MM/dd}" in the GridDateTimeColumns but that has no effect.  I've also tried using just GridBoundColumn instead of GridDateTimeColumn and cannot get it to work either.

How can I accomplish being able to filter in yyyy/MM/dd format?

Thanks.
Jerry T.
Top achievements
Rank 1
 answered on 27 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?