Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 views

Hi

Delete the appoinment from scheduler which event i need to fire.
When i click the X mark right side of my appoinment  which event i need to fire to wright a code to delete from database.



regards
Vairamuthu
Shinu
Top achievements
Rank 2
 answered on 13 Jul 2009
1 answer
64 views
Hi,

Can i know how to get the first row always selected in radgrid. ( in the postback i need to set it) .
When user opens the user control(or web form), we need to always have the first row selected.
How do i do this?

Pls help

Thanks,
ZR
Shinu
Top achievements
Rank 2
 answered on 13 Jul 2009
1 answer
111 views

protected

 

void RADGrid_ItemDataBound(object sender, GridItemEventArgs e)

 

 

 

{

 

 

 

if (e.Item is GridDataItem)

 

{

 

GridDataItem dataItem = e.Item as GridDataItem;

 

 

 

if (dataItem["UserName"].Text.Trim() == "Jeff")

 

 

 

{ 

 

 

dataItem["Delete"].Visible = false;

 

 

 

}

 

 

 

}

}

the unique columns are both template columns

 

 

Shinu
Top achievements
Rank 2
 answered on 13 Jul 2009
0 answers
137 views
Hi

I have developed the applicaion, i downloaded the code from forum that when i click insert appointment
it shold show the day view but it is giving ajax request error the code is

test.aspx
------------------------

<%

@ Page Language="C#" CodeBehind="Test.aspx.cs" AutoEventWireup="false" Inherits="AMS.Web.LMS.Test" %>

 

<%

@ Register Assembly="Telerik.Web.UI, Version=2009.1.527.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

 

 

Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

 

<head>

 

 

<meta http-equiv="content-type" content="text/html; charset=utf-8"/>

 

 

<title>Boom</title>

 

 

 

</head>

 

 

<body bgcolor="aliceblue">

 

 

<script type="text/javascript">

 

 

function

 

OnClientTimeSlotClick(sender, eventArgs)

 

{

sender.showInsertFormAt(eventArgs.get_targetSlot());

 

}

function

 

onClientTimeSlotContextMenu(sender, eventArgs)

 

{

alert(

"sorry no operations");

 

}

//function OnClientRecurrenceActionDialogShowing(sender, eventArgs)

 

//{

 

 

//eventArgs.set_cancel(true);

 

 

//Edit this instance only:

 

 

//eventArgs.set_editSeries(false);

 

 

//Edit the entire series:

 

 

//eventArgs.set_editSeries(false);

 

 

//}

 

 

</

 

script>

 

<

 

form id="Form1" runat=server>

 

 

&nbsp;<%--

 

<asp:Label ID="Label2" runat="server" Style="left: 431px; position: relative; top: 27px"

Text="Label"></asp:Label>

<asp:Button ID="Button2" runat="server" BackColor="LimeGreen" ForeColor="White"

OnClick="Button2_Click" Style="left: -53px; position: relative; top: 20px" Text="Estemator" />

<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Style="position: relative; left: 99px; top: 3px;"

Text="Scheduler" BackColor="LimeGreen" ForeColor="White" /><br />

<asp:CheckBoxList ID="CheckBoxList2" runat="server" RepeatDirection="Horizontal"

Style="left: 228px; position: relative; top: 49px">

</asp:CheckBoxList>&nbsp;

<br />

 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="12px" Style="position: relative; left: 1px; top: 0px;"

Width="540px">

&nbsp;<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"

Style="left: -6px; position: relative; top: 6px">

</asp:DropDownList>

&nbsp;&nbsp;

<asp:Label ID="Label1" runat="server" Font-Bold="True" Style="left: -256px; position: relative;

top: 10px" Text="Estimator Appointment Of:" Width="112px"></asp:Label></telerik:RadAjaxPanel>

<telerik:RadScriptManager runat="server" ID="RadScriptManager1" ></telerik:RadScriptManager>

 

<br />

<br />

--

 

%>

 

 

<div style="height:133px;width:1px;border:1px solid black; left: 7px; position: relative; top: 0px; z-index: 100;">

 

 

<p style="position: static" dir="ltr">

 

 

&nbsp;<asp:Label ID=lblBranchNotes runat=server Width="121px" style="position: relative; left: 2px; top: 0px;" Height="10px"></asp:Label>

 

 

<asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" RepeatDirection="Horizontal"

 

 

Style="left: 495px; position: relative; top: 132px" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged" Font-Size="Larger" RepeatLayout="Flow" Width="487px">

 

 

</asp:RadioButtonList></p>

 

 

</div>

 

 

<div style="height:136px;width:531px;border:1px solid black; left: 519px; position: absolute; top: 32px; z-index: 101;">

 

 

<p style="position: static">

 

 

&nbsp;<asp:Label ID=lblEstimatorNotes runat=server Width="600px" style="position: absolute; left: 2px; top: 0px;" Height="4px"></asp:Label></p>

 

 

</div>

 

 

<asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="#004000" Style="left: 118px;

 

position: relative; top: -164px; z-index: 102;"

 

Text="Branch Notes"></asp:Label>

 

 

<asp:Label ID="Label3" runat="server" Font-Bold="True" ForeColor="#004000" Style="left: 477px;

 

position: relative; top: -166px; z-index: 103;"

 

Text="Estimator Notes"></asp:Label>

 

 

<telerik:RadScriptManager runat="server" ID="RadScriptManager2" ></telerik:RadScriptManager>

 

 

&nbsp; &nbsp; &nbsp;

 

 

&nbsp;&nbsp;

 

 

<asp:Label ID="Label1" runat="server" Font-Bold="True" Style="left: 60px; position: relative;

 

top: 14px; z-index: 104;"

 

Text="Estimator Appointment of:" ForeColor="#004000"></asp:Label>

 

 

&nbsp;&nbsp;

 

 

<asp:Button ID="btnLiveTransfer" runat="server" BackColor="#004000" ForeColor="White" OnClick="Button2_Click1"

 

 

Style="left: 61px; position: relative; top: -206px; z-index: 105;" Text="Live Transfer" />

 

 

<asp:CheckBoxList ID="CheckBoxList2" runat="server" RepeatDirection="Horizontal"

 

 

Style="left: 17px; position: relative; top: 70px; z-index: 106;" ForeColor="#0000C0" AutoPostBack="True" OnSelectedIndexChanged="CheckBoxList2_SelectedIndexChanged" ToolTip="Estimators" CausesValidation="True" AppendDataBoundItems="True" BorderColor="Lime" Font-Bold="True">

 

 

</asp:CheckBoxList>&nbsp;

 

 

<asp:Button ID="Button1" runat="server" BackColor="#004000" ForeColor="White" Style="left: 943px;

 

position: relative; top: -187px; z-index: 107;"

 

Text="Close" OnClick="Button1_Click1" Width="55px" />

 

 

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

 

 

&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;

 

 

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

 

 

&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

 

 

&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

 

 

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

 

 

 

<telerik:RadScheduler runat="server" ID="RadScheduler1" Width="1016px" SelectedView="MonthView"

 

 

TimeZoneOffset="00:00:00" SelectedDate="2009-05-14" DayStartTime="08:00:00" DayEndTime="18:00:00" DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" style="left: 8px; top: 1px; z-index: 108;" Height="485px" Skin="Sunset" DisplayDeleteConfirmation="True" GroupingDirection="Vertical" OnClientTimeSlotClick="OnClientTimeSlotClick" onClientTimeSlotContextMenu="onClientTimeSlotContextMenu" StartInsertingInAdvancedForm="True" EnableCustomAttributeEditing="True" EnableResourceEditing="False" ShowFullTime="True" BorderStyle="None" Font-Bold="True">

 

 

<localization advanceddescription="Estimator Notes"></localization>

 

 

<timelineview userselectable="False" showinsertarea="False" showresourceheaders="False"></timelineview>

 

 

</telerik:RadScheduler>

 

 

</form>

 

 

</body>

 

</

 

html>


aspx.cs
----------------------------------

 

 

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)

 

{

 

//RadScheduler1.ShowInlineInsertForm(ParseJavaScriptTime(e.Argument).AddHours(8));

 

 

 

 

RadScheduler1.SelectedView =

SchedulerViewType.DayView;

 

RadScheduler1.SelectedDate = ParseJavaScriptTime(e.Argument);

}

 

private DateTime ParseJavaScriptTime(string jsTime)

 

{

 

DateTime result = DateTime.ParseExact(jsTime, "yyyyMMddHHmm", null, DateTimeStyles.AssumeUniversal);

 

 

return result.ToUniversalTime();

 

}


can any one solve the problem ajax request is not working in the scheduler
as well as ajax functionality is also not working

advance regards

immu

imtiyaz mohammed
Top achievements
Rank 1
 asked on 13 Jul 2009
4 answers
144 views
How to retrieve primary key field values for selected items, when the primary key field column visible set to "false"
Shinu
Top achievements
Rank 2
 answered on 13 Jul 2009
0 answers
63 views
Is there an example code for providing a notification to  a user if they enter some data on a form but do not save, and try to click on another tab in the tabstrip?
andy
Top achievements
Rank 1
 asked on 13 Jul 2009
1 answer
76 views
'ScriptManager' is ambiguous in the namespace 'System.Web.UI'. 

I just installed Telerik and opened and existing site in development mode.  I added a new page which I wanted to use to replace an existing page that contained a grid.  After placing the controls on the page I started in Debug and got a slew of errors sinilar the the above error.

Where did I mess up?
Clifford Lane
Top achievements
Rank 1
 answered on 12 Jul 2009
0 answers
90 views
Hello,
My problem is as below.
When the user uploads an image (of varying size) the upload should be able to resize the image into a 75 by 75 px without distortion. That is using a fixed constraint ratio.
How can I achieve this?
Please Help.
Thank you
Dip
Top achievements
Rank 1
 asked on 12 Jul 2009
7 answers
281 views
Hi, I am currently using the Q1 2009 telerik tools.

Is it possible to highlight more than one hour on the calendar and then right click to get the context menu?

I would like to be able to highlight from 9am to 5pm then right click to be able to add an appointment.

Thanks, Mark
Fabio
Top achievements
Rank 1
 answered on 12 Jul 2009
0 answers
221 views
hi
 I Used the RadTabStrip control i tried to use the focus for each tab first control(using Java scripts). When i was clicking the tab that time the error showing like that Con't do " focus the control because it is invisible, not enable or of a type there does not accept the frous"


I wrote the code like this
<script type="text/javascript">
         function onTabSelecting(sender, args) {

           //  var MyTab = addPropertyTabStrip.FindTabByText("Tab 2");                          
                 
            // $find("<%= cmbContactManager.ClientID %>").focus();          
             // alert("OnClientTabSelecting: " + args.get_tab().get_text());
           //  var comboBox = $find("<%=cmbContactManager.ClientID %>");
            // var input = comboBox.get_inputDomElement();
            // input.focus();
             // SetFocus();
             

           //  var item = comboBox.get_selectedItem();
          //   document.getElementById("<%=hdnMasterInfoLocation.ClientID %>").focus();
             // document.getElementById(<%=cmbContactManager.ClientID %>.InputID).focus();

            
           
         }
         function onTabSelected(sender, args) {
             // alert("OnClientTabSelecting: " + args.get_tab().get_text());
            // var MyBox = document.getElementById('<%= addPropertyDetailsPageView.FindControl("txtDetailsSleeps").ClientID %>')
             //  MyBox.focus();

             var tb;
             tb = document.getElementById('<%= txtDetailsSleeps.ClientID %>')
             if (tb != null) {
                 window.setTimeout(function() {
                     tb.focus();
                 }, 100);
             }  
         }
         
function SetFocus()  
{  
// var comboBox = $find("<%= cmbContactManager.ClientID %>").focus();  ;
 
 // var input = document.getElementById(comboBox.InputID);  
//  input.focus();  
}  

     </script>


<JetSoft:RadTabStrip ID="addPropertyTabStrip" runat="server" OnClientTabSelected="onTabSelected"  SelectedIndex="0" MultiPageID="addPropertyMultipage">
        <Tabs>
            <JetSoft:RadTab runat="server" Width="85px"  Text="<%$ Resources:AdminResource, tabAddproPertyMasterInfo %>" Selected="True">
            </JetSoft:RadTab>
            <JetSoft:RadTab runat="server"  Width="75px" Text="<%$ Resources:AdminResource, tabAddPropertyContacts %>">
            </JetSoft:RadTab>
            <JetSoft:RadTab runat="server" Width="75px" Text="<%$ Resources:AdminResource, tabAddPropertyDetails %>">
            </JetSoft:RadTab>
            <JetSoft:RadTab runat="server" Width="85px" Text="<%$ Resources:AdminResource, tabAddPropertyBedLayout %>">
            </JetSoft:RadTab>
            <JetSoft:RadTab runat="server" Width="80px" Text="<%$ Resources:AdminResource, tabAddPropertyUtilities %>">
            </JetSoft:RadTab>
            <JetSoft:RadTab runat="server" Width="105px" Text="<%$ Resources:AdminResource, tabAddPropertyRatesPolicies %>">
            </JetSoft:RadTab>
            <JetSoft:RadTab runat="server" Width="70px" Text="<%$ Resources:AdminResource, tabAddPropertyPictures %>">
            </JetSoft:RadTab>
            <JetSoft:RadTab runat="server" Width="80px" Text="<%$ Resources:AdminResource, tabAddPropertyAmenities %>">
            </JetSoft:RadTab>
            <JetSoft:RadTab runat="server" Width="75px" Text="<%$ Resources:AdminResource, tabAddPropertyCharges %>">
            </JetSoft:RadTab>                        
        </Tabs>
</JetSoft:RadTabStrip> 


Notes:
     Some tab begin with combo box and some tab begin with text box and check box how can i solved this problem like begin with different problem. Please give me sample both
 
Let me know how can i solve this problem and Please do needful

Regards
G. Manikandan







mani
Top achievements
Rank 1
 asked on 12 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?