Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
286 views
<telerik:RadAjaxManager ID="ajaxManager" runat="server"
        <AjaxSettings
            <telerik:AjaxSetting AjaxControlID="gvMemberList"
                <UpdatedControls
                    <telerik:AjaxUpdatedControl ControlID="gvMemberList" LoadingPanelID="ajaxLoadingPanel" /> 
                       
                </UpdatedControls
            </telerik:AjaxSetting
         <telerik:AjaxSetting AjaxControlID="btnRefresh"
                <UpdatedControls
                    <telerik:AjaxUpdatedControl ControlID="gvMemberList" LoadingPanelID="ajaxLoadingPanel" />                    
                    <telerik:AjaxUpdatedControl ControlID="tabDetails" LoadingPanelID="ajaxLoadingPanel" />                     
                </UpdatedControls
            </telerik:AjaxSetting
        </AjaxSettings
 </telerik:RadAjaxManager
    
    <telerik:RadAjaxLoadingPanel ID="ajaxLoadingPanel" runat="server" Skin="Default"
    </telerik:RadAjaxLoadingPanel
    
    
<asp:ImageButton ID="btnRefresh" ImageUrl="~/Images/refresh.png" OnClick="btnRefresh_Click"
                            runat="server" ToolTip="Refresh all list." /> 
    
<telerik:RadGrid ID="gvMemberList" runat="server" AllowPaging="True" OnInit="gvMemberList_Init"
                            AllowCustomPaging="true" AllowSorting="True" SkinsPath="RadControls/Skins" EnableAJAX="True"
                            OnSortCommand="gvMemberList_SortCommand" OnPageIndexChanged="gvMemberList_PageIndexChanged"
                            OnItemDataBound="gvMemberList_ItemDataBound" OnItemCommand="gvMemberList_ItemCommand"
                            GridLines="None" EnableEmbeddedSkins="true" PageSize="10" Visible="true" ShowStatusBar="true"
                            LoadingTemplateTransparency="45" Width="90%" CellSpacing="0" CellPadding="0"
                            AutoGenerateColumns="false" AllowFilteringByColumn="True" Skin="WebBlue"
                            <GroupingSettings CaseSensitive="false" /> 
                                
                            <MasterTableView DataKeyNames="EmpID" FilterItemStyle-Width="1%" AllowFilteringByColumn="true"
                                AllowMultiColumnSorting="false"
                                <Columns
                                        
                                    <telerik:GridBoundColumn DataField="EmpName" HeaderText="EmployeeName" UniqueName="EmployeeName"
                                        HeaderStyle-HorizontalAlign="Center" FilterControlWidth="25px"
                                        <ItemStyle HorizontalAlign="Center" Width="1%" /> 
                                    </telerik:GridBoundColumn
                                    <telerik:GridBoundColumn DataField="Address" HeaderText="Emploee Address" UniqueName="Emploee Address"
                                        HeaderStyle-HorizontalAlign="Center" FilterControlWidth="25px"
                                        <ItemStyle HorizontalAlign="Center" Width="1%" /> 
                                    </telerik:GridBoundColumn
                     </Columns
                            </MasterTableView
 </telerik:RadGrid
    
 <telerik:RadTabStrip ID="tabMemberDetails" runat="server" Skin="WebBlue" MultiPageID="tabDetails"
                            SelectedIndex="0" Align="Justify" ClickSelectedTab="true" EnableViewState="false"
                            ReorderTabsOnSelect="true" Width="1139px" OnTabClick="tabMemberDetails_Click"
                            ScrollChildren="true"
                        </telerik:RadTabStrip
 <telerik:RadMultiPage ID="tabDetails" ScrollBars="Auto" runat="server" SelectedIndex="0"
                            CssClass="pageView" Width="1137px" Height="470px"
 </telerik:RadMultiPage>
protected void tabMemberDetails_Click(object sender, RadTabStripEventArgs e) 
StatusNotes control = LoadControl("~/Controls/StatusNotes.ascx") as StatusNotes; 
control.btnSaveClk += new StatusNotes.btnStatus_Click(control_btnSaveClk); 
    
 void control_btnSaveClk(object sender, EventArgs e) 
{             
     btnRefresh_Click(this, new ImageClickEventArgs(0,0)); 
    
protected void btnRefresh_Click(object sender, ImageClickEventArgs e) 
        
            gvMemberList.Rebind();             
        }

I have a RadGrid and TabControl. In RadAjaxmanger, I am updating my grid when i click gridrows or when i click the refresh button.
I have a usercontrol with a button and I have exposed its event btnSaveClk. In that event I call the Refresh button click event which rebinds the grid. When i debug the code, the data set shows the fresh data, but it is not reflect in the UI.
I know the obvious problem is the btnrefresh_Click was not fired by clicking the Refresh button but it was called indirectly by some other event. Hence Can anyone help me how to work it out.
Radoslav
Telerik team
 answered on 30 Nov 2010
1 answer
177 views
I'm looking for a way to easily upload folders and multiple files. When I select a folder in addition to files, it only uploads the files and skips the folder and anything in the folder.  I'd like to keep the folder and sub-folder structure. 

Is there a way to handle this scenario?

Thanks Mario
Cori
Top achievements
Rank 2
 answered on 30 Nov 2010
3 answers
78 views
Has anyone had perfomance reducing resizing issues when using the radgrid in client-side mode only? 
Maria Ilieva
Telerik team
 answered on 30 Nov 2010
3 answers
157 views
Hi,

using Captcha for the first time. I added the control on the page, but in the samrt tag I can't see the "Enable RadCaptcha HttpHandler" Link and also not the "Skin" dropdown.

I am using ASP.NET 4, VB and Telerik Controls 2010 Q3.

Thanks

Regards

Thomas
Pero
Telerik team
 answered on 30 Nov 2010
4 answers
245 views
Hello All,

I having a grid in which we create control dynamically in their header which will perfectly loaded below below on

ItemDataBound

method.

Method CreateHeaderControls(e); is doesn't call while we click a record on click which will call below method,

Is there any possibility to call CreateHeaderControls(e); in method RaisePostBackEvent(IPostBackEventHandler source, string eventArgument)

or else any alternate..thnx please help?

 

 


 

protected

 

override void RaisePostBackEvent(IPostBackEventHandler source, string eventArgument)

 

{

 

try

 

 

 

 

{

 

base.RaisePostBackEvent(source, eventArgument);

 

 

if (source == this.grdADInbox && eventArgument.IndexOf("RowDblClicked") != -1)

 

{

 

RadGrid rg = (RadGrid)source;

 

 

int index = int.Parse(eventArgument.Split(':')[1]);

 

 

========================================================================

 

protected

 

void grdADInbox_ItemDataBound(object sender, GridItemEventArgs e)

 

{

CreateHeaderControls(e);

}



private

 

void CreateHeaderControls(GridItemEventArgs args)

 

{

 

Button btnGroupApprove = new Button();

 

 

Button btnGroupReject = new Button();

 

 

String tranType = String.Empty;

 

 

Int32 tranCount = 0;

 

 

try

 

{

 

 

if (args.Item is GridGroupHeaderItem)

 

{

 

GridGroupHeaderItem item = args.Item as GridGroupHeaderItem;

 

 

 

DataRowView groupDataRow = (DataRowView)args.Item.DataItem;

 

 

if (groupDataRow != null)

 

{

tranType =

((System.Data.

DataRowView) (((Telerik.Web.UI.GridGroupHeaderItem) item).DataItem)).Row.ItemArray

 

.GetValue(0).ToString();

tranCount =

 

Convert.ToInt32(((System.Data.DataRowView)(((Telerik.Web.UI.GridGroupHeaderItem)item).DataItem)).Row.ItemArray

 

.GetValue(1).ToString());

}

 

 

btnGroupApprove.ID =

"btnGroupApprove";

 

btnGroupApprove.Text =

"Approve All";

 

btnGroupReject.ID =

"btnGroupReject";

 

btnGroupReject.Text =

"Reject All";

 

 

Label lbl = new Label();

 

lbl.ID =

"lblGroup";

 

 

String strGroupingText = item.DataCell.Text;

 

 

if (strGroupingText != "&nbsp;")

 

{

 

if (strGroupingText.Contains("("))

 

{

strGroupingText = strGroupingText.Remove(strGroupingText.IndexOf(

"("));

 

}

lbl.Text = strGroupingText.Insert(strGroupingText.IndexOf(

"Total"), "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");

 

lbl.Text +=

"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";

 

item.DataCell.Controls.Add(lbl);

}

item.DataCell.Controls.Add(btnGroupApprove);

item.DataCell.Controls.Add(btnGroupReject);

}

 

string strApproveUrl = "ApproveAction.aspx?action=GroupApprove&&Tran_Type=" + tranType + "&&Tran_Count=" + tranCount;

 

 

string strRejectUrl = "ApproveAction.aspx?action=GroupReject&&Tran_Type=" + tranType + "&&Tran_Count=" + tranCount;

 

btnGroupApprove.Attributes.Add(

"onclick", "return ShowApprovalPopUp('" + strApproveUrl + "');");

 

btnGroupReject.Attributes.Add(

"onclick", "return ShowApprovalPopUp('" + strRejectUrl + "');");

 

}

 

catch (Exception ex)

 

{

 

throw ex;

 

}

}

ajmal
Top achievements
Rank 1
 answered on 30 Nov 2010
3 answers
340 views

Hello Sir,

 

I have radgird which is bound with sqldatasource..the griddropdown is bound with sqldatasource..
i want when i select the item of dropdown i want to enable or disable checkbox..which is also a bound column in grid.

how can i do this..please help me to solve this issue.

thanks

Princy
Top achievements
Rank 2
 answered on 30 Nov 2010
1 answer
72 views
Hi,

I have a radtreeview (dynamically populated) on the main page which also contains an iframe. On the click of node/context menu, I set the src of the iFrame to load the appropriate page. There are some redirects to other pages which also happen in the iframe. On click of a submit button which is on the iframe page, a new tree node is created in the database. I want to reload just the radtreeview on the parent page showing the newly created radtreenode , when the above submit button is clicked.
Any thoughts or ideas on this?

Also, is there any other telerik control that I can use in place of iframe?

Thanks
Nikolay Tsenkov
Telerik team
 answered on 30 Nov 2010
5 answers
507 views

Hi,

I'm currently using the usercontrl edit form and I would like to have this function in javascript
if the value of the rdbBillable= 1
then enable some of the textboxes
else
disable the text boxes

The problem is when I place the javascript inside the ascx page, the it complaints that there is no javascript (Microsoft JScript runtime error: Object expected), but then if I put in the aspx page, it also complaint for this line

 

radio = $find(

'<%= rdbBillable.ClientID %>');

 

 

Compiler Error Message: CS0103: The name 'rdbBillable' does not exist in the current context.

Thanks

Vinh Vu 

Princy
Top achievements
Rank 2
 answered on 30 Nov 2010
2 answers
93 views
Hi,
I am sorry if I am repeating an existing question, but can you tell me what is client side creation order of the objects that represent rad controls, especially those inside a RadGrid. I need to know if a RadGrid control that contains Rad controls inside its ItemTemplate will fire its RowCreated event after the creation of the clientside objects inside that particular row. Or is there an event I can hook up to, that will always get fired after the grid and the controls inside have been created on the client. Can you clarify also if this ordrer of creation is somehow altered after an AJAX request caused by RadAjaxManager. My goal is to have an event where I can walk through the grid control and get the controls inside each item and make some additional client-side configuration on them - therefore I need them all to be created and the .get_element() methods to point to a valid markup.
Any help on this topic is well appreciated.
Ivaylo
Top achievements
Rank 1
 answered on 30 Nov 2010
2 answers
227 views
Hi

I have a usercontrol inside a RadTabStrip. 5 Pageviews are contained in the tabStrip and the usercontrol embedded in the 3rd page. The usercontrol have a radscriptblock which have functions for ClientSelectedIndexChanged of a combo. AutoPostBack of RadTabStrip and RenderSelectedPageOnly of RadMultiPage set to true. When the 3rd page selected, a JS error occurs with the message 'ClientSelectedIndexChanged could not find'. How can I fix the issue?

thanks and regards

binoj
Binoj
Top achievements
Rank 1
 answered on 30 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?