Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
156 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
643 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.7K+ 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
51 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
104 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
183 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
450 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
140 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
399 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
6 answers
333 views

I've a RadGrid and a ItemTemplateColumn which contains a RadTextBox, I'm binding the grid on client side by using a Webservice and on "OnRowDataBound" event i want to set value in the textbox (that is present inside the ItemTemplate)

 

<telerik:RadGrid ID="dgvDataEntry" runat="server">

    <MasterTableView>

        <Columns>

        <telerik:GridTemplateColumn HeaderText="Attribute Name" DataField="AttrName" UniqueName="AttrName">

            <ItemTemplate>

                <telerik:RadTextBox ID="RadTextBox1" runat="server" />

        </ItemTemplate>

        </telerik:GridTemplateColumn>

        </Columns>

    </MasterTableView>

<ClientSettings>

    <ClientEvents OnRowDataBound="RadGrid1_RowDataBound" />

</ClientSettings>

</telerik:RadGrid>

here is my OnRowDataBound event

function RadGrid1_RowDataBound(sender, args) {

var txt = args.get_item().findControl("RadTextBox1"); //I always get "null" here
}

Is it the wrong way to access the control inside the ItemTemplate? Let me know where i'm doing wrong?

 

 

 

 

 

 

 

 

 

Sadaf
Top achievements
Rank 1
 answered on 02 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?