Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
95 views
I have read on a couple of blogs that the RadGridView allows the developer to programmatically set the FilterDescriptors property in order to bypass the UI filtering options on the grid.

As far as I can see, this property is absent on the regular ASP.NET MVC Grid control.

Are there any plans to add this functionality?  Or is there some other way I can achieve the same result?

Best Regards,
Matt Vermeulen
Atanas Korchev
Telerik team
 answered on 08 Dec 2009
7 answers
735 views
How do I change the icon in the top left of the title bar in my radconfirm window?
I am using RadWindowsManager and I can set the icon that way, but then the same icon appeas for RadAlert, RadConfirm, etc.

I want to specify the icon for only the RadConfirm window.  Please advise.

Thanks
Brett
Martin
Telerik team
 answered on 08 Dec 2009
1 answer
71 views
Hi,

Is there an upgrade path from RadControls for ASP.net to RadControls for ASP.net Ajax or do I need to purchase them all over again?

Thanks,
Rob
Princy
Top achievements
Rank 2
 answered on 08 Dec 2009
1 answer
203 views
So I  have a rad grid inside a modal rad dock with z-index of 9001 to cover a rad menu.  Basically I am trying to figure out how to set the z-index of the page size drop down so it doesn't appear behind the rad dock.
Any Ideas??

Thx,

Nate
Shinu
Top achievements
Rank 2
 answered on 08 Dec 2009
5 answers
159 views
Hello,

Is it possible to drag images accross the error to adjust alignment?
Rumen
Telerik team
 answered on 08 Dec 2009
2 answers
90 views
hi
i've noticed, in the previous version of rad controls there were two enum types available in the RecurrenceState. One was Occurrence and the second was Occurence. However, in the new release, Occurence (with single 'r') is not available.
Whats the difference between these two? or are they same but with a spelling mistake?

thanks
Waqas Aslam
Top achievements
Rank 2
 answered on 08 Dec 2009
3 answers
243 views
My numeric columns are right aligned.  In the edit mode (in place) I get a TextBox input that is left aligned.  I would like to have the text box that is right aligned e.g. numeric text is right justified within edit box.  Is this possible? Anybody know how? 

Chris
Princy
Top achievements
Rank 2
 answered on 08 Dec 2009
1 answer
123 views
Hi
I hope someone can help - I think I am list in syntax issues with this.
Trying to use showWindow(url) method to pass a record ID to the window.

I have this column in  a radgrid:
<telerik:GridTemplateColumn DataField="ID" DataType="System.Int32" SortExpression="ID" UniqueName="ID">  
    <ItemTemplate> 
      <asp:HyperLink ID="HyperLink1" runat="server"   
        NavigateUrl='<%# "javascript:onclientclick=showWindow('../podcast-player/play-podcast.aspx?ID=" & Eval("ID") & "');" %>'>Listen</asp:HyperLink>    
       </ItemTemplate> 
</telerik:GridTemplateColumn> 

and my javascript and window declaration:
<script type="text/javascript" language="javascript">  
     function showWindow(url) {  
         var oWnd = $find("<%=RadWindow1.ClientID%>");  
         oWnd.setUrl(url);  
         oWnd.show();  
     }  
     function OnClientClose(oWnd) {  
         oWnd.setUrl("about:blank"); // Sets url to blank      
     }     
</script>   
<telerik:RadWindow ID="RadWindow1" runat="server" Skin="Vista" Behaviors="Move,Close,Resize" VisibleStatusbar="False"   
Animation="Fade" Height="170px" Width="280px" 
                    OnClientClose="OnClientClose">  
                </telerik:RadWindow>              

The problem is 'the server tag is not well formed' at runtime.   I tried replacing the regular apostrophes inside the showWindow('....') with a different type of apostrophe (`), which removed the runtime error message, but the link does not do anything when clicked.

Please help me out of the syntax (I think) mire!

Thanks

Clive
Shinu
Top achievements
Rank 2
 answered on 08 Dec 2009
1 answer
173 views

how can I programmatically build an item template for a radcombobox with a checkbox?

                <telerik:RadComboBox ID="cmbOfficeMultiple" runat="server">  
                    <ItemTemplate> 
                            <asp:CheckBox runat="server" ID="chkListValues" /> <%#Eval("ListValueName")%> 
                    </ItemTemplate> 
                </telerik:RadComboBox> 

I want to start with this in the code in front, but add the itemtemplate in the codebehind. How is that done?

<telerik:RadComboBox ID="cmbOfficeMultiple" runat="server">  
</telerik:RadComboBox> 

 

Thanks!

Shinu
Top achievements
Rank 2
 answered on 08 Dec 2009
2 answers
865 views
Hi!

I'm using RadListView control that has two buttons with events inside as well as populating other
information inside ItemDataBound event. However, I'm not getting arguments right and compile
errors. What am I doing wrong?

<telerik:RadListView PageSize="3"

 

OnItemDataBound="lstRelatedItems_ItemDataBound" ID="lstRelatedItems"

 

 

ItemPlaceholderID="ListViewContainer" DataKeyNames="ItemID" runat="server">

 

<

 

LayoutTemplate>

 

 

<asp:PlaceHolder runat="server" id="ListViewContainer" />

 

 

</LayoutTemplate>

 

 

<ItemTemplate>

 

 

<asp:ImageButton ID="btnAddToFavourites" OnCommand="AddToFavourites_Command" CommandArgument='<%# Eval("ItemID") %>' runat="server" /><br />

 

<telerik:RadNumericTextBox ID="txtQuantity" Runat="server" Width="40px" CssClass="txt"

 

 

DataType="System.Int16" MaxLength="5" MinValue="1" MaxValue="99999" ToolTip="quantity">

 

 

<NumberFormat DecimalDigits="0" GroupSeparator="" />

 

 

</telerik:RadNumericTextBox>

 

 

<asp:ImageButton ID="btnAddToCart" OnCommand="AddToCart_Command" CommandArgument='<%# Eval("ItemID") %>' runat="server" />

 

 

</div>

 

 

</div>

 

 

</fieldset>

 

 

</ItemTemplate>

 

 

</telerik:RadListView>

 



protected

 

void lstRelatedItems_ItemDataBound(object sender, RadListViewCommandEventArgs e)

 

{

 

ImageButton btnAddToFavourites = e.ListViewItem.FindControl("btnAddToFavourites") as ImageButton;

 

 

ImageButton btnAddToCart = e.ListViewItem.FindControl("btnAddToCart") as ImageButton;

 

btnAddToFavourites.ImageUrl =

HttpContext.Current.Request.ApplicationPath + "\\images\\ATFButton.gif";

 

btnAddToCart.ImageUrl =

HttpContext.Current.Request.ApplicationPath + "\\images\\ATOButton.gif";

 

 

 

RadListViewDataItem lvitem = (RadListViewDataItem)e.ListViewItem;

 

 

Item item = ItemManager.GetByItemID(Convert.ToInt32(lvitem.GetDataKeyValue("ItemID")));

 

}

 

public

 

void AddToFavourites_Command(Object sender, DataListCommandEventArgs e)

 

{

 

int itemID = Convert.ToInt32(e.CommandArgument);

 

 

try

 

 

 

 

{

 

ShoppingCartManager.AddToCart(ShoppingCartTypeEnum.Favourites, itemID, 1);

 

}

 

catch (Exception ex)

 

{

 

}

}

 

public void AddToCart_Command(Object sender, DataListCommandEventArgs e)

 

{

 

TextBox txtQuantity = e.Item.FindControl("txtQuantity") as TextBox;

 

 

int itemID = Convert.ToInt32(e.CommandArgument);

 

 

if (txtQuantity.Text != string.Empty)

 

{

 

try

 

 

 

 

{

 

ShoppingCartManager.AddToCart(ShoppingCartTypeEnum.ShoppingCart, itemID, Convert.ToInt16(txtQuantity.Text));

 

((

BaseOclMasterPage)Page.Master).LoadCart();

 

((

BaseOclMasterPage)Page.Master).LoadViewCart();

 

 

if (SettingManager.GetSettingValueBoolean("Display.StayOnSamePageWhenAddedToCart") == false)

 

Response.Redirect(

"~/ECommerce/ShoppingCart.aspx");

 

}

 

catch (Exception ex)

 

{

}

}

}

Joe
Top achievements
Rank 1
 answered on 08 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?