Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
88 views

Hi -- I have a RadComboBox on parent page.  When I click a button on the page, it opens up a Popup.  The Popup builds a string and populates a TextBox with it.  When user closes the Popup, I want this string to be added to the RadComboBox on the parent page.  I can't seem to be able to pass this string to the parent page.  If I use a TextBox instead of RadComboBox, I can update it from the client code on OnClientClose event but there doesn't seem to be a way to access RadBoxComboItems in client code.

I tried using the code posted in some demos such as "var comboboxItem = new Telerik.Web.UI.RadComboBoxItem()".
But even though I have "<%@ Register Assembly='Telerik.Web.UI' Namespace='Telerik.Web.UI' TagPrefix='telerik' %>, it complains that "Telerik" is not defined.  We are using Telerik Rad controls version "Q1-2010". 

If we cannot create RadComboBoxItem in client code using this method described in the demo for this verison of telerik, is there any other way to do what I am trying to do?

Thanks
Sandhia
Ivana
Telerik team
 answered on 07 Feb 2012
1 answer
71 views
Hi

We have the radscheduler running in a webpart in Sharepoint 2010
http://dcsite.activclient.com/Pages/Events-Calendar.aspx

however after navigating through a month or two none of the links work anymore?

kind

Plamen
Telerik team
 answered on 07 Feb 2012
3 answers
72 views
How can I select rows in RadGrid through the up / down arrows?Sorry for bad english .. Help ... 
Tsvetoslav
Telerik team
 answered on 07 Feb 2012
0 answers
58 views
Hello,

I use a third party tool (NPOI) with RadGrid to export both rows and charts (images) into Excel. When user clicks to a button it exports the populated data in RadGrid1 which is only Page1. I need to export all the pages in this RadGrid, not only the page RadGrid has been populated. (I can direct connect datatable to NPOI but in this case RadGrid1 related functions like Filtering, Sorting won't work so this is not a solution)

So, how can I export all the pages in a RadGrid but not only the populated page into Excel? I don't use Telerik export method...Any Ideas?

Thank you,
Ervin

ervin
Top achievements
Rank 1
 asked on 07 Feb 2012
1 answer
83 views
Hello,

I have a RadGrid that I'm binding dynamically with different data table based on the choice customer makes but when I "enable" the ViewStateMode of the RadGrid to maintain the filter value, paging messes up.

If I am on page 3 of RadGrid with DataTable "A" then when the datasource of RadGrid is changed to Data Table "B" it shows page 3 instead of page 1. Also, the forward buttons of the pager changes the page but numeric button 2 stays highlighted even if I have clicked 7 times..

Please help!

Best Regards,
Effat
Tsvetoslav
Telerik team
 answered on 07 Feb 2012
4 answers
254 views

CommandItemDisplay

="Bottom" property adds the  "Add new record" and "Refresh" button by default.

But my requirement is want to display only the Refresh button.
The Add New Record Text and Image is not required.

How can i accomplish this??

Kindly help me...

Tsvetoslav
Telerik team
 answered on 07 Feb 2012
2 answers
109 views
hi

I have a  radmenu with default skin.

When i set URL routing in Global.asax to

routes.MapPageRoute(

"login", "{*username}", "~/login.aspx")
it losses all its CSS and theme.

But when i set it to  

routes.MapPageRoute("login", "login/{*username}", "~/login.aspx")
it display normal with all its CSS and theme.

Why it isn't working for the first routing? thanks

 

Kate
Telerik team
 answered on 07 Feb 2012
2 answers
122 views
Hi,

I have some RadGrids on a page, and I'd like a loading panel to show up during AJAX calls. For example, let's focus on a virtual scrolling grid.

On this demo page, we can see virtual scrolling, and a loading panel showing up as you scroll. For some reason, no matter what I try, I can't get the loading panel to show. The AJAX magic does work, though.

Are there common pitfalls that I should be aware of, or something?

My code:
In a first control:

<telerik:RadScriptManager ID="scriptManager" runat="server" />
 
(...)
 
<telerik:RadAjaxManager ID="ajaxManager" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="resultGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="resultGrid" LoadingPanelID="resultAjaxPanel"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

In a sub control:

<telerik:RadAjaxLoadingPanel ID="resultAjaxPanel" runat="server" />
 
<telerik:RadGrid ID="resultGrid" runat="server" AutoGenerateColumns="False" ShowHeader="False"
    AllowPaging="True" PageSize="30" PagerStyle-Visible="false" CellSpacing="0" GridLines="None" OnItemCreated="resultGrid_ItemCreated" OnItemCommand="resultGrid_ItemCommand" OnItemDataBound="resultGrid_ItemDataBound">
<MasterTableView>
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
    <Columns>
        <telerik:GridMaskedColumn UniqueName="idColumn" FilterControlAltText="Filter idColumn column" DataField="Id" Visible="false">
        </telerik:GridMaskedColumn>
        <telerik:GridBoundColumn DataField="Extension" FilterControlAltText="Filter extensionColumn column" UniqueName="extensionColumn">
            <ItemStyle Width="20px" CssClass="extensionColumn" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Title" FilterControlAltText="Filter linkColumn column" UniqueName="linkColumn">
            <ItemStyle CssClass="titleColumn" />
        </telerik:GridBoundColumn>
        <telerik:GridTemplateColumn>
            <ItemTemplate>
                <a href='<%# this.ResolveUrl("Preview.ashx?" + Insite.Web.Widgets.FilterSearch.Preview.IdParam + "=" + Eval("Id")) %>' target='_blank'><asp:Image ImageUrl="~/Widgets/FilterSearch/images/icon_loupe.png" runat="server" /></a>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Right" Width="16px" />
        </telerik:GridTemplateColumn>
        <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Add"
            FilterControlAltText="Filter addColumn column" UniqueName="addColumn" Text="ADD">
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle HorizontalAlign="Right" Width="30px" CssClass="addColumn" />
        </telerik:GridButtonColumn>
    </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
 
<ClientSettings>
    <Scrolling AllowScroll="True" EnableVirtualScrollPaging="true" SaveScrollPosition="True">
    </Scrolling>
</ClientSettings>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
 
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
 
</telerik:RadGrid>
Thomas
Top achievements
Rank 1
 answered on 07 Feb 2012
1 answer
122 views
Hi,

I have a grid control to which I add a GridButtonColumn. Later, I add an OnClick client event. This part works fine. The image is displayed within each row of the grid and if I click on the image, the javascript function is executed.

Now from within the javascript function, I want to access a value from the grid. The value should come from the row which contains the button which was clicked on. Looking on the internet, I have managed to find out how to get this to work if a row has been selected. The problem is that when you click on a grid button, the row containing the grid button is not necessarily selected e.g. If I first select a row and then click on the button, I can get the value, but if I just click on one of the buttons without first selecting a row, I am aunable to determine the row containing the button. The clicked button itself is inside a specific row so there must be some way to get it.

Below are a few snippets of relevent code. Any help would be greatly appreciated.

Creating the button:

var inchisIncomingEmail = new GridButtonColumn();
grid.MasterTableView.Columns.Add(inchisIncomingEmail);

Adding the onclick event to the button
if (e.Item is GridDataItem)
            {
                GridDataItem item = (GridDataItem)e.Item;
                ImageButton btnColumn1 = (ImageButton)item["objhisIncomingEmailID"].Controls[0];
                btnColumn1.Attributes.Add("OnClick", "IncomingEmailClick()");
            }

client side javascript event handler. Only works as expected if a row is selected prior to clicking on the button - even though the button itself is inside a specific row.
function IncomingEmailClick(obj, args) {
            IncomingEmailOpenWindow('<%=ResolveUrl("~/Modules/Common/HistoryDetail.aspx") %>', obj, null);
        }
 
        function IncomingEmailOpenWindow(url, grid, closeFn) {
            var gridc = $find("<%=grid.ClientID%>");
            var items = gridc.get_masterTableView().get_selectedItems();
             
            if (items.length > 0) {
                url = url + '?id=' + items[0].getDataKeyValue('objhisID') + '&type=<%=(int)ListType %>' + '&objId=<%=ItemGuid %>';
            }
            var win = radopen(url, null);
            win.set_modal(true);
            win.setActive(true);
            if (closeFn != null) {
                win.OpenerWindowCloseFn = closeFn;
            }
        }

Ryan
Top achievements
Rank 1
 answered on 07 Feb 2012
2 answers
111 views
hi

based on the example you have http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceheadertemplates/defaultvb.aspx
where your 4 speakers has static settings in the resource style and mapping.

I am having an eviromment where my speakers are very dynamic. we engage many different speakers on an assignment basis and we insert speaker as we engage them and delete them when don't require their speaking engagement.

Grouping is done vertically and we uses Timeline to display speakers on the left without displaying time.

How do i go about it doing dynamically?

Thanks
Ivana
Telerik team
 answered on 07 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?