Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
126 views
Hi,

I'm looking at the demo code for RadGrid (http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/edit-form-types/defaultvb.aspx)

and when I try to run it, I get a System.ArgumentOutOfRangeException error on:

    Protected Sub RadGrid1_PreRender(sender As Object, e As EventArgs) Handles RadGrid1.PreRender
        If Not IsPostBack Then
            Me.RadGrid1.MasterTableView.Items(1).Edit = True <-- this line is throwing the error
            Me.RadGrid1.MasterTableView.Rebind()
        End If
    End Sub

I haven't modified any of the demo code, and wondering how to fix this.

Thanks in advance.



Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Jan 2014
1 answer
126 views
Hello,
Is there any way to get the bread crumb based on the Rad menu item selection. I am unable to get the Click event for the rad menu. please check my java script code.

//Disable the embedded scripts for the Main Nav RadMenu
function OnClientItemOpening(sender, eventArgs) {
    eventArgs.set_cancel(true);
};

Is there any flaw in the above code snippet.

Regards,
Prasad.
Princy
Top achievements
Rank 2
 answered on 21 Jan 2014
1 answer
141 views
Hi,
I am trying to use a RadTimePicker and calling it through Javascript on a button click. But when I click on the button, console displays an error saying no method found for showTimePopup(). 
Shinu
Top achievements
Rank 2
 answered on 21 Jan 2014
2 answers
140 views
Hello,
I have implemented the client-side declarative binding sample but can not get the GridCheckBoxColumn to show as checked regardless of the Sql value. I see that the http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/client-side/declarative/defaultcs.aspx sample has the same problem. How can I get this to work? I tried implementing RowDataBound but this did not help. Thank you.
function RowDataBound(sender, eventArgs) {
        if (eventArgs.get_dataItem()["Discontinued"] == true) {
            var checkbox = eventArgs.get_item().get_cell("Discontinued").getElementsByTagName("input")[0];
            checkbox.checked = true;
        }
    }
Jeff
Top achievements
Rank 1
 answered on 21 Jan 2014
1 answer
137 views
I need to add RadTimePicker on a button click to my web application. I want it to be client side like using javascript. Any help will be much appreciated.
Thanks
Shinu
Top achievements
Rank 2
 answered on 21 Jan 2014
1 answer
143 views
Hello, Since this morning, when our browsers (chrome) updated to version 32.0.1700.76 m, we are experienced a problem with the RadContextMenu placement when the page is scrolled down (pic2.png). Checking for possible errors we found the following: "body.scrollTop is deprecated in strict mode. Please use 'documentElement.scrollTop' if in strict mode and 'body.scrollTop' only if in quirks mode." We checked in your demo page and there is the same problem. We tested it in other browsers and it's fine... Thanks, Rodrigo

Mark Kucera
Top achievements
Rank 1
 answered on 21 Jan 2014
6 answers
177 views
The tooltip immediately disappeared after loaded info in your demo. Test in Chrome and IE 8, all the same.

http://demos.telerik.com/aspnet-ajax/tooltip/examples/overview/defaultvb.aspx

However, the "Cache loaded data" works fine:

http://demos.telerik.com/aspnet-ajax/tooltip/examples/enabledatacaching/defaultvb.aspx
Rob
Top achievements
Rank 1
 answered on 20 Jan 2014
2 answers
226 views

Hey,


We have a Grid with a few columns that we want to filter with the unique values from the field. We are using a FilterTemplate to do it (based on example from Telerik). The filtering is working fine, but when we are trying to export to PDF we are getting this error:

Unable to cast object of type 'Telerik.Web.Apoc.Layout.BlockArea' to type 'Telerik.Web.Apoc.Layout.AreaContainer'



Also, when exporting to excel you can see the attached screenshot from the output file.



This is the FilterTemplate content:



<FilterTemplate>

 <telerik:RadComboBox ID="cboStatus1" DataSourceID="sdsStatus" DataTextField="STATUSDESCRIPTION"

  DataValueField="STATUSDESCRIPTION" Height="100px"

  AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("STATUSDESCRIPTION").CurrentFilterValue %>'

  runat="server" OnClientSelectedIndexChanged="Assessment_StatusIndex"

  Skin="Metro">

  <Items>

   <telerik:RadComboBoxItem Text="All" />

  </Items>

 </telerik:RadComboBox>

 <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">

  <script type="text/javascript">

   function Assessment_StatusIndex(sender, args) {

    var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");

    tableView.filter("STATUSDESCRIPTION", args.get_item().get_value(), "EqualTo");

   }

  </script>

 </telerik:RadScriptBlock>

</FilterTemplate>



Thanks,

Mano



Mano Sadeh
Top achievements
Rank 1
 answered on 20 Jan 2014
5 answers
132 views
Hii Developer friends;
RadDateTimePicker, RadScriptManager to work not open but RadScriptManager after working open popup calender;

For Example

DatetimePicker image

<tr>
<td style="text-align: right">
        <asp:Label ID="lblTarih" runat="server" Text="Fatura Tarih"></asp:Label>
</td>
<td colspan="3">
  <telerik:RadDateTimePicker ID="dpFaturaTarih" runat="server"></telerik:RadDateTimePicker>                                  
</td>
</tr>


<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
   <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="30"
       MinDisplayTime="0" BackColor="#474747" Skin="Metro">
   </telerik:RadAjaxLoadingPanel>
   <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
       <AjaxSettings>
           <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
               <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="pnlDuzenleAkaryakitAlisFaturasi" LoadingPanelID="RadAjaxLoadingPanel1" />                                       
               </UpdatedControls>
           </telerik:AjaxSetting>
           <telerik:AjaxSetting AjaxControlID="cmbCariKodu">
               <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="cariBilgiler" LoadingPanelID="RadAjaxLoadingPanel1" />                                       
  <telerik:AjaxUpdatedControl ControlID="dpFaturaTarih" LoadingPanelID="RadAjaxLoadingPanel1" />                                       

               </UpdatedControls>
           </telerik:AjaxSetting>     
 
           <telerik:AjaxSetting AjaxControlID="cmbFirma">
               <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="cariBilgiler" LoadingPanelID="RadAjaxLoadingPanel1" />                   
                   <telerik:AjaxUpdatedControl ControlID="pnlDuzenleAkaryakitAlisFaturasi" LoadingPanelID="RadAjaxLoadingPanel1" />                   
               </UpdatedControls>
           </telerik:AjaxSetting>
           <telerik:AjaxSetting AjaxControlID="cmbBarkod">
               <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="cmbStokAd" LoadingPanelID="RadAjaxLoadingPanel1" />
                   <telerik:AjaxUpdatedControl ControlID="cmbStokKod" LoadingPanelID="RadAjaxLoadingPanel1" />
               </UpdatedControls>
           </telerik:AjaxSetting>
       </AjaxSettings>
   </telerik:RadAjaxManager>



Maria Ilieva
Telerik team
 answered on 20 Jan 2014
14 answers
194 views
I have the following in my main page:
        var mtv = $find("<%= grdMain.ClientID %>").get_masterTableView();
        var un1 = mtv.get_columns()[1].get_uniqueName();
        var un2 = mtv.get_columns()[2].get_uniqueName();
        mtv.swapColumns(un1, un2);
        alert('mtv.swapColumns');
        mtv.moveColumnToLeft(3);
        alert('mtv.moveColumnToLeft');

swapColumns works and 1st alert displays and columns are swapped
but moveColumnToLeft doesn't work and 2nd alert is never called.


Maria Ilieva
Telerik team
 answered on 20 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?