Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
185 views
Hey,

I have a javascript function (below) that calls the RadGrid1_ItemCommand.  In all instances in which there is any data currently in my radgrid the firecommand works perfectly.  However, if there is no data in the grid yet the firecommand never reaches the RadGrid1_ItemCommand method.  Can someone explain why this is the case?  Any suggestions on how to make the fireCommand fire in instances in which there is not yet data in the grid?

Thanks for any insight!  Winston

 

function Insert()

 

{

 

var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();

 

masterTable.fireCommand(

"Insert","");

 

}


Schlurk
Top achievements
Rank 2
 answered on 18 Sep 2009
4 answers
133 views
I have a grid that's declared in the ASPX and I want to create the columns in the codebehind. I think I'm doing exactly waht's in the documentation but all I get is an empty box displaying. Here's my code:

In the ASPX:

<radG:RadGrid ID="RadSummary" runat="server" AllowSorting="True" AutoGenerateColumns="false">

 

 

    <MasterTableView AutoGenerateColumns="false" AllowNaturalSort="False"></MasterTableView>

 

 

    <ClientSettings AllowColumnsReorder="true" ApplyStylesOnClient="False" EnablePostBackOnRowClick="false">

 

 

        <Selecting AllowRowSelect="false" />

 

 

    </ClientSettings>

 

 

</radG:RadGrid>


In the code-behind in the clicked event of a button I have:

GridBoundColumn

 

boundColumn = new GridBoundColumn();

 

RadSummary.MasterTableView.Columns.Add(boundColumn);

boundColumn.HeaderText = "Column 1;

 

 

RadSummary.DataBind();

 


I want this grid to display with no datarows - just the column headings, but when the event fires to add the columns nothing (visible) happens. What am I doing wrong - does the grid need to be bound to some datasource before it will display?

 

 

bgoldca
Top achievements
Rank 1
 answered on 18 Sep 2009
3 answers
501 views
Hello,

I'm having issues with the RadGrid. I'm loading data in a Grid and at times, certain columns need to be hidden dynamically.

For example, the user selects such by "A" and we want to hide a column because that data is not related to search "A" but the rest of the columns are.

The issue is when the hidden column, using display none (because you may want to interact with the column still; javascript, print, etc.), has successors (columns that follow) everything gets hidden.

For example, a grid has columns A, B, C, D. You set column "B" to be display none via C# in the code behind of an aspx page and now columns B, C, D disappear as well. Think of it as the display none property / setting of column B cascades through columns C and D.

Is this a bug and if so is there a plan to resolve it in the next release?

Thanks, assistance is appreciated.
Schlurk
Top achievements
Rank 2
 answered on 18 Sep 2009
3 answers
402 views
Hi,

I saw your example about the SkinChooser combobox of the RadSkinManager.

In this example you show how to remove some skin, but no how to add new one.

so it's possible to add new Skin in the RadSkinManager and how.

Thanks.
Sebastian
Telerik team
 answered on 18 Sep 2009
2 answers
302 views
I want to put a label on a toolbar.

I  tried adding a button and disabling it (so the user couldn't click on it) but it looks deadful ('cos of what IE does to the text when the object's been disabled).

Can anyone think of a way of adding a bog-standard asp:Label to a toolbar that doesn't cause any toolbar events?

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 18 Sep 2009
1 answer
116 views
I got this runtime error when using RadAjaxPane
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
My code is

<

 

telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server" LoadingPanelID="LoadingPanel1">

 

 

 

<table width="100%" border="0" cellspacing="0" cellpadding="0">

 

 

<tr>

 

 

<td style="width: 105px"><a href="#" id="idCompliance" runat="server">><asp:ImageButton ID="btnCompliance" runat="server" ImageUrl="~/images/btn_compliance.gif" /></a></td>

 

 

<td style="width: 105px"><a href="#" id="IdCalc" runat="server"> <asp:ImageButton ID="btnCalc" runat="server" ImageUrl="~/images/btn_calculate.gif" /></a></td>

 

<%

If isProclose = True Then%>

 

 

<td style="width: 105px"><a href="#" id="idProcloseDownload" runat="server"><img src="<%=m_strVirtualPath%>images/btn_xml.gif" alt="" width="85" height="34" style="border-style: none" /></a></td>

 

 

<td style="width: 105px"><a href="#" id="idMathCorpInDownload" runat="server"><img src="<%=m_strVirtualPath%>images/btn_in.jpg" alt="" width="85" height="34" style="border-style: none" /></a></td>

 

 

<td style="width: 105px"><a href="#" id="idMathCorpOutDownload" runat="server"><img src="<%=m_strVirtualPath%>images/btn_out.jpg" alt="" width="85" height="34" style="border-style: none" /></a></td>

 

<%

End If%>

 

 

<td align="right"><a href="#" id="IdPrint" runat="server"><asp:ImageButton ID="btnPrint" runat="server" ImageUrl="~/images/btn_print.gif" /></a>&nbsp;

 

 

<a href="#" id="IdCourier" runat="server"><asp:ImageButton ID="btnCourier" runat="server" ImageUrl="~/images/btn_courier.gif" /></a></td>

 

 

</tr>

 

 

</table>

 

 

</telerik:RadAjaxPanel>
I know the server-side code "<%If isProclose = True Then%>" caused the error, If I removed it, it is back to work. But I can't remove it there are two many.

Your help is apprecated.
Thanks
Wei

 

Martin
Telerik team
 answered on 18 Sep 2009
1 answer
116 views
I've wired up some post-processing code to fire on DataBound and it works when the page index changes, the column order, datasource changes, but not when the page size changes.
Mira
Telerik team
 answered on 18 Sep 2009
4 answers
188 views
I have a slider that allows a user to select a certain month/year that will filter pertinent data.  The slider's items are dynamically added, and there are about 21 in all.  Because there are many month/year items, it is impossible to read the their text, as the individual item width has gotten so small.  I have used the http://demos.telerik.com/aspnet-ajax/slider/examples/valueandrange/defaultcs.aspx example to allow the selected item's full text to be displayed in a div, but I can't figure out how to keep the smushed text along the RadSlider from displaying.

I've tried the following:
  • Changing the slider's height to "0"
  • Setting each item's visibility to "false"
  • Setting each item's "style" attribute to "display: none;"
  • Setting the slider's LargeChange and SmallChange to high values
  • Setting each item's ForeColor to "White"

My application release date is coming up, so I'm getting pinched for time.  Thank you.

Ryan
Top achievements
Rank 1
 answered on 18 Sep 2009
5 answers
68 views
I have a MasterPage/ContentPage scenario.  I have 3 RadComboboxes on the content page that call a webservice to get populated.  The RadAjaxManager is on the Master page.  I have a RadAjaxManagerProxy on the content page.  I have the RadAjaxManagerProxy configured so that each RadCombobox updates itself and there is no postback if the selected index changes.  This works just fine.  If the first RadCombobox's selected index changes, I want to also Ajaxify a ASP.Net Gridview server control without causing a postback.  This is basic data filtering functionality.  I think I need to use a RadAjaxPanel around the Gridview, but I'm not quite sure how to link RadCombobox to update the Gridview or if I can use all these RadAjax controls on the same page.  So here I am looking for suggestions.

Thanks,
Rob
Sebastian
Telerik team
 answered on 18 Sep 2009
6 answers
267 views
Hi,

I am running into this problem when I am trying to allow dynamic theming...

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The control type 'Telerik.Web.UI.RadDockLayout' cannot be themed.

Source Error:

<
telerik:RadDockLayout Skin="Default" runat="server" />

SPECIAL NOTE

I am able to successfully theme the RadMenu using the same logic...

<

telerik:RadMenu Skin="Default" runat="server" />

This works fine.

CONCLUSION

Possibly, that you forgot to give permission in your dock class to allow theming?

Any Help is greatly appreciated!

Angela

Jim
Top achievements
Rank 1
 answered on 18 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?