Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
212 views
Is there any way to get the creation date of a file on upload? The control only exposes the last modified field not the creation date. I don't really understand why this is. Is this at all possible? It is a requirement for a project. Thanks for any help.
Hristo Valyavicharski
Telerik team
 answered on 05 Feb 2015
2 answers
121 views
Hi,

I am using the following RadToolBarSplitButton declaration:

<telerik:RadToolBarSplitButton runat="server" Value="textColor">
                        <Buttons>
                            <telerik:RadToolBarButton runat="server" Text="Black" Value="#text#000000" ImageUrl="Images/Navvia/standard_color_black_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="White" Value="#text#ffffff" ImageUrl="Images/Navvia/standard_color_white_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Dark Red" Value="#text#cc0000" ImageUrl="Images/Navvia/standard_color_dark_red_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Red" Value="#text#ff0000" ImageUrl="Images/Navvia/standard_color_red_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Orange" Value="#text#ffcc00" ImageUrl="Images/Navvia/standard_color_orange_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Yellow" Value="#text#ffff00" ImageUrl="Images/Navvia/standard_color_yellow_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Light Green" Value="#text#99cc66" ImageUrl="Images/Navvia/standard_color_light_green_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Green" Value="#text#009966" ImageUrl="Images/Navvia/standard_color_green_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Light Blue" Value="#text#0099ff" ImageUrl="Images/Navvia/standard_color_light_blue_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Blue" Value="#text#0066cc" ImageUrl="Images/Navvia/standard_color_blue_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Dark Blue" Value="#text#003366" ImageUrl="Images/Navvia/standard_color_dark_blue_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Purple" Value="#text#663399" ImageUrl="Images/Navvia/standard_color_purple_16x16.png">
                            </telerik:RadToolBarButton>
                        </Buttons>
                    </telerik:RadToolBarSplitButton>

When I select an item from the dropdown, the corresponding image is placed in the splitbutton automatically.

I would like to place a "different" image in the splitbutton (not the one from the child item).

I have tried the following in the OnClientButtonClicked event handler, but it does nothing:

var toolBar = $find("<%=RadToolBar1.ClientID%>");
var textColorButton = toolBar.get_items().getItem(16);
textColorButton.set_imageUrl('Images/Navvia/text_color_16x16.png');

I know I have the right index (16), because when I bump it to 17 I see the desired image appear in the next toolbar button.

Any suggestions?

Thanks in advance.

Jim
Nencho
Telerik team
 answered on 05 Feb 2015
1 answer
72 views
Hi all,
I am able to click only on the text area of radcombo box.
But the requirement is it should be easy enough to click on any area in the radcombo box. if i try this in a separate solution it is working. 
but not with in my project.
i am perplexed. please help.

-Thanks
Gayathri
Nencho
Telerik team
 answered on 05 Feb 2015
0 answers
120 views
Dear friends,
How to add Infragistics WebDateChooser inside our RadGrid.

I have added it inside GridTemplateColumn. But that control is not getting enabled in edit mode.

So please help me in this.

Thanks.

Regards,
Rajendran
Raj
Top achievements
Rank 1
 asked on 05 Feb 2015
16 answers
513 views

I have a radgrid that has Hide/Unhide feature via theContextMenu, basically I have EnableHeaderContextMenu="true".When I right click on the Header bar the RadMenu is shown with all myColumns. I can check/uncheck and the column appears and disappears respectively.  Also I have about 20 columns therefore I havea horizontal scrollbar. Finally I have a frozen column, say column 3 (Store Name).

The problem is when I hide column 4 (called Region) and move the scrollbar to the nextcolumn called Status (District will scrolloff the Grid which is GREAT) and scroll back left, than the District column is lost or notdisplayed. If I click the next page button it will reappear but as soon as Imove the scrollbar to right to the next column (Status) and back than theDistrict is lost.

Note: These are some of the column names

Detail, Store, Store Name, Region, District, Status 

Just take the Frozen column online live demo and set EnableHeaderContextMenu="true"  in the MasterTableView smart tag and hide a column after the frozen column. Next just move the scrollbar to right and back to the left to recreate the problem.

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/frozencolumns/defaultcs.aspx


Pavlina
Telerik team
 answered on 04 Feb 2015
3 answers
151 views
I have page named change Summary where I have a radcombobox named " Change Level " .

Currently we are facing a weird issue where in the radcombobox ( " Change Level " ) is getting disabled on click of button save event.I have attached the aspx and .cs file for your reference. During the initial analysis, I found that the items are not getting binded again so I tried to bind the items to the dropdown again.I ran Fiddler and it appears that the items are still being pushed to the page.

Now that I try to look at it more, it appears that they may still be there, but are being moved to different areas of the page and sometimes are not always in the same location. This may explain why it appears that they weren't where they should be before.I do see that a JavaScript error is occurring in the console, but it’s difficult to track back to exactly what might be causing it. It could be something in the Telerik code.

That error may be keeping the drop down from working the way that it should since a JavaScript error can cause other JavaScript after it to not run.
Nencho
Telerik team
 answered on 04 Feb 2015
1 answer
61 views
Hi
I have a scheduler that uses Advanced Edit & Advanced Insert templates.
These forms open exactly as they should and display all controls as they should, but the forms will not close!
It doesn't matter if the Close, Cancel or Save buttons are clicked the forms just hang (with the icon moving).
I've checked everything I can think of but have now run out of options.
Hope someone can help,
Thanks,
Chris
Hristo Valyavicharski
Telerik team
 answered on 04 Feb 2015
3 answers
56 views
Hi, I have a simple page setup for testing an issue I have found. I have found that if you set  EnableHeaderContextMenu on a radgrid it messe with the binding order on the page. For example:

I have a drop down of users. this drop down is used as a controlparameter for the datasource of the radgrid.

on page load, the dropdown is bound, then the selectedvalue is used as a filter in the sqldatasource for the radgrid. this works as expected

the problem arrises if you make one simple change - set  EnableHeaderContextMenu="true" on the radgrid.

with this set, the radgrid is now bound BEFORE the drop down, meaning you either get no data (if you have cancelselectonnullvalue on the data source0 or as in my case ALL of the data (2,000+ rows) instead of the 20 expected fort he selected user.

any ideas on how to fix this without doing a manual databind of the radgrid on page load?
James
Top achievements
Rank 1
 answered on 04 Feb 2015
1 answer
240 views
Dear Friends,

I have a RadGrid with Following Columns

Name     DOB      Address      City       Country

I am populating this grid in JavascriptI didn't get how to populate DOB Date field, City Dropdown and Country Dropdown columns.

In code behind I have ItemCreated Event, But I didn't get how to trigger it from Javascript. Becuase i am binding the grid through Javascript.

So, Please help me to resolve this issue.


Regards,
Rajendran
Konstantin Dikov
Telerik team
 answered on 04 Feb 2015
1 answer
80 views
I'm trying to add a label and checkbox after the Page Size drop down in the standard pager. However, when I do this:

protected void AssetGrid_OnItemEvent(object sender, GridItemEventArgs e)
{
    if (e.EventInfo is GridInitializePagerItem)
    {
        var showAllLabel = new Label {Text = "Show All"};
        var showAllCheckBox = new CheckBox();
 
        (e.Item as GridPagerItem).PagerContentCell.Controls.Add(showAllLabel);
        (e.Item as GridPagerItem).PagerContentCell.Controls.Add(showAllCheckBox);
    }
}

The result is the controls above the whole pager. 
Eyup
Telerik team
 answered on 04 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?