Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
242 views
Hello Team,

I am using Radgrid, I want All buttons inside grid as pushbutton with image inside it.


<telerik:GridTemplateColumn AllowFiltering="false">
                                                                   <ItemTemplate>
                                                                       <asp:ImageButton CommandName="Edit" runat="server" Text="Edit" ImageUrl="~/Images/Edit.png"></asp:ImageButton>
                                                                       <asp:LinkButton CommandName="Edit" runat="server" Text="Edit"></asp:LinkButton>
                                                                   </ItemTemplate>
                                                               </telerik:GridTemplateColumn>

I have placed template column for Edit button as above. but i need pushbutton with all skin changes and an image inside button at left side and text as right side.

Can any one help me out?

Thanks and Regards,
Ruchi Patel
Ruchi
Top achievements
Rank 1
 answered on 26 Feb 2015
1 answer
836 views
hi

How do i do a multiple if condition on a button text property?

This is my sample code and i could not get it to work.

Text='<%# If(Eval("status") = "Yes", "OK", else If(Eval("status") = "Pending", "Pending", "No"))%>'

Thanks a lot
Danail Vasilev
Telerik team
 answered on 26 Feb 2015
3 answers
52 views
Hi

This is my code (in a with statement)

.DayStartTime = cfg.DayStartTime
.DayEndTime = cfg.DayEndTime
.WorkDayStartTime = cfg.DayStartTime
.WorkDayEndTime = cfg.DayEndTime

Both cfg.DayStartTime and cfg.DayEndTime are Timespans

The .DayStartTime works as expected, but the .DayEndTime always shows 1800.

I currently have this in a function that gets the data in the PageLoad, but I have tried it in the OnPreRender and neither works the Scheduler defaults to 0800 & 1800.

Andy
Boyan Dimitrov
Telerik team
 answered on 26 Feb 2015
1 answer
65 views
I am added RadTreeNodes directly to the control. They are added like this...

new RadTreeNode(item.Name, item.Path)
{
    ImageUrl = GetNodeImage(item.TypeName),
    ToolTip = item.Name,
    PostBack = false
}
I added PostBack and in the past NavigateUrl = "#", but with no result. The message telling me that an attempt to navigate away is happening in Chrome. As a side note, if I do ever click on the "Ok" button nothing happens.
Ivan Danchev
Telerik team
 answered on 26 Feb 2015
3 answers
81 views
Hi,

I having trouble getting a Combobox to display its checked items when the page first loads.

There is enough space to fit all the items but it still reverts to the "# items checked". If I were to uncheck and then recheck one of the items, the items are displayed correctly. It is only when the page initially loads that the combobox only shows how many are checked, even when there is ample room.

Is there any way to force display of items when the page loads, but still reverts back to the number of items checked with the space is filled?

Any help is greatly appreciated,
Thanks.

Aneliya Petkova
Telerik team
 answered on 26 Feb 2015
1 answer
74 views
i want Grid DataSource When changes Context Menu Change Server-Side....

how to??

​
Eyup
Telerik team
 answered on 26 Feb 2015
3 answers
91 views
Hello,

This afternoon, I have been working with Visual Studio 2010 and Telerik controls.

My windows 8.1 computer suddenly became rather unstable - this normally happens when there are Windows Updates to be applied.
So I rebooted the machine and allowed the updates to be installed.

Since doing this, Telerik control databinds have become INCREDIBLY slow. For example, the following code:

DateTime startDate = new DateTime(viewDateStart.Year, viewDateStart.Month, 1);
DateTime endDate = startDate.AddMonths(1);

while ((int)startDate.DayOfWeek != 1) startDate = startDate.AddDays(-1);        // 0 = sunday
while ((int)endDate.DayOfWeek != 0) endDate = endDate.AddDays(1);               // 0 = sunday

while (startDate <= endDate) {
       dayList.Add(startDate);
       startDate = startDate.AddDays(7);
}

rptCalendar.DataSource = dayList;
rptCalendar.DataBind();

At the point of the data bind, the dayList item only contains 5 records. It takes a good 5 to 10 seconds to step over the DataBind() statement.

Similarly, RadGrid is also taking inordinate amounts of time to DataBind(). The data in this instance comes from a Linq call, but this too is virtually instant.

It seems that a Windows update has somehow crippled Telerik control data binding.

Has anyone heard of this happening ?



Eyup
Telerik team
 answered on 26 Feb 2015
1 answer
66 views
Hello,
I have EditMode="Batch". In the grid I have a template column. In EditItemTemplate there is a RadComboBox.
I would like to add RadComboBoxItems to the RadComboBox. How do I find the RadComboBox in EditItemTemplate server side?
Eyup
Telerik team
 answered on 26 Feb 2015
1 answer
119 views
I am adding a tree of RadTreeNodes directly to the control and when node is click it attempts to navigate.

new RadTreeNode(item.Name, item.Path)
{
    ImageUrl = GetNodeImage(item.TypeName),
    ToolTip = item.Name,
    PostBack = false
}

I attempted setting PostBack to false, and in the past setting NavigateUrl to "#" based on another thread. These have no yielding any help to prevent the message (that I know at least shows in Chrome).
Ivan Danchev
Telerik team
 answered on 25 Feb 2015
1 answer
115 views
Hi,

I want to disable the following properties
AllowInsert
AllowEdit
AllowDelete

However, I have got a grid where you can take the appointments and drop onto the scheduler control. Therefore, I have to enable some properties to succeed the action.  Any possible way to disable them meanwhile able to use the drag and drop option ?
Thank you
Nencho
Telerik team
 answered on 25 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?