Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
210 views
Hello,

I am tring to create web site sample like drag and drop and i am using Rad Dock control.....

I am using PortalCS sample given by telerick that load dock dynamically and then load webusercontrol into dynamically created dock.

I have one webusercontrol that has Bar Chart (RadChart). When i click on bar RadChart1_Click event is not fire.

I want to handle this click event.

Again Dock and WebUsercontrol is created dynamically.

Thanks in advance for any kind of help.
Sophy
Telerik team
 answered on 06 Jun 2008
1 answer
236 views
hi
am facing problem in custom paging of grid.am returning 5 rows frm stored proc
and my page size of grid is 5 .virtual count am setting to 2 from database (number of records from that particular table is 9.)
problem is that my grid is not displaying the pager template
below is the code

<

radG:RadGrid ID="rgDepartmentList" runat="server" Width="99%" AllowPaging="True" AllowCustomPaging="true" OnPageIndexChanged="rgDepartmentList_PageIndexChanged"

AllowSorting="True" ShowStatusBar="True" GridLines="None" AutoGenerateColumns="False" PageSize="5">

<MasterTableView CommandItemDisplay="Top" DataKeyNames="dept_id" RowIndicatorColumn-Display="false">

<NoRecordsTemplate>

<table width="99%" align="center">

<tr>

<td>

No record found.

</td>

</tr>

</table>

</NoRecordsTemplate>

<RowIndicatorColumn>

<HeaderStyle Width="20px" />

</RowIndicatorColumn>

<ExpandCollapseColumn Resizable="False" Visible="False">

<HeaderStyle Width="20px" />

</ExpandCollapseColumn>

<Columns>

<radG:GridTemplateColumn HeaderText="Edit" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="30px"

ItemStyle-Width="30px">

<ItemTemplate>

<img onclick=" NavigateToEdit('<%# Eval("dept_id") %>','<%# Eval("dept_active") %>','<%# Eval("dept_name") %>');"

style="cursor: pointer;" alt="Edit" src="../../../Images/common/edit.gif" />

</ItemTemplate>

</radG:GridTemplateColumn>

<radG:GridButtonColumn HeaderText="Delete" ButtonType="ImageButton" CommandName="Delete"

ConfirmText="Do you want to delete this record?" ImageUrl="../../../Images/common/DeleteImage.JPG"

Text="Delete" UniqueName="column1">

<HeaderStyle HorizontalAlign="Center" Width="40px" />

<ItemStyle HorizontalAlign="Center" Width="40px" />

</radG:GridButtonColumn>

<radG:GridTemplateColumn HeaderText="Active">

<ItemTemplate >

<asp:CheckBox ID="chkbox" runat="server" Checked='<%# Bind("dept_active") %>' />

</ItemTemplate>

</radG:GridTemplateColumn>

<radG:GridBoundColumn HeaderText="Department&nbsp;Name" DataField="dept_name" UniqueName="dept_name">

</radG:GridBoundColumn>

</Columns>

<CommandItemTemplate>

<table class="CommandItemTemplate" cellpadding="0" cellspacing="0" width="100%">

<tr>

<td>

<table cellpadding="0" cellspacing="0">

<tr>

<td>

&nbsp;<img alt="" src="../../../Images/common/register.gif" /></td>

<td>

<a id="A1" onclick="NavigateToAdd();" href="#">Add Department</a>

</td>

<td>

&nbsp;</td>

<td>

&nbsp;</td>

<td>

<img src="../../../Images/common/button_refresh.gif" alt="" />

</td>

<td>

<asp:LinkButton ID="lbtnRefresh" Text="Refresh" runat="server" CommandName="Refresh"

onmouseover="OnRefreshCommandMouseOver();" onmouseout="OnRefreshCommandMouseOut();"></asp:LinkButton>

</td>

<td width="*">

</td>

</tr>

</table>

</td>

</tr>

</table>

</CommandItemTemplate>

</MasterTableView>

<PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>

<ClientSettings EnableClientKeyValues="True" AllowColumnsReorder="true" ApplyStylesOnClient="true"

ReorderColumnsOnClient="True">

<ClientEvents OnRowClick="" OnRowSelected="RowSelected" />

<Selecting AllowRowSelect="true" />

<Resizing AllowColumnResize="true" AllowRowResize="true" ResizeGridOnColumnResize="false"

ClipCellContentOnResize="true" EnableRealTimeResize="false" />

</ClientSettings>

</

radG:RadGrid>


Code behind is

Private

Sub LoadGrid(ByVal currentindex As Integer)

Dim totalrecords As Integer = 0

Dim ds As New DataSet

ds = SFSetupDepartments.GetDepartmentsByPage((currentindex + 1), 5, totalrecords)

With rgDepartmentList

.MasterTableView.VirtualItemCount = (totalrecords / .PageSize)

.DataSource = ds.Tables(0)

.DataBind()

End With

End Sub

 

Please let me know the same as early as possible ? thanks guys

Sebastian
Telerik team
 answered on 06 Jun 2008
7 answers
293 views
There seems to be a problem with AutoCompleteType = None for RadTextBox.

I'm using Visual Web Developer 2008 and RadControls for ASP.NET AJAX 2008.1.515 in IE 8 (with Emulate IE7 on).

When I set the AutoCompleteType to None, there's no apparent autocomplete function at all in either IE or Safari. Firefox does however show the autocomplete entries.

If I set AutoCompleteType to one of the preset values, it works as expected.

- Simon
Missing User
 answered on 06 Jun 2008
3 answers
110 views
Hi,

How can i put a customized image to a serie depending on the serie value?

Thanks,

Capa
Giuseppe
Telerik team
 answered on 06 Jun 2008
2 answers
146 views
I'm trying to build color coded menus based on the color of the root menu item. ie:
portal.chaminade-stl.com


I've played with the skin provider and can do something like:

temp.radMenuItem.CssClass = temp.radMenuItem.CssClass & "TAB_CSS_" & .TabID

but this applies the style to the <a> tag not the <li>
 
Is there a way to set the root menu css programatically?

Michael Cunningham
Top achievements
Rank 1
 answered on 06 Jun 2008
3 answers
243 views
Basic question, and apologies if this in answered somewhere and I just missed it!

Which ASP.NET AJAX version(s) can be used with the RadControls for ASP.NET AJAX?

The fact sheet (http://www.telerik.com/support/requirements-and-compliance/system-requirements.aspx) states only that "It is a prerequisite to have ASP.NET AJAX installed when using Telerik RadControls for ASP.NET AJAX."

Currently ASP.NET AJAX is at 3.5?? I believe. Our company is still using the 1.0 version. I'd like to upgrade the control suite, but need to be sure it will fully function with the older AJAX version, or at least be aware of the item(s) that might not be functional in the older version so I can make an informed decision.

Thanks! :)
Brad
Top achievements
Rank 2
 answered on 05 Jun 2008
2 answers
98 views
Hi, I have created some custom buttons on the editor's toolbar and have set the style for their images in the containing aspx page like this for example:

.rade_toolbar.Default .ProductLink
{
     background-image: url(/images/Controls/RadEditor/buttonProductLink.gif);
}


This works fine, however, after changing the editors skin from Default to WebBlue and updating the declaration in my style to instead be:

.rade_toolbar.WebBlue .ProductLink

the image for the button fails to load when the editor is displayed. I need to use this WebBlue skin and need to get the images to display for my custom buttons. Any ideas?

Paul.
Paul
Top achievements
Rank 1
 answered on 05 Jun 2008
2 answers
127 views
Hi Telerik Team,

I have a problem with styling skin.
I will describe my problem briefly, but first of all I'll show you what I want to achive.
http://images33.fotosik.pl/275/a6f96f104af5b936.jpg
Top picture shows what I have and the bottom shows what I want to have.
I just want to emphasize some cells borders by changing its default color.


This is my aspx code:
<telerik:RadScheduler ID="RadScheduler1" runat="server"
DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"
ShowFooter="False" ShowHeader="False" TimeLabelRowSpan="4" Culture="Polish (Poland)"
Width="99%" Skin="Office2007" SelectedView="WeekView"
FirstDayOfWeek="Monday" LastDayOfWeek="Friday"
MinutesPerRow="15" ShowAllDayRow="false" EnableCustomAttributeEditing="false"
AllowDelete="false" AllowEdit="false" AllowInsert="false" OverflowBehavior="Expand">
<WeekView ColumnHeaderDateFormat="dddd" DayEndTime="21:00:00"
ReadOnly="True" />
<AppointmentTemplate>
<%# Eval ("Subject") %>
</AppointmentTemplate>
</telerik:RadScheduler>

And css:

.RadScheduler .rsContent .rsHoursTable th
{
font-size:10px;
height:11px;
line-height:11px;
}

.rsContent .rsContentTable .rsCell
{
font-size:10px;
height:11px;
line-height:11px;

}

.rsHoursContent
{
text-align:center;
font-size:12px;
height:32px;
}

And also:
Is there any possible way to change Hours Content from "08:00" to "08:00-09:00" and so on ?

Thanks in advance for your reply
Cheers
John
John
Top achievements
Rank 1
 answered on 05 Jun 2008
19 answers
312 views
Hi Everyone,

I recently upgraded from 2008.1.415.35 to 2008.1.515.35 (SP1); everything appeared fine until I tried to publish my latest changes to our server.  Published version does not apply Skins that are contained in the Telerik.Web.UI resource file.

If you are having this issue, just revert back to version 2008.1.415.35.  I’m sure telerik will come up with a fix soon…

Cheers,
Brad
Elmar
Top achievements
Rank 1
 answered on 05 Jun 2008
1 answer
236 views
Hello,
I have implemented a control with RadScheduler and a custom data source, and so far it works.

I have the following problem:
1) I have implemented a ContextMenu, that calls my own page that in turn modifies the table (appointmet) that feeds the custom data source. 
2) This page is loaded as a modal form, and when I close it I force a postback.
3) The problem is that the postback, reloads "MyDbSchedulerProvider" but it does not refresh the data.  So, if I change the dates using my form, it does not reflect in the scheduler until a switch views or click on advance month (if in the monthly view)

I wonder, is there any way to manually call the GetAppointments method in MyDbSchedulerProvider?

Thanks,

Antonio.
T. Tsonev
Telerik team
 answered on 05 Jun 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?