Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
111 views

In my web application I'm using RadWizard in RadWindow for import personels from excel. So in first step there is a RadAsyncUpload control. When ´ActiveStepIndex==1´ saving excel to server in ´NextButtonClick´ event. And when step index is 2 inserting personels.

 

protected void excelImportWizard_NextButtonClick(object sender, WizardEventArgs e)
{
    if (excelImportWizard.ActiveStepIndex == 1)
    {
        var files = excelImportAsyncUpload.UploadedFiles;
        if (files.Count == 0)
        {
            e.CurrentStep.Active = true;
            CurrentMaster.AlertWindow("Lütfen içeri alınacak verileri içeren dosyayı yükleyiniz.");
            return;
        }
 
        SaveFile(files[0]);
 
        ExcelImportPreviewSpreadsheet.Provider = new SpreadsheetDocumentProvider(LastSavedFilePath);               
    }
 
    if (excelImportWizard.ActiveStepIndex == 2)
    {
        Departments = OperationController.GetDepartments();
        Companies = DefinitionController.GetParentCompaniesFromCompanyType(new List<int> { 2, 3, 4 });
        PersonelProfessions = DefinitionController.GetAllPersonelProfessions();
        PersonelTitles = OperationController.GetPersonelTitles(SessionManager.CurrentUser.ProfileIdentifier);
 
 
        ProcessFile(excelImportAsyncUpload.UploadedFiles[0]);
 
    }
}

 

When importing personels finishes and user clicks finish button of radwizard I'm closing RadWindow from client side in parent window of RadWindow.

protected void excelImportWizard_FinishButtonClick(object sender, WizardEventArgs e)
{         
    RadAjaxManager.GetCurrent(Page).ResponseScripts.Add(@"clearUpload();");
    RadAjaxManager.GetCurrent(Page).ResponseScripts.Add(@"" + CallBackFunctionOnFinish + "();");
}

 

But when I open RadWindow again, I see that RadWizard's active step is still last WizardStep. Because of this I set active step to 0 on finish button click.

excelImportWizard.ActiveStepIndex = 0;

 

After I set active step index to 0 manually I opened radwindow and see wizard waits on first step as I wanted. But when I click next button ActiveStepIndex is still 0, not changed to 1. How do I set RadWizard correctly to the initial state on RadWindow opening.

Yusuf
Top achievements
Rank 1
 asked on 09 Apr 2017
1 answer
225 views

I read a forum thread , documentation  Using RadWindow as a Dialog  and a demo Window - Return Values from a Dialog. Everything was nice and gave good understanding. But the return value is determined at server side(for example in btnSave_Click event handler) in my scenario.  So is there any way to set the arguments of radwindow object in server side i.e code behind ?

 

In all texts above i mentioned there is a javascript function GetRadWindow () . In that function there is an object used window . What is the server-side equivalent to window object ? I am pondering that whether there is a way to mimic GetRadWindow  function into c# in code behind ?

siva sankaran
Top achievements
Rank 1
 answered on 09 Apr 2017
2 answers
139 views
Hi,

Could someone please let me know why the tab-order is not working when the item is selected from radComboBox and clicking on tab should take to the next control with higher tab order instead it is taking the focus to radMenu bar which is in the master page?

During the page_load event, the first comboBox is given the focus. Odd behaviour is without selecting any item in the combobox, if I press tab, it moves to correct control but once the item is selected and tab is entered, it does not work.


Thanks a lot.

Milan G
Sachin
Top achievements
Rank 1
 answered on 09 Apr 2017
0 answers
122 views

hi, i want have some textboxes in a RadGrid and i use each one of the(insert some data in database)

i don't know what i have to do please some help to me

 <telerik:RadGrid AutoGenerateColumns="False" ID="RIV_RateHireGrid" MasterTableView-DataKeyNames="ID" AllowPaging="True" PageSize="5" AllowCustomPaging="False"
                                OnItemCommand="ActionForGrid" OnItemCreated="RadGrid_ItemCreated" AllowSorting="True" Skin="Web20" CellSpacing="0" GridLines="None" runat="server">
                                <MasterTableView EditMode="InPlace" EnableNoRecordsTemplate="true">

                                    <ColumnGroups>
                                        <telerik:GridColumnGroup HeaderText="CMO" Name="CMO">
                                        </telerik:GridColumnGroup>
                                        <telerik:GridColumnGroup HeaderText="RIV" Name="RIV">
                                        </telerik:GridColumnGroup>
                                        <telerik:GridColumnGroup HeaderText="a" Name="Ra" ParentGroupName="RIV"></telerik:GridColumnGroup>
                                        <telerik:GridColumnGroup HeaderText="b" Name="Rb" ParentGroupName="RIV"></telerik:GridColumnGroup>
                                        <telerik:GridColumnGroup HeaderText="c" Name="Rc" ParentGroupName="RIV"></telerik:GridColumnGroup>

                                        <telerik:GridColumnGroup HeaderText="a" Name="Ca" ParentGroupName="CMO"></telerik:GridColumnGroup>
                                        <telerik:GridColumnGroup HeaderText="b" Name="Cb" ParentGroupName="CMO"></telerik:GridColumnGroup>
                                        <telerik:GridColumnGroup HeaderText="c" Name="Cc" ParentGroupName="CMO"></telerik:GridColumnGroup>


                                    </ColumnGroups>

                                   
                                    <HeaderStyle HorizontalAlign="Center" Font-Names="b nazanin" Width="16.66" />
                                    <AlternatingItemStyle HorizontalAlign="Center" Font-Names="b nazanin" Width="16.66" />
                                    <ItemStyle HorizontalAlign="Center" Font-Names="b nazanin" Width="16.66" />
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="ID" HeaderText="gp" />
                                        <telerik:GridBoundColumn DataField="Year" HeaderText="1-240" ColumnGroupName="Ra" />
                                        <telerik:GridBoundColumn DataField="Year" HeaderText="241-270" ColumnGroupName="Rb" />
                                        <telerik:GridBoundColumn DataField="Year" HeaderText="271-..." ColumnGroupName="Rc" />
                                        <telerik:GridBoundColumn DataField="Year" HeaderText="1-240" ColumnGroupName="Ca" />
                                        <telerik:GridBoundColumn DataField="Year" HeaderText="241-270" ColumnGroupName="Cb" />
                                        <telerik:GridBoundColumn DataField="Year" HeaderText="271-..." ColumnGroupName="Cc" />
                                        
                                        
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>
sadeq
Top achievements
Rank 1
 asked on 09 Apr 2017
0 answers
118 views

Hi

I'm having the same problem. i bind dropdown with sqldatasource.and the items are showing as my data. but when try to find that dropdown with BatchEditCommand event its says items count  0. i don't understand the problem. please help..

Dipak
Top achievements
Rank 1
 asked on 08 Apr 2017
0 answers
128 views
hi

It seems that Ajax Manager could not execute javascript at code behind. I am trying to disable a button when click and i could get to work because of the ajax manager. How should I solve this? Thanks a lot.

 

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="btnSearch">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="txtRemarks" UpdatePanelCssClass="" />
<telerik:AjaxUpdatedControl ControlID="btnSave" UpdatePanelCssClass="" />
                     </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnCancel">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="btnCancel" UpdatePanelCssClass="" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
</telerik:RadAjaxManager>


 protected void Page_Load(object sender, EventArgs e)
    {

        string var = ClientScript.GetPostBackEventReference(btnSave, "").ToString();
        btnSave.Attributes.Add("onClick", "javascript :if ( Page_ClientValidate() ){this.disabled=true; this.value='Please Wait.....';" + var + "};");

        if(!IsPostBack)
        {
           

        }
    }

L
Top achievements
Rank 1
 asked on 08 Apr 2017
2 answers
381 views

Is there a way to force the NumericTextbox to display only the numeric keypad on mobile devices?  I can do it with a textbox and use radinputmanager to get the effect I want, but it's causing some other issues so I would prefer to just use the NumericTextbox if possible.

 Thanks,

Forat Kuza
Top achievements
Rank 1
 answered on 07 Apr 2017
0 answers
106 views

Hi,

On which event I need to write my code for add new task ? When I click on "Save" button from add new task popup, event should be fired and execute my code.

Pradip
Top achievements
Rank 1
 asked on 07 Apr 2017
4 answers
178 views
Hi , 
I have 2 context menu in my Tree View  in the client side i want to specify wich one i want to use its seem the tree view get the first one as default menu.i use the same code in demo.

<ContextMenus>
    <telerik:RadTreeViewContextMenu ID="ArtclesMenu" runat="server">
                    <Items>
                        <telerik:RadMenuItem 
                            Value="NewArticle"
                             Text="New Article" 
                            ImageUrl="~/TreeView/Img/Outlook/12.gif">
                        </telerik:RadMenuItem>
                      
                    </Items>
                    
                </telerik:RadTreeViewContextMenu>
                <telerik:RadTreeViewContextMenu ID="MainMenu" runat="server">
                    <Items>
                        <telerik:RadMenuItem Value="AddChapter" Text="Add Chapter">
                        </telerik:RadMenuItem>
                         <telerik:RadMenuItem Value="Delete" Text="Delete" >
                        </telerik:RadMenuItem>
                        
                       </Items>
                    </telerik:RadTreeViewContextMenu>
 
</ContextMenus>    
     



Mrityunjay
Top achievements
Rank 1
 answered on 07 Apr 2017
5 answers
337 views

Hi,

I've a problem with radGrid.

If I hide a column in PreRender event using Me.Grid1.MasterTableView.RenderColumns(3).Visible = False, when I try to retreive the value in ItemDataBound event, the value is &nbsp;

If the column is visible, the value is shown correctly.

I've recently updated Telerik from 2009.3.1314.35 to 2014.3.1209.35.

Before this update, everything was working well

I work with VS 2013.

Any ideas?

Thanks

Eyup
Telerik team
 answered on 07 Apr 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?