Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
210 views
I want to  show a radTooltip from codebehind and use it as a type of msgbox. I want to give the user 'on the fly' database information from serverside, so I need to be able to build the radtooltip content codebehind aswell. Do you have any VB.net example and javascript to accomplish this ?  

I have access to the client user screen pixel where the user clicked. ( I do not want to use a targetcontrolID, tis is goolemap in a <div>) 

How can I call radtooltip to apear clientside on a given x,y pixel on client screen ?

'################################################################################################
This is how I show a radcontextmenu from codebehind/.showat x,y , Does radtooltip have a similar property ? please advise !!!
   ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "RCM", "function pageLoad(){$find('RCM').showAt(" & txtlath.Value & "," & txtlngh.Value & ");}", True)
'################################################################################################

  

  
rdmptn
Top achievements
Rank 1
 answered on 08 Jun 2012
1 answer
81 views
When I click on a row in master grid , the detail grid does not refresh. Please help me. thanks

        protected void OnLogGridNeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            var logs = LogManager.FindLog();
 
            var sortedlogs = from l in logs
                             orderby l.LogId descending
                             select l;
 
            grdLogGrid.DataSource = sortedlogs;
 
        }
 
        protected void OnLogDetailGridNeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            int logid = 0;
            grdLogDetailGrid.DataSource = null;
            
            if (grdLogGrid.SelectedValue != null)
                logid = Convert.ToInt32(grdLogGrid.SelectedValue.ToString());
 
 
            var logDetails = LogManager.FindLogDetail();
            var logDetail = from ld in logDetails
                            where ld.LogId == logid
                            select ld;
 
            grdLogDetailGrid.DataSource = logDetail;
 
        }
 
 
 
        protected void OnLogGridSelectedIndexChanged(object sender, EventArgs e)
        {
            int logid = Convert.ToInt32(grdLogGrid.SelectedValue.ToString());
 
            var logDetails = LogManager.FindLogDetail();
            var logDetail = from ld in logDetails
                            where ld.LogId == logid
                            select ld;
 
            grdLogDetailGrid.DataSource = logDetail;
 
        }










	<telerik:RadAjaxManagerProxy ID="AjaxProxy" runat="server">
		<AjaxSettings>
			<telerik:AjaxSetting AjaxControlID="grdLogGrid">
				<UpdatedControls>
					<telerik:AjaxUpdatedControl ControlID="grdLogGrid" />
				</UpdatedControls>
			</telerik:AjaxSetting>
		</AjaxSettings>
	</telerik:RadAjaxManagerProxy>
	
	<telerik:RadGrid 
		ID="grdLogGrid" 
		runat="server"
		OnNeedDataSource="OnLogGridNeedDataSource"
		AllowFilteringByColumn="true"
		AllowPaging="true"
		AllowSorting="true"
		GroupingEnabled="true"
		ShowGroupPanel="true" 
        onselectedindexchanged="OnLogGridSelectedIndexChanged">
		<MasterTableView
			DataKeyNames="LogId">
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
            </EditFormSettings>
		</MasterTableView>
		<ClientSettings 
			AllowColumnsReorder="true"
			AllowDragToGroup="true"
			AllowGroupExpandCollapse="true"
			ColumnsReorderMethod="Reorder"
			EnableRowHoverStyle="true" EnablePostBackOnRowClick="True"
			>
			<Resizing AllowColumnResize="true" ResizeGridOnColumnResize="false" />
			<Selecting AllowRowSelect="true"  /> 
			             
		</ClientSettings>
		<GroupingSettings ShowUnGroupButton="true" />             
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
 
	</telerik:RadGrid>
 
    <br />
    <strong>Log Details</strong>
 
    <br />
	<telerik:RadGrid 
		ID="grdLogDetailGrid" 
		runat="server"
		OnNeedDataSource="OnLogDetailGridNeedDataSource"
		AllowFilteringByColumn="true"
		AllowPaging="true"
		AllowSorting="true"
		GroupingEnabled="true"
		ShowGroupPanel="true">
		<MasterTableView
			GroupLoadMode="Client">
		</MasterTableView>
		<ClientSettings 
			AllowColumnsReorder="true"
			AllowDragToGroup="true"
			AllowGroupExpandCollapse="true"
			ColumnsReorderMethod="Reorder"
			EnableRowHoverStyle="true"
			>
			<Resizing AllowColumnResize="true" ResizeGridOnColumnResize="false" />
			<Selecting AllowRowSelect="true"  /> 
			             
		</ClientSettings>
		<GroupingSettings ShowUnGroupButton="true" />             
 
	</telerik:RadGrid>


Pavlina
Telerik team
 answered on 08 Jun 2012
2 answers
165 views
I have a simple Scheduler to display scheduled meetings in various rooms.  Whether I use the default appointment display or a custom appointment template, if the subject is long enough, it will wrap the text and cut off anything on line 2 or more.  Any ideas on how to show the whole subject.  This is specific for the month view.

<telerik:RadScheduler ID="rsVTC" runat="server" DataStartField="dtStartDateTime" DataEndField="dtEndDateTime" DataKeyField="intRoomScheduledId"
                                            DataSubjectField="Title" OverflowBehavior="Expand" SelectedView="MonthView"
                                            DayView-UserSelectable="false" WeekView-UserSelectable="false" MultiDayView-UserSelectable="False" TimelineView-UserSelectable="False" 
                                            Skin="Office2010Blue" Width="100%" AllowDelete="false" AllowEdit="false" AllowInsert="false">
                                            <AppointmentTemplate>
                                                <div>
                                                    <asp:LinkButton ID="lnkVtcViewRequest" runat="server"><%# Eval("Subject")%></asp:LinkButton>
                                                </div>
                                                <div>
                                                    <asp:LinkButton ID="lnkVtcSelectRequest" runat="server" Text="Select" />
                                                </div>
                                            </AppointmentTemplate>
                                        </telerik:RadScheduler>


Greg
Top achievements
Rank 1
 answered on 08 Jun 2012
0 answers
85 views
Hi There,

I am trying to show a link button using GridButtonColumn. I've got two problems here.

[1] I need to get data from database and update this GridButtonColumn at run time.
     For this I am using linq to sql and getting the data from database. but in the example below from Telerik site, row value is not constant (Release column) for all columns which is not in my case. Each row will have different name.

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

<telerik:RadGrid ID="RadGrid1" OnSortCommand="RadGrid1_SortCommand" OnPageIndexChanged="RadGrid1_PageIndexChanged" 
            Width="97%" OnPageSizeChanged="RadGrid1_PageSizeChanged" OnItemDataBound="RadGrid1_ItemDataBound"
             AllowSorting="True" PageSize="15" AllowPaging="True" runat="server" Gridlines="None" AutoGenerateColumns="False">
             <MasterTableView Width="100%">
             <Columns>
                <telerik:GridButtonColumn DataTextFormatString=""
                        UniqueName="Subject" HeaderText="Subject" DataTextField="">
                    </telerik:GridButtonColumn>
                <telerik:GridBoundColumn UniqueName="dc1" HeaderText="DC1" DataField="dc1">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="dc2" HeaderText="DC2" DataField="dc2">
                </telerik:GridBoundColumn>        
             </Columns>
             </MasterTableView>
             <PagerStyle Mode="NextPrevAndNumeric" />
            </telerik:RadGrid>

Backend:

var docs = from d in dbo.abc1
                       join p in dbo.abc2 on d.id equals p.Id
                       join c in dbo.abc3 on p.cId equals c.Id
                       select new
                       {
                           d.filelink, 
                           d.dc1,
                           d.dc2
                       };
            RadGrid1.DataSource = docs;
            RadGrid1.DataBind();


[2] When the user clicks this above link button they should get open/save dialogue.

Can you just let me know whether this can be done using RadGrid control?

Thanks,
Sunny
Sunny
Top achievements
Rank 1
 asked on 08 Jun 2012
5 answers
209 views
Hi,

I have multiple RadGrid's (one for every working day in a week), each with a single template column (GridTemplateColumn). Under each row in each grid is another RadGrid containing sub details for that record (using the 'DetailTables' function on the grid). Please find attached screenshot for an example of what I mean (some possibly confidential data has been whited out).

The user can drag and drop each 'subrow' to either a different trip on the same day, or another trip on another day. So they would drag a row to the blue 'header' column (which is my template coumn), or underneath/above another subrow of a trip, and drop the item there. I would then handle the RowDrop event, look at the DestDataItem object in the event to see where it's dropped and perform my processing.

It works great if they drag under another sub-item in a grid, but if they drag to the 'header' (the blue part), the DestDataItem is null - so I'm assuming  it's because they are dragging to a template column. Is there a way around this?

Thanks!
Andrey
Telerik team
 answered on 08 Jun 2012
1 answer
95 views
I am trying to set focus on the textbox control targeted by a RadSpell control after the check is done, whether it has been cancelled or finished or completed, using client-side javascript.

Putting .focus() in the client functions does not seem to work, the focus always returns to the pushbutton.
And after googling at length, I have found no example of how to do this.

Could someone please help me out?
Rumen
Telerik team
 answered on 08 Jun 2012
2 answers
93 views
The last thread I saw regarding this is 2011 so I thought I'd revisit.  I need to deploy RadScheduler to mobile devices asap.  If this functionality is imminent - as in 30-60 days I can probably wait.  If it's more than that I will need to use something else (probably the DevExpress product).  I'm already a Premium Subscriber and don't want to spend the money with someone else if I don't have to.  Can someone  give me an update on when this functionality is expected?

Thanks!
Shawn Davis
Top achievements
Rank 2
 answered on 08 Jun 2012
2 answers
77 views
HI,

Is there any way that move the button on the top instead of having it at the bottom and couldn't find this UploadedFilesRendering. It works fine on AsyncUpload but not in Normal Upload. Is there any way that to fix this issue.

thanks


Hem
Top achievements
Rank 1
 answered on 08 Jun 2012
2 answers
72 views
Is there a way to reference the containing tree node of a template generated control on the client side, a radcombobox in this case?  Without using the Find methods.

Those depend on knowing a particular value rather than the relationship of the node and control.  I have a client function that is a handler for the radcombobox OnClientSelectedIndexChanged event, but within that I need to also get a reference to the containing tree node.
Marbry
Top achievements
Rank 1
 answered on 08 Jun 2012
3 answers
65 views
I have a chart with two yaxis and two series. How do I assign a chartseries the second axis?
Paulo
Top achievements
Rank 1
 answered on 08 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?