Telerik Forums
UI for ASP.NET AJAX Forum
15 answers
440 views
Hi,

I am using RadGrid to display records, RadContextMenu is associated with it, the application is developed in ASP.NET.
Which event shouid i use to get the griddataitem object or how can i get the rowindex/coulumn name or cell which is clicked.

I tried using the GetClickedElement but it does not support asp.net i guess. Please help.

Thanks in advance.
Yogesh
Top achievements
Rank 1
 answered on 20 Jul 2012
2 answers
116 views
Hi,
Im using Telerik version Q2 2010.
In my application I want to add RadRating control within repeater. following is my code

<

 

 

asp:repeater ID="rptAssetList" runat="server">

 

<HeaderTemplate>

 

<ul>

 

</HeaderTemplate>

 

<ItemTemplate>

 

<li class='<%# Eval("AssetClass") %> clear-both'>

 

<p class="asset-name" title='<%# Eval("AssetToolTip") %>'>

 

<a href="javascript: {};" onclick='javascript:GetResource(<%# Eval("AssetDownloadID") %>)'><%# Eval("AssetName") %></a>

 

<img id="imgPrivate" src="../../../Common/Images/lock-icon.gif" width="10" height="10" runat="server" visible='<%# Eval("ImageVisibility") %>' meta:resourcekey="imgPrivate" />

 

</p>

 

</li>

 

<rad:radrating id="rdrRating" autopostback="true" runat="server" orientation ="Horizontal" itemcount="5" selectionmode ="Continuous" value =5></rad:radrating>

 

</ItemTemplate>

 

<FooterTemplate>

 

</ul>

 

</FooterTemplate>

</

 

 

asp:repeater>

It displays ating as in attached image. (like numbers vertically  (1. 2. 3...)

If anyone have idea about this issue please let me know asap.

Thanks in Advance

AKJ

Aruni
Top achievements
Rank 1
 answered on 20 Jul 2012
0 answers
109 views
Hi Guys,

Here i am getting the following error:

Field record in a database as DateTime field 2012-07-03 00:00:00.000


Value of '3/07/2012 12:00:00 AM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'. Parameter name: SelectedDate. 

The weird thing is it work the first time and the second or it randomly failed sometime in the second or third attempt.



<telerik:RadDatePicker ID="dtParticipationEnd" runat="server" AutoPostBack="true"
Skin="Office2007" DateInput-DateFormat="dd MMM yyyy"
DateInput-Width="20px" DateInput-CssClass="controlText" DateInput-Enabled="true"
MinDate="01/01/1000" MaxDate="01/01/3000">
</telerik:RadDatePicker>

None the following which i have tried worked. 
 if (this.participationEntity.ParticipationEnd != null)
 {
                    string participationEnd = ((DateTime)this.participationEntity.ParticipationEnd).ToShortDateString();
                    dtParticipationEnd.DbSelectedDate = participationEnd;
 }
 else
 {
                    dtParticipationEnd.DbSelectedDate = null;
  }

Second option i tried:
if (this.participationEntity.ParticipationEnd != null) dtParticipationEnd.DbSelectedDate = this.participationEntity.ParticipationEnd;


Mark de Torres
Top achievements
Rank 1
 asked on 20 Jul 2012
2 answers
117 views
Hi ,
I have an old version (2.7.2.0) of telerik combo box dll. This DLL works well with .Net framework 2.0. But When i am using with .Net 4.0 it gives javascript error.

function

RadComboBox(_11,_12,_13){

var

_14=window[_12];

if

(_14!=null&&!_14.tagName){

 

_14.Dispose();

}

I am getting error on _14.Dispose() method. "Microsoft JScript runtime error: Object doesn't support this property or method". Please let me know why this error i am getting with .net framework 4.0 and how i can fix it.

Thanks in advance. 

Xafir
Top achievements
Rank 2
 answered on 19 Jul 2012
4 answers
327 views
Hi,

I am using cascaded drop down and i have used RadAjaxManager to update the another dropdown, but i am getting the following error while using it :

Microsoft JScript runtime error: Unable to set value of the property 'control': object is null or undefined

Moreover, i have the dropdowns in ascx page and i am calling that ascx in aspx. if i take the dropdowns in aspx it works smoothly.

Help me out on this.

Thanks & Regards,
Dhaval Shukla
Eric
Top achievements
Rank 1
 answered on 19 Jul 2012
1 answer
283 views
As I have posted previously, I am using a radcombobox as a data selector in a radgrid. The combobox is filled with options for the user to select, but I only want the combobox visible if the user clicks on the existing item.

All of the functionality works as expected, however, the combobox must be displayed the first time the page is rendered because setting the Visible property to false server-side prevents the html from being generated.

I have tried setting an attribute in the style for display:none but it is not recognized and the combo still shows.
How can I initially hide the combobox and still have the html generated?

Also, while I might consider a client-side solution as a last resort, it is important to note that I have the potential for hundreds of comboboxes because as I stated previously, these are being used in a radgrid.

Other points that might be important is that the data in the combobox is filled based on the value of a field in the current record. i.e. if column pID is 42, then all items in a specific table where pID is 42 are put into the combobox. This precludes the thought of creating the combobox dynamically client-side because I would need to make numerous postbacks everytime the combobox becomes visible. I am desparately trying to keep the number of server calls down. 
Keith
Top achievements
Rank 2
 answered on 19 Jul 2012
1 answer
160 views
Hi,

I've a rad editor on my page and I set the attributes of it as follows:

rreSuperVisory.Attributes.Add("CommentTypeCode", ((int)CommentTypeCode.MRTLApprovalComment).ToString());     
  rreSuperVisory.Attributes.Add("UserId", UserId.ToString());

I want to access these attributes through jquery from client side.

Could you please tell me how is it possible ? If not, could you please suggest an alternate solution ?

Thanks,
Sailaja

Rumen
Telerik team
 answered on 19 Jul 2012
1 answer
94 views
I am having an issue on multiple pages with the RadDatePicker.  If the user uses the Calendar and selects a date there is no issue, but about 35% of the time if the user manually enters the date byt typing it in it does not recognize the date as the selected date.  I am using version 2009.3.1314.35.

<telerik:RadDatePicker ID="dpMeetingDate" runat="server" MinDate="2009-01-01" Width="150px" ImagesPath="" Skin="Vista" Enabled="false">
        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" Skin="Vista"  />
        <DatePopupButton ImageUrl="" HoverImageUrl="" />
</telerik:RadDatePicker>

when I try to save or sometimes try to filter by looking at the date entered if the user has manually entered it I get the error that no date was selected.

if (dpMeetingDate.SelectedDate == null)
{
  lblError.Text += "<br>  - Select a meeting date";
  canSave = false;
Eyup
Telerik team
 answered on 19 Jul 2012
1 answer
127 views
Hello...

I have a simple page (Principal.aspx)  with several links... Each link load a Aspx page on right, like that: 
$('#myRightdiv').load('Test.aspx', function () {          
});

My Test.aspx has a RadListView, and I have a pageLoad to get it on client :

function pageLoad() {
 listView = $find("myRadListView");           
 alert(listView);
}

The problem is sometimes that pageLoad is not fired at all... So I cant get the RadListView on client...
If I try to get that on my Principal.aspx , I always got a Null...

I´m using last 2012 Q2 and .NET 4.0 (VS 2012) ... With VS210 and .NET 3.5 its working fine...

Any idea?


Thanks
Tsvetina
Telerik team
 answered on 19 Jul 2012
1 answer
86 views
Hi team,

 We are using RadEditior in our Application . The version we are using is 2008.2.1001.20.
 When we try to copy from Word and paste its adding some $00 and we are loosing the formatting(in Firefox and Chrome).
 So we tried to use the Strip Word formating in Firefox its working fine. But its not working in Chrome.
 Please help us with the proper solution.

Thanks,
PMG
Rumen
Telerik team
 answered on 19 Jul 2012
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?