Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
866 views
I have a simple upload page that runs fine locally on my dev box but throws a nasty 500 error on the server, I have set the upload folder permissions to allow full control to everyone--any ideas?

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">

        <link href="Upload.css" rel="Stylesheet" type="text/css" />
        <script type="text/javascript">
            //<![CDATA[
            function validationFailed(sender, eventArgs) {
                $(".ErrorHolder").append("<p>Validation failed for '" + eventArgs.get_fileName() + "'.</p>").fadeIn("slow");
            }
            //]]>
        </script>

        <div class="MainWrap">
            <div class="TopWrap">
                <div class="Holder">
                    <telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" AllowedFileExtensions=".txt,.csv" TargetFolder="c:\Files\Import"
                        OnFileUploaded="RadAsyncUpload1_FileUploaded" OnClientValidationFailed="validationFailed">
                    </telerik:RadAsyncUpload>
                    <telerik:RadButton runat="server" ID="BtnSubmit" Text="Submit" Skin="Metro">
                        <Icon SecondaryIconLeft="5" SecondaryIconTop="3" SecondaryIconUrl="images/gear.png" />
                    </telerik:RadButton>
                    <p>
                        Select File To Upload (formats accepted .csv,.txt, only)
                    </p>

                    <div class="ErrorHolder">
                    </div>
                </div>
                <div class="Holder Right">
                    <asp:Panel runat="server" ID="ResultsPanel" Visible="false">
                        <asp:Panel ID="ValidFiles" Visible="false" runat="server">
                            <p>
                                <asp:Label runat="server" ID="lblFileUpload" Font-Bold="True" /><br/>
                                <asp:Label runat="server" ID="lblBatchId"/><br/>
                                 <asp:Label runat="server" ID="lblProcessTime"/>
                            </p>
                            <p>
                                <telerik:RadButton ID="BtnImport" runat="server" Text="Import" OnClick="BtnImport_Click" Skin="Metro" Visible="false">
                                    <Icon SecondaryIconLeft="5" SecondaryIconTop="3" SecondaryIconUrl="images/find.png" />
                                </telerik:RadButton>
                            </p>
                            <br />
                            <asp:Label ID="lblMessage" runat="server" Visible="false" />
                        </asp:Panel>
                        <asp:Panel ID="InvalidFiles" Visible="false" runat="server">
                            <p>
                                <strong>The following files were not saved due to exceeding the maximum total size:</strong>
                            </p>
                        </asp:Panel>
                    </asp:Panel>
                </div>
                <div class="BottomWrap">
                </div>
            </div>
        </div>
    </telerik:RadAjaxPanel>
 public void RadAsyncUpload1_FileUploaded(object sender, FileUploadedEventArgs e)
    {
        Label fileName = new Label();
        fileName.Text = e.File.FileName;
        Session["FileName"] = e.File.FileName;

        if (totalBytes < MaxTotalBytes)
        {
            // Total bytes limit has not been reached, accept the file
            e.IsValid = true;
            totalBytes += e.File.ContentLength;
        }
        else
        {
            // Limit reached, discard the file
            e.IsValid = false;
        }

        if (e.IsValid)
        {
            ValidFiles.Visible = true;
            ValidFiles.Controls.Add(fileName);
            BtnImport.Visible = true;
            lblMessage.Visible = true;
            lblFileUpload.Text = @"File Upload Was Successful";

        }
        else
        {
            InvalidFiles.Visible = true;
            InvalidFiles.Controls.Add(fileName);
        }
    }
Hristo Valyavicharski
Telerik team
 answered on 02 Jul 2013
5 answers
617 views
Hi,

I do like this new RadSearchBox control, but I am having a few small problems.

First, I am having difficulty accessing the control client side.  I've used several variations of $find to no avail.  Would someone please suggest some alternative syntaxes.

Second, once I find this control, I would like to .clear() it of its previous search text/value.  I've tried to do this on the OnClientSearch event (using sender.clear()), but no luck with that either. 

Any suggestions?

Jim
Evgeniy Ovcharenko
Top achievements
Rank 1
 answered on 02 Jul 2013
2 answers
360 views
Howdy all.

I've got a 'fun' situation.  I have a vertical grown, image only menu on my left hand side, and a right side content area.  The idea is that on the right, you'll see pertinent employee data, and the menu will pull up extra info as you wish to see it, through RadWindows.  I'm using an OffsetElementID of my header on the right hand side, which (as I understand it) should mean that if I have set Top and Left at 0, my window should have a matching upper left hand corner as the header.

That's not what it's doing right now.  I can't get it to respect Top at all.  It'll go Left any way I tell it, but it won't go up further than it's initially appearing on the page.  Here's my code, and a picture to hopefully illustrate what I mean.

I've also included my Javascript, which I got off these forums for how I'm opening and closing the windows.  I tried programmatically setting them in there with oWindow.set_top(0); and oWindow.set_left(0);, but that didn't work.

Thanks for your help!

<telerik:RadMenu id="menuMain" ClientIDMode="Static" runat="server" flow="Vertical" OnClientItemClicked="MenuOpenWindow" Width="100%"
    BackColor="#37495D">
    <Items>
      <telerik:RadMenuItem ImageUrl="../Images/button1.png" Value="EmpProj" />
    </Items>
</telerik:RadMenu>
 
 
 
<telerik:RadWindow id="winProjList" runat="server" Top="0" Left="0" Style="z-index: 8000" EnableEmbeddedSkins="false" OffsetElementID="divEmpHeader"
    ShowContentDuringLoad="false" VisibleStatusbar="false" VisibleTitlebar="false" AutoSize="true">
    <ContentTemplate>
        <div id="divProjListList" runat="server" style="width: 400px;">
            <div>Projects</div>
            <div style="width: 400px">
                <telerik:RadGrid ID="grdCheckAcctList" runat="server" AutoGenerateColumns="False"
                    Skin="" EnableLinqExpressions="False" CellSpacing="0" EnableViewState="False">
                    <ClientSettings Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true" />
                    <MasterTableView DataKeyNames="KeyColumn" ShowHeader="true" HeaderStyle-HorizontalAlign="Center" EnableViewState="false">
                        <Columns>
                            <telerik:GridBoundColumn DataField="Department" />
                            <telerik:GridBoundColumn DataField="Project" />
                            <telerik:GridBoundColumn DataField="Supervisor" />
                            </telerik:GridBoundColumn>
                        </Columns>
                        <HeaderStyle HorizontalAlign="Center" />
                    </MasterTableView>
                    <FilterMenu EnableImageSprites="False">
                    </FilterMenu>
                </telerik:RadGrid>
            </div>
        </div>
    </ContentTemplate>
</telerik:RadWindow>

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">
        //Global Variables
        var lastOpenedWindow;
         
        function pageLoad() {
            $addHandler(document, "click", onClickHandler);
        }
 
        function MasterMenuOpenWindow(sender, eventArgs) {
            var oWindow;
 
            //Closes the last window opened
            if (lastOpenedWindow) {
                lastOpenedWindow.close();
                lastOpenedWindow = null;
            }
 
            if (eventArgs.get_item().get_value() == "EmpProj") {
                oWindow = $find("<%=winEmpProj.ClientID%>");
                      oWindow.set_top(0);
                      oWindow.set_left(0);
                      oWindow.show();
                lastOpenedWindow = oWindow;
                return false;
            }
        }
 
        function onClickHandler(e) {
            var targedNodeName = e.target;
 
            if (lastOpenedWindow) {
                // If the RadWindow is clicked then do nothing ;
                if ($telerik.isMouseOverElementEx(lastOpenedWindow.get_popupElement(), e)) return;
 
                lastOpenedWindow.close();
                lastOpenedWindow = null;
            }
        }
    </script>
</telerik:RadScriptBlock>
Amanda
Top achievements
Rank 1
Iron
 answered on 02 Jul 2013
1 answer
287 views
Hello,
I have been trying to improve performance of my page that has aTelerik tabstrip with 8 tabs and many user controls under each tab.
I read that having multiple pageviews can be a performance drag and so have been trying to dynamically create radtabs,  associate radpageviews and load usercontrols on each tab as they are created.Everything is "working" fine, but as I am trying to improve the performance of the tabs, I find that this scenario -
-I have programatically created 5 tabs - Tab1 , Tab2, Tab 3, Tab 4, Tab5 .On page load, there is only one radpageview with unique ID, pageView_Tab1 created initially for Tab1. Everything loads fine, no issues.
-But when I click on Tab2 , control goes into creating pageView_Tab1 again. Then it creates pageView_Tab2.
-Similar behavior follows as I click on subsequent tabs. E.g, Clicking on Tab3 creates pageView_Tab1, pageView_Tab2 and then creates PageView_Tab3.
This behavior is very strange , as it keep reloading the pageviews for already loaded tabs- hence no performance increase. Infact, I added code to keep track of already loaded tabs and not re-load it. But tabs show blank. Any help is greatly appreciated.

Code is below-

<telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1"> </telerik:RadAjaxLoadingPanel>

<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager1_AjaxRequest">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="tabMain">

<UpdatedControls>
<
telerik:AjaxUpdatedControl ControlID="tabMain"></telerik:AjaxUpdatedControl>

<telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1">

</telerik:AjaxUpdatedControl>

</UpdatedControls>

</telerik:AjaxSetting>

<telerik:AjaxSetting AjaxControlID="RadMultiPage1">

 

<UpdatedControls>

 

<telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1">

 

</telerik:AjaxUpdatedControl>

 

</UpdatedControls>

 

</telerik:AjaxSetting>

 

</AjaxSettings>

 

</telerik:RadAjaxManager><telerik:RadTabStrip ID="tabMain" runat="server" SelectedIndex="0" onTabClick="tabMain_SelectedTabChanged" MultiPageID="RadMultiPage1" OnClientTabSelecting="onTabSelecting" Orientation="HorizontalTop"></telerik:RadTabStrip>

<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" OnPageViewCreated="RadMultiPage1_PageViewCreated"> </telerik:RadMultiPage>

---codebehind-----------

 

   Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
            AddTab("Tab1")
            AddPageView("Tab2")
            AddTab("Tab3"
            AddTab("Tab4"
            AddTab("Tab5"
end if

end sub

  Private Sub AddTab(ByVal tabName As String)
        Dim tab As RadTab = New RadTab
        tab.Text = tabName
        tabMain.Tabs.Add(tab)
    End Sub

Protected Sub RadMultiPage1_PageViewCreated(ByVal sender As Object, ByVal e As RadMultiPageEventArgs) Handles RadMultiPage1.PageViewCreated

        Dim userControlName As String = "\CompanyDetails\" & e.PageView.ID & "_Tab.ascx"
        Dim userControl As Control = Page.LoadControl(userControlName)
        userControl.ID = e.PageView.ID & "_userControl"
 e.PageView.Controls.Add(userControl)
        RadMultiPage1.FindPageViewByID(e.PageView.ID).Selected = True
End Sub

Protected Sub tabMain_SelectedTabChanged(ByVal sender As Object, ByVal e As RadTabStripEventArgs) Handles tabMain.TabClick
        AddPageView(e.Tab.Text)
        e.Tab.PageView.Selected = True
End Sub

  Private Sub AddPageView(ByVal pageViewID As String)
        If RadMultiPage1.FindPageViewByID(pageViewID) Is Nothing Then
            Dim pageView As New RadPageView()
            pageView.ID = pageViewID.Replace(" ", "") '"RadMultiPage1" '
            RadMultiPage1.PageViews.Add(pageView)
            pageView.Selected = True
        End If
      
    End Sub

Kate
Telerik team
 answered on 02 Jul 2013
0 answers
115 views
Hi,

        I am using radcombobox with check box. I have enabled AllowCustomText="true". This allows me to enter custom text but once when i select(checked) new item custom text values get cleared. Only Checked items value are appeared in the combobox textbox. My requirement is to add the selected values with the custom text of the combo box.

Thanks
Dhamodharan
Top achievements
Rank 1
 asked on 02 Jul 2013
2 answers
98 views
i'm using RadMenu with huge data and using scroll on it by EnableRootItemScroll="true".
i want to set width of control = percentage not fixed width  px and doesn't affect of EnableRootItemScroll.
or i want set width of control after page load by javascript.
thanks
Ahmed
Top achievements
Rank 1
 answered on 02 Jul 2013
1 answer
116 views
I am pretty new to telerik I am playing around with this for last 2 days. I need your help.  I have a grid with Templatecolumns which have text boxes as their edititem there are about 12 such columns. When I edit one cell of a row the cells on its left  need to be updated. 

I used changeevent of the textbox to capture the item. Not sure if that is the right approach.I 
I coudl get the rowindex of the cell being edited, how do I fidn the column being edited. 

TIA
Angel Petrov
Telerik team
 answered on 02 Jul 2013
3 answers
190 views
Hi, I'm an ICT manager in the World Health Organization. We haven't directly purchased the Telerik Scheduler control but another company (ESI) has used it in implementing a project for us. It's pretty good in some respects, but the recurrence rule parsing has more holes than Swiss cheese! In searching through your forums I can see some of them have been reported to you and apparently you haven't done anything about them. For example, events scheduled to recur once every second week recur once a week instead. This has been reported to you twice:

http://www.telerik.com/community/forums/aspnet-ajax/scheduler/bi-weekly-recurrence-not-working-correctly-using-expandrecurrence-function.aspx
http://www.telerik.com/community/forums/aspnet-ajax/scheduler/error-while-using-expandrecurrence-function-from-production-sql-server.aspx

But you redirected those threads to another thread that addresses a completely different issue, here:

http://www.telerik.com/community/forums/aspnet-ajax/scheduler/recurrencerule-and-timezoneoffset.aspx

Anybody looking to do a serious number of recurrences with your software will be very disappointed. Sometimes recurrences show up in the day view but not the week and month view, or visa versa...

My recommendation: in addition putting some work into fixing the many problems with recurrence parsing, I recommend that you disable the "no end date" option to force users to choose either an end date or a number of occurrences, then save a separate database entry for each occurrence, linking them with a recurrence ID. Your competitors do this with much better results.
Plamen
Telerik team
 answered on 02 Jul 2013
2 answers
126 views

Hi,

Using VS 2010 with RadControls for ASP.NET AJAX Q1 2013 SP2.

Possible after Export i.e. Radbutton (ExportToExcel) inside CommandItemTemplate, automatically Rebind the Grid and Select the 1st row in current page?

Example: Refer to attached, prior to exporting to Excel, Row with Order id 10276, Customer Id TORTU is selected.

I would like immediately after Export, row with Order Id 10269 with CustomerID WHITC from current page ( (i.e. page# 2 of entire Grid) will be automatically selected.
 
Below is my Grid Declaration as well as code.

Thanks

gc_0620
______

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Width="43%" Height="16px">
    </telerik:RadAjaxPanel>
    <asp:ValidationSummary ID="ValidationSummary1" ShowMessageBox="true" ShowSummary="false"
        runat="server" />
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    </telerik:RadCodeBlock>
    <br />
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
        AllowSorting="True" CellSpacing="0" AllowAutomaticUpdates="true" AllowAutomaticInserts="true"
        OnItemDataBound="RadGrid1_ItemDataBound" OnPreRender="RadGrid1_PreRender" DataSourceID="LinqDataSource1"
        GridLines="None" Skin="Office2010Silver" AutoGenerateEditColumn="True">
        <ClientSettings>
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top" DataSourceID="LinqDataSource1"
            DataKeyNames="OrderID">
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32" FilterControlAltText="Filter OrderID column"
                    HeaderText="OrderID" ReadOnly="True" SortExpression="OrderID" UniqueName="OrderID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="CustomerID" FilterControlAltText="Filter CustomerID column"
                    HeaderText="CustomerID" ReadOnly="True" SortExpression="CustomerID" UniqueName="CustomerID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="EmployeeID" DataType="System.Int32" FilterControlAltText="Filter EmployeeID column"
                    HeaderText="EmployeeID" ReadOnly="True" SortExpression="EmployeeID" UniqueName="EmployeeID">
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
            <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
            <CommandItemTemplate>
                <table align="right">
                    <tr>
                        <td>
                            <asp:CheckBox ID="CheckBox2" Text="Ignore paging (exports all pages)" runat="server">
                            </asp:CheckBox>
                        </td>
                        <td>
                            <telerik:RadButton ID="ExportToExcel" runat="server" Text="Excel Export" Skin="Office2010Silver"
                                ToggleType="CustomToggle" ForeColor="#009900" ButtonType="LinkButton" OnClick="Button_Export_To_Excel_Click">
                            </telerik:RadButton>
                        </td>
                        <td>
                            <telerik:RadButton ID="RadButtonAdd" runat="server" Text="New" ButtonType="LinkButton"
                                Skin="Office2010Silver" ToggleType="CustomToggle" ForeColor="#009900" CommandName="InitInsert">
                            </telerik:RadButton>
                        </td>
                        <td>
                            <telerik:RadButton ID="RadButtonRefresh" runat="server" Text="Refresh Grid" ButtonType="LinkButton"
                                CommandName="Rebind" Skin="Office2010Silver" ToggleType="CustomToggle" ForeColor="#009900">
                            </telerik:RadButton>
                        </td>
                    </tr>
                </table>
            </CommandItemTemplate>
        </MasterTableView>
        <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="DataClassesDataContext"
        EntityTypeName="" Select="new (OrderID, CustomerID, EmployeeID)"
        TableName="Orders" EnableDelete="True" EnableInsert="True" EnableUpdate="True"
        Where="OrderID <= @OrderID">
        <WhereParameters>
            <asp:Parameter DefaultValue="10285" Name="OrderID" Type="Int32" />
        </WhereParameters>
    </asp:LinqDataSource>
    <br />
</asp:Content>

protected void SetGridSettings()
    {
        GridSettingsPersister LoadPersister = new GridSettingsPersister(RadGrid1);
 
        if (Session["qa_home_filter"] == null)
        {
        }
        else
        {
            string settings = (string)Session["qa_home_filter"];
 
            LoadPersister.LoadSettings(settings);
        }
    }
     
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            // BOM to Create/Maintain Current Filter Settings
            SetGridSettings();
            // BOM to Create/Maintain Current Filter Settings
 
            // BOM to Retrieve Page Index after call back from another page
            int CurrentPageIndex = 0;
             
            if (Session["DefaultCurrentPageIndex"] != null)
            {
                int.TryParse(Convert.ToString(Session["DefaultCurrentPageIndex"]), out CurrentPageIndex);
                Session["DefaultCurrentPageIndex"] = null;
            }
 
            RadGrid1.CurrentPageIndex = CurrentPageIndex;
 
           
        }
    }
 
    protected void RadGrid1_PreRender(object sender, EventArgs e)
    {
        GridSettingsPersister SavePersister = new GridSettingsPersister(RadGrid1);
        Session["qa_home_filter"] = SavePersister.SaveSettings();
        
        if (!isSelected && Session["selIndex"] != null && Session["SessionOrderid"] == null)
        //if (!isSelected && Session["selIndex"] != null)
        {
            RadGrid1.MasterTableView.Items[(int)Session["selIndex"]].Selected = true;
            Session["selIndex"] = null;
        }
        else if (!isSelected && Session["SessionOrderid"] == null && RadGrid1.MasterTableView.Items.Count > 0)
        {
            RadGrid1.MasterTableView.Items[0].Selected = true;
            //Panelotherinfo.Visible = true;
        }
        else if (!isSelected && (Session["SessionOrderid"] != null))
        {
            string curItem = Session["SessionOrderid"].ToString();
            foreach (GridItem item in RadGrid1.MasterTableView.Items)
            {
                if (item is GridDataItem)
                {
                    GridDataItem dataItem = (GridDataItem)item;
 
                    if (curItem.Equals(dataItem.OwnerTableView.DataKeyValues[dataItem.ItemIndex]["OrderID"].ToString()))
                    {
                        dataItem.Selected = true;
                        break;
                    }
                }
            }
              
            Session["SessionOrderid"] = null;
        }
 
        isSelected = false;
 
        if (rowindex > -1)
        {
            GridDataItem item = RadGrid1.Items[rowindex];
 
            item.Selected = true;
 
            rowindex = -1;
        }
    }
 
   
    bool isSelected;
    int rowindex = -1;
 
    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridEditableItem && e.Item.IsInEditMode) // Common for all: Insert/Edit/Preview in Main Client
        {
            if (!e.Item.OwnerTableView.IsItemInserted)
            {
                Session["selIndex"] = e.Item.ItemIndex;
            }
            e.Item.Selected = true;
            isSelected = true;
        }
    }
   
    protected void Button_Export_To_Excel_Click(object sender, System.EventArgs e)
    {
        ConfigureExport();
        RadGrid1.Rebind();
     
        RadGrid1.ExportSettings.Excel.Format = GridExcelExportFormat.Biff;
 
        //RadGrid1.MasterTableView.ExportToExcel();
 
        RadGrid1.MasterTableView.ExportToExcel();
    }
 
    public void ConfigureExport()
    {
        foreach (GridFilteringItem filter in RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem))
        {
            filter.Display = false;
        }
        RadGrid1.ExportSettings.ExportOnlyData = true;
 
        RadGrid1.ExportSettings.OpenInNewWindow = true;
 
        GridItem commandItem = RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)[0];
        CheckBox Check_Box2 = (CheckBox)commandItem.FindControl("CheckBox2");
 
        if (Check_Box2.Checked)
            RadGrid1.AllowPaging = false;
        else
            RadGrid1.AllowPaging = true;
    }


Daniel
Telerik team
 answered on 02 Jul 2013
5 answers
283 views
I have a bound hidden control in a RadGrid that contains a BidID field.  During the InsertCommand event, I want to set the value of this hidden control.  I'm new to Telerik and for the life of me, I just can't figure this out.  

The closest thing I could come up with was this but it's not correct.  How do I access the value of a bound control, before the insert command is sent to SQL Server, and set a value?

Dim row As GridDataInsertItem = DirectCast(e.Item, GridDataItem)
        row.Item("BidID").Text = intBidID

Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?