Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
155 views
Hi.
using ASP.NET MVC here, and using the Telerik Grid control.
I ran into a problem where, the initial databinding is fine from the server end, which contains a timespan object. it shows the value just fine.

However, when you press the refresh button on the Grid, the data just disappears even though, the AJAX select call IS being called.

I then ran into this thread:

http://www.telerik.com/community/forums/preview-thread/aspnet-ajax/grid/timespan-object-with-mvc-grid.aspx

So I implemented the Client Template and that works. The problem now is that when you hit the refresh button - I see the icon just indicating its doing work but there is no work being done at all! No errors either.

so what can I do here to display the TimeSpan object correctly on client side, with these issues even when you hit the refresh button?



Ahmed Ilyas
Top achievements
Rank 1
 answered on 22 Sep 2011
1 answer
108 views
Hi all :)


how can I get the first index or specified index of a rad list box ?


for example:


I want to put the value of a the first or second index as a text in a textbox


how can I do that ?


thank you all :)
Shinu
Top achievements
Rank 2
 answered on 22 Sep 2011
1 answer
61 views
I have a grid with a parent/detail table. Clicking on the expand/collaps icon displays/hides the detail column. Everything works fine except, clicking on the parent table row "Selects" it and this is undesirable behavior in my scenario since selecting the row doesn't do anything and isn't used. I tried setting the "Selecting" clientSettings Parameter AllowRowSelect='False", and this prevented the row being selected, however, this also prevents the expand/collapse column from working to display the detail table. Apparently you need to be able to select the parent row to display the child table. Is there a way to prevent the selection of the parent row and still have the expand/collapse column work? If not, is there a way of preventing the selected parent row from being shown as "highlighted". The visual appearance is all I really care about.
Princy
Top achievements
Rank 2
 answered on 22 Sep 2011
46 answers
2.4K+ views
Hi,

I want to evaluate the radScheduler component. I have dowloanded the latest version of Prometheus.

I only put a on a radScheduler component on a form with a datasource but at exection I obtain the following popup message :

'Telerik' is undefined

The code generated is  :

...

</
div><div class="rsFooter">

<a class="rsFullTime" href="#">Show 24 hours...</a>

</div><script type="text/javascript">

Telerik.Web.UI.RadScheduler.FixHeight("RadScheduler1");

<


PS : My global settings for my machine are "French".

Best regards,

Vina
Top achievements
Rank 1
 answered on 22 Sep 2011
2 answers
92 views
I was wondering if you guys could jQuery up a better visualization for drag\drop...Sitefinity has an awesome widget drag\drop visualization (as an example)...so instead of the row with an arrow following the mouse, the place in the tree in which it will place itself contains a placeholder (like dashed border)

Does that make sense?...so we can see in realtime where it'll appear
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
 answered on 22 Sep 2011
0 answers
129 views
There are 2 scenarios which causes this error.

First scenario:

Selecting a treeview control which is inside the combobox which will cause an ajax process
while a radgrid is within the page and while the code behind are inside a try catch block.
When the code is not in a try catch block, nothing appears.

Second scenario:

Inside a radwindow or normal window(appears using window.open):
Selecting a treeview control which is inside the combobox which will cause an ajax process.
Although this is without a radgrid but error occured, is this due to child window?

I've read some articles about setting something at the web config file but i'm not sure if
its the appropriate solution for me. I'm using version v.2011.2.712.40

Regards,
Dexter
dexter
Top achievements
Rank 1
 asked on 22 Sep 2011
4 answers
116 views
I put the code so please help me with this problem and being able to solve. thanks

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 <%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"

 Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>

 <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

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

    <script language="javascript" type="text/javascript">

     function onRequestStart(sender, args) {

         if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0) {

                 args.set_enableAjax(false);

                 }

       }

 </script>

</telerik:RadScriptBlock>

<table>

<tr>

 <td style="width: 100px; height: 21px">

 <asp:Label ID="LblTituloReporte" runat="server" SkinID="TituloPaginasAdm" Text="Clientes"

 Width="786px"></asp:Label><br />

 <br />

 </td>

 </tr>

 <tr>

 <td>

 <table>

 <tr>

 <td>

 <asp:Label ID="LbClientes" runat="server" CssClass="FormatLabels" SkinID="TitleLabel"

 Text="Cliente" Width="145px"></asp:Label>

 </td>

 <td style="width: 245px">

 <asp:DropDownList ID="DropDownList1Abecedario" runat="server" Font-Names="verdana"

 AutoPostBack="true" Font-Size="10pt" Width="150px" OnSelectedIndexChanged="DropDownList1Abecedario_OnSelectedIndexChanged">

 <asp:ListItem Value="0">----</asp:ListItem>

 <asp:ListItem Value="1">A-C</asp:ListItem>

 <asp:ListItem Value="2">D-F</asp:ListItem>

 <asp:ListItem Value="3">G-I</asp:ListItem>

 <asp:ListItem Value="4">J-L</asp:ListItem>

 <asp:ListItem Value="5">M-O</asp:ListItem>

 <asp:ListItem Value="6">P-R</asp:ListItem>

 <asp:ListItem Value="7">S-U</asp:ListItem>

 <asp:ListItem Value="8">V-Z</asp:ListItem>

 </asp:DropDownList>

 <asp:UpdatePanel ID="UpdatePanel1" runat="server">

 <ContentTemplate>

 <asp:DropDownList ID="DropDownList1Organizador" runat="server" Font-Names="verdana"

 Font-Size="10pt" Width="380px">

 </asp:DropDownList>

 </ContentTemplate>

 <Triggers>

 <asp:AsyncPostBackTrigger ControlID="DropDownList1Abecedario" EventName="SelectedIndexChanged" />

 </Triggers>

 </asp:UpdatePanel>

 </td>

 <td style="width: 99px;">

<telerik:RadButton ID="ImgConsultar" Text="Consultar" runat="server" Skin="Hay" OnClick="ImgConsultar_Click">

 </telerik:RadButton>

 </td>

 </tr>

 <tr>

 <td>

 &nbsp;

 </td>

 <td>

 &nbsp;

 <asp:CheckBox ID="chkVerTodos" Text="Ver todos los clientes" AutoPostBack="true"

 OnCheckedChanged="chkVerTodos_OnCheckedChanged" runat="server" />

 </td>

 <td>

 </td>

 </tr>

 </table>

 <br />

 </td>

 </tr>

 </table>

 <table>

 <tr>

 <td style="width: 121px">

 &nbsp;

 <asp:Label ID="LbTituloCliente" runat="server" CssClass="FormatLabels" SkinID="TituloPaginasAdm"

 Text="Cliente" Visible="false" Width="660px"></asp:Label>

 <asp:Label ID="LbIngresoDatos" runat="server" CssClass="FormatLabels" Enabled="false"

 SkinID="TituloPaginasAdm" Text="Ingreso de datos" Visible="false" Width="160px"></asp:Label>

 </td>

 <td>

 </td>

 <td>

 </td>

 </tr>

 <tr>

 <td>

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 <ClientEvents OnRequestStart="onRequestStart" />

 <AjaxSettings>

 <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1">

 </telerik:AjaxSetting>

 <telerik:AjaxSetting AjaxControlID="RadGridHistorico">

 </telerik:AjaxSetting>

 </AjaxSettings>

 </telerik:RadAjaxManager>

 <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" HorizontalAlign="NotSet"

 Width="1195px">

 <telerik:RadGrid ID="RadGridHistorico" runat="server" Skin="Hay" AllowPaging="True"

 AutoGenerateColumns="False" GridLines="None" AllowFilteringByColumn="True" AllowSorting="True"

 ShowGroupPanel="True" ViewStateMode="Enabled" OnPreRender="RadGridHistorico_OnPreRender">

 <ExportSettings ExportOnlyData="true" FileName="Log clientes" HideStructureColumns="true"

 IgnorePaging="true" OpenInNewWindow="true" />

 <ClientSettings AllowDragToGroup="True">

 </ClientSettings>

 <MasterTableView CommandItemDisplay="Top">

 <CommandItemSettings ShowExportToExcelButton="true" />

 <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">

 </RowIndicatorColumn>

 <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">

 </ExpandCollapseColumn>

 <Columns>

 <telerik:GridBoundColumn AndCurrentFilterFunction="Contains" DataField="NitCliete"

 FilterControlAltText="Filter column column" HeaderText="NitCliete" UniqueName="column">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn AndCurrentFilterFunction="Contains" DataField="NombreCliente"

 FilterControlAltText="Filter column1 column" HeaderText="NombreCliente" UniqueName="column1">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn AndCurrentFilterFunction="Contains" DataField="ModificadoEliminado"

 FilterControlAltText="Filter column2 column" HeaderText="ModificadoEliminado"

 UniqueName="column2">

 </telerik:GridBoundColumn>

 </Columns>

 <EditFormSettings>

 <EditColumn FilterControlAltText="Filter EditCommandColumn column">

 </EditColumn>

 </EditFormSettings>

 </MasterTableView>

 <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">

 </ClientSettings>

 <GroupPanel Text="Arrastre la cabecera de la columna y sueltela sobre esta &#225;rea para agrupar los registros por esa columna.">

 </GroupPanel>

 <FilterMenu EnableImageSprites="False">

 </FilterMenu>

 <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Hay">

 </HeaderContextMenu>

 </telerik:RadGrid>

 </telerik:RadAjaxPanel>

 </td>

 </td>

 </tr>

  </table>

 <table>

  <tr>

 <td style="width: 100px">

 </td>

 </tr>

 </table>

 </asp:Content>

 

ALBERT
Top achievements
Rank 1
 answered on 21 Sep 2011
1 answer
125 views
Hello,

I have created a rad window popup inside of a web page that passes back data to it's parent, very similar to the demo you provide on your website. The code works perfectly fine in my local dev environment (VS2010), however when we test the same code on another web server the radwindow gives an exception stating '...file does not exist'. We added some logging and it seems to be looking for a code behind file that frankly for what purpose we do not understand. It seems to fail on the .Show() method of the radwindow itself as far as we can tell, when looking for this file.

Again the code works fine locally.

Here is how we have the window set up on the parent page:

<telerik:RadWindowManager ID="RadWindowManager1" <br>ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true" runat="server" EnableShadow="True" <br>VisibleTitlebar="true" EnableTheming="True" AutoSize="true" Behaviors="None" Skin="Forest"><br>    <Windows><br>        <telerik:RadWindow ID="rwChemicalCropApplicationRates" runat="server" <br>                            Behaviors="Close, Move"<br>                            OnClientClose="rwChemicalCropApplicationRates_Close"<br>                            NavigateUrl="Dialogs/ModifyCropApplicationRate.aspx" Skin="Telerik"><br>        </telerik:RadWindow><br>    </Windows><br></telerik:RadWindowManager>

On the radwindow itself we just use javascript to pass some of the data back to the parent page.

Again please note this all works perfectly fine in Visual Studio 2010, when we publish the code to another web server this popup (and only this one) does not work.

I am hoping you can help me look in the right direction.

Please let me know what other information, if any, I can provide.

Thank you very much in advance.
Justin
Top achievements
Rank 1
 answered on 21 Sep 2011
7 answers
135 views
http://demos.telerik.com/aspnet-ajax/grid/examples/client/scrolling/defaultcs.aspx.
Hi,
In the link, right top corner of the grid getting blank space(same like in my grid also). please give suggestion how to fill the color in that empty white space. like this happening in version 2011.

Regards
Saravana Kumar
Pavlina
Telerik team
 answered on 21 Sep 2011
8 answers
259 views
Hi,

I'm using a LiteralControl to catch exception errors within the RadGrid. The literal control is added to the bottom of the page, and on a long list of items cannot be seen. Please let me know a setting to add the LiteralControl someplace toward the top of the grid and highlite the line in red. The following is my c# code.

 

 

try

 

{

 

 

BlowDownDataLayer.InsertBlowDownEvents(this.ToString(),

 

 

 

Int32.Parse(RadComboboxPlant.SelectedValue.ToString()),

 

 

 

Int32.Parse(RadComboboxEquip.SelectedValue.ToString()),

 

txtEventDesc.Text.ToString(),

 

 

Int32.Parse(RadComboboxBldGasType.SelectedValue.ToString()),

 

 

 

Int32.Parse((insertedItem["BlowDownEmissionColumn"].Controls[0] as RadNumericTextBox).Text.ToString()),

 

 

 

Int32.Parse((insertedItem["NumberofBlowdownEvents"].Controls[0] as RadNumericTextBox).Text.ToString()),

 

 

 

DateTime.Parse(EventdtTime.SelectedDate.ToString()));

 

}

 

 

catch (Exception ex)

 

{

GridBlowDown.Controls.Add(

 

new LiteralControl("Unable to insert Event. If the problem persists, please contact IT Service Center (x8765)."));

 

e.Canceled =

 

true;

 

}

thanks,
Minh Bui

Andrey
Telerik team
 answered on 21 Sep 2011
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?