Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
180 views
Hi.
I have a RadTabStripd that have some RadGrids and then call various usercontrol to edit data. I am using Javascript to get some data and then call a RadWindow to edit item.Everything's  OK but the user wants to see a "splash" to know something is happening, so I surround the tabstrip inside a RadPanel to get the desired effect. Now i work like they want but I get an javascript error when I try to get RadGrid info I got "undefined object" . The code is:

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">
 
    //------------------------------------------------------------
    //
    //------------------------------------------------------------
    function showDlg(oSender) {
      var grid = $find("<%= RadGridPlanes.ClientID %>");
      var row = grid.get_masterTableView();
      var selectedRows = row.get_selectedItems();
      var gridRow = selectedRows[0];
      var codPlan = row.getCellByColumnUniqueName(gridRow, "CodPlan").innerHTML;
      var numVersion = row.getCellByColumnUniqueName(gridRow, "NumVersion").innerHTML;
     
      var dlgName;
      var codTarifa;
      var codControl;
     
      if (oSender == 'CERTIFICADO')
      {
         dlgName = "DlgCertificado";
         codTarifa = row.getCellByColumnUniqueName(gridRow, "CodTarifaCert").innerHTML;
         codControl = row.getCellByColumnUniqueName(gridRow, "CodControlCert").innerHTML;
      }
      else
      {
         dlgName = "DlgAsegurado";
         codTarifa = row.getCellByColumnUniqueName(gridRow, "CodTarifaAseg").innerHTML;
         codControl = row.getCellByColumnUniqueName(gridRow, "CodControlAseg").innerHTML;
      }
     
      var url = codControl + "?Datos=" + codPlan + "|" + numVersion + "|" + codTarifa;
   var oWnd = window.radopen(null, dlgName);
      oWnd.SetUrl(url);

      return false;
    }
    
 </script>
    </telerik:RadScriptBlock>

<table>
 <tr>
    <td style="width: 405px; height: 35px;" align="right"><input id="Button1" type="button" value="Tarifa Certificado" onclick="showDlg('CERTIFICADO');" style="width: 179px"/>
     </td>
     <td style="width: 445px; height: 35px;" align="right"><input id="Button2" type="button" value="Tarifa Asegurado" onclick="showDlg('ASEGURADO');" />
      </td>
     </tr>
</table>

If i take out the RadAjaxPanel all works OK .

TIA

Yamil

Yamil
Top achievements
Rank 1
 answered on 28 May 2008
0 answers
125 views
Hey

I've just changed a .NET 3.5 application to .NET 2.0 application. It compiles and runs but the Rad menu's sub menu is not appearing when i do a mouse over the main menu.

I've replaced the System.web.UI with 2.0 version already but it doesn't seem to help

Can someone suggest how to solve that problem?

Thanks
Eric 
ERic
Top achievements
Rank 1
 asked on 28 May 2008
2 answers
142 views
I'll make my example simple for now: I have a master page and in the content page, I want a radcombo to update a radgrid with AJAX.  I have the RadAjaxManager in the master (not even sure if this is necessary??)  and I'm using the proxy in the content. 

The comob ajaxifies the grid just fine.  But what I don't get, is that when I page in the grid, it uses ajax as well.  How is that?  Here's what it looks like:

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" InitialDelayTime="0" MinDisplayTime="1000" Transparency="1" runat="server" Height="75px" 
        Width="75px"> 
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading3.gif") %>' 
            style="border: 0px;" /> 
    </telerik:RadAjaxLoadingPanel>  
  <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="rdcboCategories"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl LoadingPanelID="RadAjaxLoadingPanel1" ControlID="rdgrdProducts" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 

Michael
Top achievements
Rank 2
 answered on 28 May 2008
0 answers
65 views

I have a button on my user control on click of which i open a radwindow.
I am getting return values from the radwindow to the calling page to populate in some controls.

I use this function to populate the controls:

function

PopulateValues(sender, returnValue)
{ 
var dataArg = '';
dataArg = dataArg + returnValue.AssignmentID;

dataArg = dataArg +
'|' + returnValue.Staff;
dataArg = dataArg +
'|' + returnValue.DocketNum;
__doPostBack("RadWindowPopup",dataArg);
}

This causes a page flash when the postback happens.

I tried using RadAJAXManagerProxy(I have a AJAXManager on my master page) to set the UpdatedControls but the page flashes even when I specify that.

How can I avoid the page flash?

newbie
Top achievements
Rank 1
 asked on 27 May 2008
3 answers
140 views
Hi,
I have a page with two RadSchedulers. The page should only ever have one of these schedulers visible at a time. The Visible property of the RadScheduler's is changed on a event, e.g RadComboBox SelectedIndexChanged.

The problem I am facing is that only one of the RadSchedulers seems to respect the visible property correctly 100% of the time. This is the one which is visible on the first page load. The second scheduler does not appear when its visible property is set to true, unless another update happens on the page. The first RadScheduler contains to appear and disappear as required.

I got around this problem by enclosing each of the RadSchedulers in a <div runat="server"> tag. I then used the RadAjaxManager to update the div's instead of the RadSchedulers, and setting the div visible property to true/false. (I had to keep both radschedulers visible all the time, even though their respective div's might be visible=false)
It seems to be working fine now, but I'm pretty sure the other method should also work. Can you confirm if this is a bug?

Thanks,
EmpowerIT
Top achievements
Rank 2
 answered on 27 May 2008
2 answers
176 views
Hi there, after i have upgraded to the latest Schedular, javascript gives me wrong time.
even from
http://www.telerik.com/demos/aspnet/prometheus/Scheduler/Examples/RadWindow/DefaultCS.aspx
the popup shows wrong time, in my case, i had to add 1 day more and reverse from Am to pm, pm to AM, i am in New Zealand at moment (GMT +12)
is that anything to do with UTC time? Is that a bug?
Leon
Top achievements
Rank 1
 answered on 27 May 2008
4 answers
197 views
I've added tooltips to my grid using this code

  Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated 
    If (TypeOf e.Item Is GridDataItem) Then 
      Dim gridItem As GridDataItem = CType(e.Item, GridDataItem) 
      Dim ent As OrderTrackingViewEntity = CType(e.Item.DataItem, OrderTrackingViewEntity) 
 
      If Not String.IsNullOrEmpty(ent.WarehouseComments) Then 
        For Each column As GridColumn In RadGrid1.MasterTableView.RenderColumns 
          '    If (TypeOf column Is GridBoundColumn) Then 
          '      gridItem(column.UniqueName).ToolTip = ent.WarehouseComments '(gridItem.OwnerTableView.DataKeyValues(gridItem.ItemIndex)("WarehouseComments").ToString) 
          '    End If 
        Next 
      End If 
    End If 
  End Sub 


If I uncomment the 3 lines in the for each loop I get this error

Object reference not set to an instance of an object

when I click on any rows edit button, it works fine if I live the lines commented out.
Warren
Top achievements
Rank 1
 answered on 27 May 2008
11 answers
351 views
After upgraded in 2008.q1 controls I've a new issue with firefox, the height set to 100% dosen't works in fierfox:

ie:


firefox:


Code:
<Telerik:radsplitter ID="rs2" runat="server" orientation="Horizontal" width="100%" Height="100%" ResizeMode="AdjacentPane" > 
    <Telerik:radpane ID="rp3" runat="server" Height="32" Scrolling="None" CssClass="toolbar" > 
     
    </Telerik:radpane> 
    <Telerik:radpane ID="rp4" runat="server" scrolling="None" > 
 
        <Telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" 
            AllowCustomPaging="true" Width="100%" Height="100%" PageSize="30" 
            AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" > 
        </Telerik:RadGrid>                      
 
    </Telerik:radpane> 
    <Telerik:RadSplitBar ID="rsb2"  runat="server"></Telerik:RadSplitBar> 
    <Telerik:RadPane runat="server" ID="rp5" Scrolling="None"> 
     
    </Telerik:RadPane> 
</Telerik:radsplitter> 

Is there any workaround about this?

Dimo
Telerik team
 answered on 27 May 2008
5 answers
121 views
I have a form within a master page.
It contains a RadtabStrip with Rad-Multi page views assigned.
In one page view i have a webusercontrol.
i ajaxed the tabs to the tabs...and the tabs to the multi-page

all teh tabs work with exception of  the one with the webusercontrol.
the web usercontrol contains a Prometheus upload and prometheus grid.
If i remove the ajax setting from the proxy manager everything works great.but i get a full page post back.

if i add in the ajax settings for the above..i get the contents of that tab ajax'd. how would i go about saying that tab contents is not ajax'd

Joshua
Jen
Top achievements
Rank 1
 answered on 27 May 2008
2 answers
84 views
Hi!
I need to develop an ASP.net page to show a set of data as a pivot or cross table.  Does Telerik have any ASP.NET control for this purpose (Pivot/cross table)?  Thanks.

Cheers,
Al
Al Safavi
Top achievements
Rank 1
 answered on 27 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?