Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
56 views
Hi,
  When I click on sort text(column Name) the data is getting soreted correctly. But if I click on the sort icon I am getting an exception. Please find the exception details below

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Please let me know.
Pavlina
Telerik team
 answered on 31 Jan 2011
3 answers
86 views

I'm new... both to Telerik and C# so this might be simple...  I hope :-)

Using radgrid inside radtabs.  I have 4 tabs, 3 of them appear fine, but the one that has a group-by has an un-needed horizontal scrollbar, that causes a header bar icons to appear behind the scrollbar. 

I'm using GridGroupByExpression, and it adds a space to the left with the group-ungroup arrows - that is fine, but then this causes a horizontal scrollbar to always appear on the bottom of the grid, regardless of browser size.  The rightmost export button is always partly obscured, see uploaded jpg.  How do I resize the grid to remove the horizontal scrollbar?   The scrollbar is not needed, there are only 3 columns.  I've tried setting the grid width, columns width, etc. but the scrollbar persists, the grid is always a little wider than the available area, due to the grouping arrows area to the left. 

What setting do I use to resize the grid to fit the scrren, when using GridGroupByExpression?

 

<telerik:RadTabStrip ID="WQTS" MultiPageID="WorkQueueTabPages" runat="server" Skin="Outlook" SelectedIndex="0"
    <Tabs
        <telerik:RadTab PageViewID="PendingApprovalsTabPage" runat="server" Text="Pending Approvals" Selected="True" Width="90%" /> 
        <telerik:RadTab PageViewID="PendingSetupsTabPage" runat="server" Text="Pending Setups" /> 
        <telerik:RadTab PageViewID="ApprovedNewDocsTabPage" runat="server" Text="Approved with New Documents"   /> 
        <telerik:RadTab PageViewID="NeedInsReviewTabPage" runat="server" Text="Needs Insurance Review" /> 
    </Tabs
</telerik:RadTabStrip
<telerik:RadMultiPage runat="server" ID="WorkQueueTabPages" SelectedIndex="0"
        
    <!-- Pending Approvals Tab -->
    <telerik:RadPageView ID="PendingApprovalsTabPage" runat="server"
        <telerik:RadGrid Height="450px" AllowAutomaticInserts="false" AllowAutomaticDeletes="false" AllowAutomaticUpdates="false"
        ID="PendingApprovalsGrid" runat="server" AllowSorting="True" Width="90%"
        OnNeedDataSource="PendingApprovalsGrid_NeedDataSource" 
        AutoGenerateColumns="False"  OnItemCommand="OpenCompany" OnEditCommand="OpenCompany"
        <ExportSettings HideStructureColumns="True" ExportOnlyData="True" IgnorePaging="True" OpenInNewWindow="True"
        </ExportSettings>   
            <FilterMenu EnableImageSprites="False"></FilterMenu
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu
                <ClientSettings AllowKeyboardNavigation = "True"
                    <Scrolling AllowScroll="True"></Scrolling
                    <ClientEvents OnRowCreated="workQueues_rowCreated" OnRowClick="workQueues_onRowClick" /> 
                </ClientSettings
      <mastertableview
      datakeynames="CompanyID" 
      ClientDataKeyNames="CompanyId,CompanyName,VendorNumber" CommandItemDisplay="Top"
          <GroupByExpressions
              <telerik:GridGroupByExpression
                  <GroupByFields
                      <telerik:GridGroupByField FieldName="AccountStatusDesc" FieldAlias="Status" 
                          HeaderText="Status" FormatString="" /> 
                  </GroupByFields
                  <SelectFields
                      <telerik:GridGroupByField FieldName="AccountStatusDesc" FieldAlias="Status" FormatString="" HeaderText="Status" /> 
                  </SelectFields
              </telerik:GridGroupByExpression
          </GroupByExpressions
          <Columns
                <telerik:GridButtonColumn Text="Select" ButtonType="ImageButton" ImageUrl="~/images/select.bmp"  
                    CommandArgument="Select" Resizable="False" UniqueName="PendingApprovalsViewCol" FilterControlAltText="Filter PendingApprovalsViewCol column"
                    <ItemStyle Width="2%" /> 
                </telerik:GridButtonColumn
                <telerik:GridBoundColumn DataField="CompanyName" FilterControlAltText="Filter CompanyName column" ItemStyle-Width="40%"
                    HeaderText="Company Name" HeaderTooltip="Sort by Company Name" UniqueName="CompanyName"
                </telerik:GridBoundColumn
                <telerik:GridBoundColumn DataField="AccountStatusDesc" FilterControlAltText="Filter AccountStatusDesc column" ItemStyle-Width="58%"
                    HeaderText="Status" HeaderTooltip="Sort by Status" UniqueName="AccountStatusDesc"
                </telerik:GridBoundColumn
                <telerik:GridBoundColumn DataField="VendorNumber" FilterControlAltText="Filter VendorNumber column"
                    UniqueName="VendorNumber" Visible="False"
                </telerik:GridBoundColumn
          </Columns
          <EditFormSettings
              <EditColumn FilterControlAltText="Filter EditCommandColumn column"
              </EditColumn
          </EditFormSettings
          <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
          </ExpandCollapseColumn
          <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"
          </RowIndicatorColumn
          <CommandItemSettings ShowExportToPdfButton="True" ShowExportToWordButton="True" ShowExportToExcelButton="True" ShowExportToCsvButton="True" ShowAddNewRecordButton="False" />  
      </mastertableview
            <GroupPanel
                <PanelItemsStyle BorderStyle="Solid" BorderWidth="1px" GridLines="Both" /> 
            </GroupPanel
        </telerik:RadGrid
    </telerik:RadPageView>
  
(next 3 tabs ommitted)

 

 

 

 

 

Pavlina
Telerik team
 answered on 31 Jan 2011
1 answer
91 views
I am using the client side delete function on a rad grid that contains rows which include textboxes (contained in a GridTemplateColumn)
The client side function works fine, but when I try to access the current values in the textboxes after deleting a row, I am getting the original value, not the new value that is currently in the text box.
If I don't delete a row first, the correct value is read.

When the save button is clicked, this is run:
For Each itm As GridDataItem In rgIntervalSetup.Items
            If TypeOf itm Is GridDataItem Then
                Dim theID As String = itm("RecordID").Text
                Dim updatedItem As GridDataItem = CType(rgIntervalSetup.MasterTableView.FindItemByKeyValue("RecordID", Integer.Parse(theID)), GridDataItem)
                UpdateValues(updatedItem, False)
            End If
        Next
  
  
Protected Sub UpdateValues(ByVal updatedItem As GridDataItem, ByVal KeepAsTempInterval As Boolean)
        Dim txtBox As TextBox = CType(updatedItem.FindControl("txtGridIntervalName"), TextBox)
        Dim IntervalName As String = txtBox.Text
  
        Dim txtDateBox As RadDateInput = CType(updatedItem.FindControl("txtGridStartDate"), RadDateInput)
        'txtBox = CType(updatedItem.FindControl("txtGridStartDate"), TextBox)
        Dim IntervalStartDate As DateTime = txtDateBox.SelectedDate
  
        Dim theID As Integer = updatedItem.GetDataKeyValue("RecordID").ToString()
  
         
        Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(MyBase.Location.ConnectionString, _
          CommandType.StoredProcedure, _
           "EVAL2_SessionIntervalUpdate", _
           New SqlClient.SqlParameter("@SessionIntervalID", theID), _
           New SqlClient.SqlParameter("@IntervalName", IntervalName), _
           New SqlClient.SqlParameter("@IntervalStartDate", IntervalStartDate.ToUsString), _
                    New SqlClient.SqlParameter("@SessionID", mySession.ID))  
    End Sub


Tsvetoslav
Telerik team
 answered on 31 Jan 2011
1 answer
52 views
Hi,

we have a problem with a RadGrid:
When we select more then one item and then we move the scoll bar,  we loose all previously selected items.
Is there a solution for keep the selected Items?

Thanks in advance

SS
Pavlina
Telerik team
 answered on 31 Jan 2011
3 answers
86 views
hello to all,

                i would like to ask some help who knows about loading an image to the grid  for each rows of record and that image is clickable also, any sample codes is highly appreciated.thanks
Daniel
Telerik team
 answered on 31 Jan 2011
2 answers
63 views
Hi,
On changing start time in appointment  edit window, I would like to increase the Appointment End Time by 1 hour. How can I catch StartTime changed event?
Is it possible to catch event fired on clicking Save button in edit window?

Thanks
Prava
Prava kafle
Top achievements
Rank 1
 answered on 31 Jan 2011
1 answer
79 views
Can someone please explain to me why the progress indicator seems to decide to make itself invisible ?

I put a manager and progress indicator on a page, tested it, and it worked.  I then decided to move it to a different position on the page and now, it makes a place for itself on the page (ie it shifts everything else down the page)  but the progress indicator is invisible !!

Nothing I can do will make it reappear, Ive even put it back to its original position, but its still invisible !!!

<telerik:RadProgressManager ID="RadProgressManager1" runat="server"
    EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False"
    Skin="Vista" />
     
 <telerik:RadProgressArea id="progressArea1" runat="server" skin="Vista"
                    Culture="English (United Kingdom)" DisplayCancelButton="True" BorderStyle="None"
                    ProgressIndicators="FilesCountBar, FilesCount, FilesCountPercent, SelectedFilesCount, CurrentFileName, TimeElapsed, TimeEstimated"
                    Language="" Height="200px" Width="300px">
                    <Localization Uploaded="Uploaded"></Localization>
                </telerik:RadProgressArea>
Dimitar Terziev
Telerik team
 answered on 31 Jan 2011
1 answer
97 views

Guys,

I need to store html that has following line

<div style="font-family:[[FontFamily_01]]; color: [[FontColor_01]];">    </div>

 When I put this line in the editor my styles are being stripped. What should I do for my content to stay as I entered?  

Thanks

Rumen
Telerik team
 answered on 31 Jan 2011
5 answers
198 views
Hello,
             I am having issues with Telerik ComboBox and TabSrip controls in STAGE environment. It shows 'Telerik' is undefined error message in IE. I am using verion 2009.3.1314.20. However, the ditto copy of code is working on other environments e.g., my local machine, development server, my colleauge's machine! Please send me a resolution at the earliest since we are planning to move PRODUCTION environment next week after fixing UAT issues. I have attached the screen shots herewith.

Thanks,
Raja
Kalina
Telerik team
 answered on 31 Jan 2011
3 answers
93 views
Hi all,

I am attempting to have a fully-functioning copy of the Sales Dashboard demo on my computer.

I downloaded the source code. Converted it to Visual Studio 2010.
I had a lot of DLL reference errors. I resolved them all by updating the references to the files located in the ReferencesTRIAL folder.
I had an error with automatic creation of the DB because I was not using SQLExpress. I manually created the DB and it seems to be working fine.

In ISS the SalesDashboard seems to not have been created/configured at all. If I go into my SalesDashboard solution and go to:

Telerik.SalesDashboard.Statistics/Service References/SalesDashboardService -> Right Click -> Update Service Reference I am given the following error: 

"There was an error downloading 'http://localhost/SalesDashboard/SalesDashboardService.svc'. The request failed with HTTP status 404: Not Found. Metadata contains a reference that cannot be resolved: 'http://localhost/SalesDashboard/SalesDashboardService.svc'. The server committed a protocol violation. Section=ResponsesStatusLine"

I feel like this is a relatively simple error. I just need some steps to follow on how to set this up. The SalesDashboard webpage loads properly excluding the fact that the statistics for the SalesDashboard do not load.

Regards,

Sean Anderson
Iana Tsolova
Telerik team
 answered on 31 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?