Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
189 views

How do i go about getting the insert row of a rad grid?

Calling the two methods below resulats in a Object doesn't support this property or method Error

$find('TimesheetItemApprovalControl_grdTimesheetItems').get_masterTableView().get_insertItem();
$find('TimesheetItemApprovalControl_grdTimesheetItems').get_masterTableView().get_editItems();

Below is the javascript api that I have been referencing
http://www.telerik.com/help/aspnet-ajax/grid-gridtableview-get-edititems.html
http://www.telerik.com/help/aspnet-ajax/grid-gridtableview-get-insertitem.html



Andrey
Telerik team
 answered on 03 Jun 2013
3 answers
119 views
Hi,

In Timeline view, is it possible to override the default behavior of highlighting a specific time slot when hovering over it?

I would want the entire row to be highlighted instead of the particular timeslot?

Thanks in advance.
Navaneeth
Plamen
Telerik team
 answered on 03 Jun 2013
6 answers
548 views
We've upgraded 2 weeks ago to the new Telerik version and now the clients have noticed a weird behaviour that I can't seem to solve.
I have a repeater and in each row there's a numerictextbox. The user can go to the next line with the tab and enter key.

With the tab key there aren't any problems. When the repeater is saved, the values of the radnumerictextbox match with the input.

When the enter key is used, the user doesn't see any problems. But the moment that the data is saved, the value of the numerictextbox is changed to the maxvalue when there isn't a digital digit in the user's input. E.g. the maxvalue is 10 and the user enters 6 it will be saved as 10 and if the user enters 6.5 then 6.5 will be saved.
When I debug, I notice that LastSetTextBoxValue is the only attribute that has the correct value.

The mark-up of the numerictextbox in the HTML-page in the repeater is as follows:
<telerik:RadNumericTextBox ID="rtbPunten" runat="server" Width="50px" Type="Number"
IncrementSettings-InterceptArrowKeys="false" IncrementSettings-InterceptMouseWheel="false"
MinValue
="0" DbValue='<%#Container.DataItem("punten")%>'
ToolTip='<%# "punt " & Container.DataItem("nickname")%>' />

I use the following javascript to check the value of the textbox and validate the keypress..
function HandleError(sender, eventArgs) {
   switch (eventArgs.get_reason()) {
      case 1: // Parsing error
         $find(sender.get_id())._textBoxElement.value = $find(sender.get_id())._textBoxElement.value.replace(",", "") + ",";
         eventArgs.set_cancel(true);
         break;
      case 2: // Out of range
         setTimeout(function () {
            sender.clear();
         }, 10);
         document.getElementById(sender.get_id().replace("rtbPunten", "errPunten")).style.display = "";
         eventArgs.set_cancel(false);
         break;
   }
}
 
function onKeypress(sender, eventArgs, R) {
   document.getElementById(sender.get_id().replace("rtbPunten", "errPunten")).style.display = "none";
   var r = eventArgs.get_keyCode();
   if (r == 13) {
      var s = sender.get_id().split("_R_ctl")[1].replace("_rtbPunten", "");
      s = parseFloat(s) + 1;
      var n = $find(R + "_ctl" + formatNumber(s, 2) + "_rtbPunten");
      if (n) {
         setTimeout(function () {
            n.focus();
            n.selectAllText();
         }, 10);
      }
   }
}

In the code-behind the following settings are added:
Dim ptn As RadNumericTextBox = CType(ri.FindControl("rtbPunten"), RadNumericTextBox)
ptn.NumberFormat.DecimalDigits = NumberOfDigits
ptn.MaxValue = maxPoints
ptn.Culture = CultureInfo.GetCultureInfo("nl-BE")
ptn.ClientEvents.OnError = "HandleError"
ptn.ClientEvents.OnKeyPress = "keyPress"
ptn.ClientEvents.OnValueChanged = "puntChanged"
If ptn.Value < CDbl(hdMax.Value) Then ptn.ForeColor = Drawing.Color.Red

Can anybody help me solve this problem?
Frank Beerens
Top achievements
Rank 1
 answered on 03 Jun 2013
1 answer
2.5K+ views
Hi,
I am using RadAsyncUpload control.
In Default, it allows to upload the file which has size less than 4 MB.
I set the property "MaxFileSize" as "10000000"=10MB.

<telerik:RadAsyncUpload ID="uploaddoc" runat="server" MultipleFileSelection="Automatic" MaxFileSize="10000000" ></telerik:RadAsyncUpload>

But it doesnt work in Chrome.
can anyone resolve this please.?
Thanks in advance.

Regards,
AGMRAJA
Kate
Telerik team
 answered on 03 Jun 2013
3 answers
30 views
Hi
 
I have searched this link http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx and i need this kind of advance form demo in mvc 4. Please help me.

Thanks
Gaurav Rana
Plamen
Telerik team
 answered on 03 Jun 2013
1 answer
75 views
Hi,

How to disable checking checkboxes for a particular level of nodes from C#?

Thanks,
Robert
Shinu
Top achievements
Rank 2
 answered on 03 Jun 2013
5 answers
145 views
Hi,

Is there a way to add multiple header templates to radcombo with checkbox dynamically?

For example:

Title:Dog
  dog1
  dog2
Title:Cat
  cat1 
  cat2
  cat3
Title:Bird
   Bird1

Right now, I only can add one title template and list all the items together. It would be nice to have a title for each category.
Thanks,

Tao
Plamen
Telerik team
 answered on 03 Jun 2013
2 answers
398 views
Hi,

I'm trying to select radgridview row programmatically on client side with DataKeyValue.
I'd like the selected row background to be modified also. 
Using RadControls for ASP.NET AJAX Q1 2013. Here is my sample code, but not working properly:

var Rows = $find("<%=RadGrid1.ClientID %>").get_masterTableView().get_dataItems();
 
                   for (var i = 0; i < Rows.length; i++) {
                       var row = Rows[i];
                       if (row != null && row.getDataKeyValue("Id") != null && row.getDataKeyValue("Id") == id) {
                            $find("<%=RadGrid1.ClientID %>").get_masterTableView().get_dataItems()[i].set_selected("true");
                            break;
                       }
                   }

Any idea?
Thank you.
KR,
JC

Jc
Top achievements
Rank 1
 answered on 03 Jun 2013
4 answers
112 views
I'm not sure what happened, but I'm getting an error when I try to bind a new dataset to a listview on the client side.

I wind up with the error message:
 "0x800a139e - Microsoft JScript runtime error: Sys.ArgumentException: Cannot find element with specified ID
Parameter name: ItemPlaceHolderID"
Maria Ilieva
Telerik team
 answered on 03 Jun 2013
4 answers
335 views
Hy,
I am having troubles to get a Radbutton working together with a javascript confirm dialog. The intention is, to show the confirm dialog prior to executing the delete command (which the radbutton represents). However, altough I am using the same Code, I already found in this forum, the button simply creates the postback, without even showing the dialog. The Code i use is:

<telerik:RadButton ID="BtnDelete" runat="server" OnClientClick="javascript:if(!confirm('This action will delete the selected customer. Are you sure?')){return false;}" Skin="Outlook" Text="Löschen" onclick="BtnDelete_Click">
</telerik:RadButton>

For testing purposes, I tried a default Button, which works without any troubles:

<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="return confirm('Are you sure to Continue?');" />

Does anybody have any suggestions what to do?

If it is from interest:
I am using the Controls in a Webpart for a Sharepoint 2010 environment.
Manish
Top achievements
Rank 1
 answered on 03 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?