Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
153 views
is there a way to modify the width ShowChooser smarttag?  it doesn't allow a style tag or have a width tag.   also the outside width added to the table doesn't affect it, so I'm guessing it's internal.

It's taking up about 2x the space it needs (over two times as wide as the internal text of the control is), and I need to have that space....

is this the route for me?  a custom 'chooser'? or can I play nicely with the smarttag?

from this forum read:
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/custom-skins-for-radcontrols.aspx
Dimo
Telerik team
 answered on 07 Jan 2010
1 answer
78 views
I want to find out if a column is partially displayed on screen when a cell on the column gets focus if partially displayed I want to autoscroll the grid horizontally and bring the column in question into full view. Any tips tricks I can try out?

Mon NN
Yavor
Telerik team
 answered on 07 Jan 2010
5 answers
152 views
I am running asp.net 3.5 and I am trying to add a Telerik Date Picker.  I am registering the Telerik.Web.UI.  I only have this section of code on the page that is using Telerik (it is being used twice as I'm also wanting to add an end date).

        <telerik:RadDatePicker ID="RDPBeginDate" runat="server"
            <Calendar> 
                <SpecialDays> 
                    <telerik:RadCalendarDay Repeatable="Today" ItemStyle-CssClass="rcToday" /> 
                </SpecialDays> 
            </Calendar> 
        </telerik:RadDatePicker> 

I have tried wrapping it in a RadControlBlock to no avail.  Any help is appreciated.
Dimo
Telerik team
 answered on 07 Jan 2010
4 answers
194 views
I have a custom InlineInsertTemplate and a custom InlineEditTemplate that I am trying to use custom attributes with.

I have 2 additional fields that I am trying to include in the Appointment declared in code behind as
RadScheduler1.CustomAttributeNames = new string[] {"factorName", "Notes"};

These are Binded in the custom templates using the following syntax

<

 

asp:TextBox ID="EditTxtNotes" runat="server" TextMode="MultiLine" Rows="5" Width="100%" Text='<%# Bind("Notes") %>'></asp:TextBox>

 


Now I am trying to save the appointment by handling the AppointmentCommand event use the following syntax.

newProjection.Notes = e.Container.Appointment.Attributes[

"Notes"];

The attribute always returns an empty string. In fact the Attributes.Count of the Appointment is 0.

What am I doing incorrectly?

 

Amit Vaidya
Top achievements
Rank 1
 answered on 07 Jan 2010
3 answers
134 views
Hi,
  I am using a RadGrid with a MasterTable and 2 Detail Tables. I am binding the detail table client side using the following javascript code.
function HierarchyExpanding(sender, args) {  
 
    detailTableView = sender.get_detailTables()[2];  
    WebService.GetDetails(updateDetailTable);  
 
      
 
}  
 
function updateDetailTable(result) {  
    alert("Updating");  
    alert(result.length);  
    alert(result[0].DealId);  // result is a C# List<CustomClass>
     
    detailTableView.set_dataSource(result);  
    detailTableView.dataBind();  
      
      

But the detail table comes blank. Please let me know if I am missing something.

Thanks
Satyaprakash J




Tsvetoslav
Telerik team
 answered on 07 Jan 2010
1 answer
159 views

 

Hi there,

1) Iam using a Radgrid which consists of '5' image columns on page load it is getting loaded fine but when I perform any Filter option which is provided with grid it is taking time for getting loaded for image columns remaining columns load quickly same with page index also is not getting loaded it is getting loaded after any event is performed like button click i want to get the page updated quickly without any event firing.

2) And Iam facing another problem with grouping it is grouping properly when i drag some times it is grouped but some times not in this also image columns are not getting loaded when iam ungrouping it is throwing an exception.

3) I want Tooltip for Radgrid for all columns It should display according to database.

I need to do ASAP please any help would be appreciated
Here's my code

 

 

 
Here's my code   
------------------------------------------------------------------------------------------   
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="uclTaskGrid.ascx.cs" Inherits="uclTaskGrid" %>   
<%@ Register assembly="msgBox" namespace="BunnyBear" tagprefix="cc2" %>   
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>   
<script language="javascript" type="text/javascript">   
function FireMyIASGroupPrint(myURL){   
if(myURL)   
{   
window.open("RejectTaskStatus.aspx?taskID=" + myURL ,'_blank','left = 300top=150width=600height=200,menubar=no , scrollbars=noresizable=no');   
}   
}   
</script>   
<asp:Timer ID="Timer1" runat="server" ontick="Timer1_Tick" Interval="12000">   
</asp:Timer>   
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">   
<tr>   
<td valign="top" height="6"></td>   
</tr>   
<tr>   
<td height="30" align="left">&nbsp;&nbsp;&nbsp;<b>Project name</b>&nbsp;<asp:DropDownList ID="ddlProjects" CssClass="text" runat="server" AutoPostBack="True"   
onselectedindexchanged="ddlProjects_SelectedIndexChanged">   
</asp:DropDownList>   
</td>   
<td align="right">   
<table width="160" border="0" cellspacing="0" cellpadding="0">   
<tr>   
<td>   
<asp:UpdatePanel ID="UpdatePanel2" runat="server">   
<ContentTemplate>   
<asp:Label ID="lblRecCount" CssClass="LabelText" runat="server"   
Text="Total Record(s): 14"></asp:Label>   
</ContentTemplate>   
</asp:UpdatePanel>   
&nbsp;&nbsp;&nbsp;</td>   
</tr>   
</table>   
</td>   
</tr>   
<tr>   
<td valign="top" colspan="2" height="5">   
&nbsp;</td></tr>   
<tr>   
<td valign="top" align="center" colspan="2">   
<table cellpadding="0" cellspacing="0" border="0" width="98%">   
<tr>   
<td align="left" valign="top">   
<asp:UpdatePanel ID="UpdatePanel1" runat="server">   
<Triggers>   
<asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />   
</Triggers>   
<ContentTemplate>   
<telerik:RadGrid ID="gviewTasks" runat="server" AllowFilteringByColumn="True"   
AllowPaging="True" AllowScroll="True" EnableVirtualScrollPaging="True"   
PageSize="10" AllowSorting="True" GridLines="None" ShowGroupPanel="True"   
style="top: 300px; left: 10px;"   
AutoGenerateColumns="False" Skin="Vista" onitemcommand="gviewTasks_ItemCommand"   
onitemdatabound="gviewTasks_ItemDataBound" AutoGenerateHierarchy="True" AllowCustomPaging="True"   
>   
<MasterTableView>   
<columns>   
<telerik:GridBoundColumn DataField="TaskID" HeaderText="ID" />   
<telerik:GridBoundColumn DataField="Resource Name" HeaderText="Resource Name"   
HeaderStyle-Width="80px" >   
<HeaderStyle Width="80px" />   
</telerik:GridBoundColumn>   
<telerik:GridTemplateColumn HeaderText="Task Name" AllowFiltering="false" Groupable="false" HeaderStyle-Width="50px" >   
<ItemTemplate>   
<asp:LinkButton ID="lnkTask" runat="server" CommandName="select"></asp:LinkButton>   
</ItemTemplate>   
<HeaderStyle Width="50px" />   
</telerik:GridTemplateColumn>   
<telerik:GridBoundColumn DataField="Task Name" HeaderText="TaskName" />   
<telerik:GridBoundColumn DataField="Description" HeaderText="TaskDescription"   
HeaderStyle-Width="80px" >   
<HeaderStyle Width="80px" />   
</telerik:GridBoundColumn>   
<telerik:GridTemplateColumn HeaderText="Phase" HeaderStyle-Width="50px" AllowFiltering="false" Groupable="false" >   
<ItemTemplate>   
<asp:Label ID="lblphase" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Phase") %>'></asp:Label> &nbsp;   
</ItemTemplate>   
<HeaderStyle Width="50px" />   
</telerik:GridTemplateColumn>   
<telerik:GridBoundColumn DataField="Project Name" HeaderText="Project"   
HeaderStyle-Width="50px" AllowFiltering="false" >   
<HeaderStyle Width="50px" />   
</telerik:GridBoundColumn>   
<telerik:GridBoundColumn DataField="AssignedBy" HeaderText="Assigned By"   
HeaderStyle-Width="75px" >   
<HeaderStyle Width="75px" />   
</telerik:GridBoundColumn>   
<telerik:GridBoundColumn DataField="Estimated Hours" HeaderText="ETA [Hrs]"   
HeaderStyle-Width="50px" >   
<HeaderStyle Width="50px" />   
</telerik:GridBoundColumn>   
<telerik:GridBoundColumn DataField="Date" HeaderText="Date" HeaderStyle-Width="75px" >   
<HeaderStyle Width="75px" />   
</telerik:GridBoundColumn>   
<telerik:GridBoundColumn DataField="Status" HeaderText="Status" HeaderStyle-Width="75px" >   
<HeaderStyle Width="75px" />   
</telerik:GridBoundColumn>   
<telerik:GridBoundColumn DataField="Approve Status" HeaderText="Approval Status"   
HeaderStyle-Width="75px" >   
<HeaderStyle Width="75px" />   
</telerik:GridBoundColumn>   
<telerik:GridTemplateColumn HeaderText="Approve" AllowFiltering="false" Groupable="false" HeaderStyle-Width="40px" >   
<ItemTemplate>   
<asp:ImageButton ID="imgbtnactivate" runat="server" ImageUrl="~/images/activate.gif" CommandName="Approve" OnClientClick="return confirm('Are you sure you want to approve this task?');"></asp:ImageButton>   
</ItemTemplate>   
<HeaderStyle Width="40px" />   
</telerik:GridTemplateColumn>   
<telerik:GridTemplateColumn HeaderText="Reject" AllowFiltering="false" Groupable="false" HeaderStyle-Width="30px" >   
<ItemTemplate>   
<asp:ImageButton ID="imgbtndeactivate" runat="server" ImageUrl="~/images/de-activate.gif" CommandName="Reject" OnClientClick="return confirm('Are you sure you want to reject this task?');"></asp:ImageButton>   
</ItemTemplate>   
<HeaderStyle Width="30px" />   
</telerik:GridTemplateColumn>   
<telerik:GridTemplateColumn HeaderText="Forward" AllowFiltering="false" Groupable="false" HeaderStyle-Width="40px">   
<ItemTemplate>   
<asp:ImageButton ID="imgforward" runat="server" ImageUrl="~/images/forward.gif" CommandName="Select1"></asp:ImageButton>   
</ItemTemplate>   
<HeaderStyle Width="40px" />   
</telerik:GridTemplateColumn>   
<telerik:GridBoundColumn DataField="ResourceID"/>   
<telerik:GridTemplateColumn HeaderText="Delete" AllowFiltering="false" Groupable="false" HeaderStyle-Width="30px">   
<ItemTemplate>   
<asp:ImageButton ID="imgdelete" runat="server" ImageUrl="~/images/delete-icon.gif" CommandName="deleteTask" OnClientClick="return confirm('Are you sure you want to delete the task?');"></asp:ImageButton>   
</ItemTemplate>   
<HeaderStyle Width="30px" />   
</telerik:GridTemplateColumn>   
</columns>   
</MasterTableView>   
<ClientSettings EnableRowHoverStyle="true">   
<Selecting AllowRowSelect="true" />   
<Scrolling EnableVirtualScrollPaging="True" UseStaticHeaders="True" />   
<Resizing AllowColumnResize="True" />   
</ClientSettings>   
<ClientSettings AllowDragToGroup="True" AllowExpandCollapse="true">   
<Scrolling EnableVirtualScrollPaging="True" UseStaticHeaders="True" />   
<Resizing AllowColumnResize="True" />   
</ClientSettings>   
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="Blue" />   
<PagerStyle Height="30px" HorizontalAlign="Center" Font-Bold="True"   
Font-Names="Arial" Font-Size="Smaller" />   
<HeaderStyle BorderStyle="None" Font-Bold="True"   
Height="30px" />   
</telerik:RadGrid>   
</ContentTemplate>   
</asp:UpdatePanel></td></tr>   
</table>   
</td>   
</tr></table>   
-------------------------------------------------------------------------------------   
here's the code for tooltip   
-------------------------------------   
protected void gviewTasks_ItemDataBound(object sender, GridItemEventArgs e)   
{   
int index;   
try   
{   
if (e.Item.ItemType == GridItemType.CommandItem )   
{   
index = e.Item.RowIndex + (gviewTasks.PageSize * gviewTasks.PageSize);   
for (int i = 0; i < e.Item.Cells.Count; i++)   
{   
if (dtTemp.Rows.Count > 0)   
{   
e.Item.Cells[0].ToolTip = dtTemp.Rows[index]["Resource Name_Org"].ToString();   
e.Item.Cells[2].ToolTip = dtTemp.Rows[index]["Task Name_Org"].ToString();   
e.Item.Cells[3].ToolTip = dtTemp.Rows[index]["Task Name_Org"].ToString();   
e.Item.Cells[4].ToolTip = dtTemp.Rows[index]["Description_Org"].ToString();   
e.Item.Cells[5].ToolTip = dtTemp.Rows[index]["Phase_Org"].ToString();   
e.Item.Cells[6].ToolTip = dtTemp.Rows[index]["Project Name_Org"].ToString();   
e.Item.Cells[7].ToolTip = dtTemp.Rows[index]["AssignedBy_org"].ToString();   
e.Item.Cells[8].ToolTip = dtTemp.Rows[index]["Estimated Hours_org"].ToString();   
e.Item.Cells[9].ToolTip = dtTemp.Rows[index]["Date_Org"].ToString();   
e.Item.Cells[10].ToolTip = dtTemp.Rows[index]["Status_Org"].ToString();   
e.Item.Cells[11].ToolTip = dtTemp.Rows[index]["Approve Status_Org"].ToString();   
}   
}   
}   
}   
catch (Exception ex)   
{   
}   
}  
 
Yavor
Telerik team
 answered on 07 Jan 2010
3 answers
134 views
Hello,

What I would like to do is to have a user control be displayed instead of a dialog when clicking the Delete button on my radGrid.  I know you can make this happen when clicking the Edit button on the radgrid, but would like to do the same with the Delete button.  The reason being is that the user needs to reassign child records of the parent record to another parent upon delete of that parent.  The user must select the parent to reassign the child records to.

Is is possible to have a User Control appear on click of the Delete button similar to how we can have a user control appear on click of the Edit button in the RadGrid?  If so, how?

Thanks,
Dave
Princy
Top achievements
Rank 2
 answered on 07 Jan 2010
1 answer
252 views
Hi,

I am having a rad grid with 2 columns.I have set the edit mode to be InPlace and I am using object datasource for insert,delete,select and update menthods.I would like to set up required field validators on both the columns of the radgrid.These two columns are grid bound columns(not template columns).

Could you please let me know how to set up required field validators in this scenario.

Thanks,
Nandita.
Princy
Top achievements
Rank 2
 answered on 07 Jan 2010
0 answers
64 views
nvm, I've found the reason why.
Herseng Yang
Top achievements
Rank 1
 asked on 07 Jan 2010
1 answer
139 views
Hi,
    Q3 has the new capability of using the contentTemplate which is great. Now how can i access the server controls inside the contentTemplate. If i have tones of controls on the window, i do not want to do the FindControl. Thanks,

Regards,

Osman
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 07 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?