Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
355 views

Hi,

I am using telerik RadGrid in my web page to list data and i am using pagination .
<PagerStyle Mode="NextPrevAndNumeric" VerticalAlign="Bottom" Position="Bottom" AlwaysVisible="true" />
Dll -  Telerik.Web.UI
Version - 2011.1.519.40
When changing the page size from 10 to 20/50 the pagination control disappears and then appears.
I have attached the screen shots for the issue.
I want the pagination to be static and it must not disappear
Please let me know how to fix the issue.

Thanks
Gayathri

Eyup
Telerik team
 answered on 31 Jul 2013
5 answers
220 views
Example

I have two Comboboxes:

<telerik:RadComboBox ID="ddlPatientSuchwort2" Runat="server" Culture="de-DE"
  DataSourceID="sqlWinacsPatientSuchwort" DataTextField="Suchwort"
  DataValueField="PublicNummer" AutoPostBack="True"
  EnableAutomaticLoadOnDemand="True"
  onselectedindexchanged="ddlPatientSuchwort2_SelectedIndexChanged"
  filter="StartsWith" EmptyMessage="Patient Name" Skin="WebBlue"
  EnableVirtualScrolling="True" ItemsPerRequest="10"
    ShowMoreResultsBox="True" >
</telerik:RadComboBox>
 
<telerik:RadComboBox ID="ddlPublicNummer2" Runat="server" Culture="de-DE"
  DataSourceID="sqlWinacsPatientPublicNummer" DataTextField="PublicNummer"
  DataValueField="PublicNummer" AutoPostBack="True"
  EnableAutomaticLoadOnDemand="True"
  onselectedindexchanged="ddlPublicNummer2_SelectedIndexChanged"
  EmptyMessage="Patient Nummer" Label="oder" Skin="WebBlue"
  EnableVirtualScrolling="True" ItemsPerRequest="10"
    ShowMoreResultsBox="True" >
</telerik:RadComboBox>

protected void ddlPatientSuchwort2_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     int varPatient = int.Parse(ddlPatientSuchwort2.SelectedValue);
 
         ddlPublicNummer2.Text = "";
         ddlPublicNummer2.ClearSelection();
         this.getWinacsPatient(varPatient);
 
 }
 
 protected void ddlPublicNummer2_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
 {
     int varPatient = int.Parse(ddlPublicNummer2.SelectedValue);
 
         ddlPatientSuchwort2.Text = "";
         ddlPatientSuchwort2.ClearSelection();
         this.getWinacsPatient(varPatient);
 
 }


Everything works fine when I select value. The problem happens
when I write something in Combobox and don't choose value
showed but click somwhere on the screen I got then:



Server Error in '/Abrechnung' Application.

Input string was not in a correct format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:

Line 90:   protected void ddlPublicNummer2_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
Line 91:   {
Line 92:       int varPatient = int.Parse(ddlPublicNummer2.SelectedValue);
Line 93: 
Line 94:           ddlPatientSuchwort2.Text = "";

Source File: d:\Dev\Abrechnung\Default.aspx.cs    Line: 92

Stack Trace:

[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +9595563
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
   System.Int32.Parse(String s) +23
   _Default.ddlPublicNummer2_SelectedIndexChanged(Object sender, RadComboBoxSelectedIndexChangedEventArgs e) in d:\Dev\Abrechnung\Default.aspx.cs:92
   Telerik.Web.UI.RadComboBox.OnSelectedIndexChanged() +215
   Telerik.Web.UI.RadComboBox.RaisePostDataChangedEvent() +63
   Telerik.Web.UI.RadDataBoundControl.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +34
   System.Web.UI.Page.RaiseChangedEvents() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5201


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1008


Any idea how I can handle this exceptions?
A2H
Top achievements
Rank 1
 answered on 31 Jul 2013
4 answers
1.3K+ views
I have a radgrid bound to a datasource. I would like to return all values from a single column (my DataKeyName) column.

I have the AllowPaging property set to true and when my RadGrid loads it loads the first 10 rows and I'm able to page through to the remainder of the data.

My function below works but only returns DataKeyName values for the first 10 rows. If I change the Page Size drop down of the RadGrid to 50 then the function returns 50 values etc

List<string> Emails = new List<string>();
 
            foreach (GridDataItem item in RadGrid.MasterTableView.Items)
            {
                Emails.Add(item.GetDataKeyValue("Email").ToString());
            }

Is there something I can do to get this function to return ALL DataKeyName values and still implement paging?
Jayesh Goyani
Top achievements
Rank 2
 answered on 31 Jul 2013
4 answers
618 views
Hi Guys,

I have a radajaxpanel on a page. inside the radajax panel, i have a radgrid, a button, a label and a radwindow.

On the click event of the button, i am showing the radwindow using RadWindow.visibleOnLoad = true 

On RadWindow, i have a button, on the click event of this button, i am deleting some rows from the database and setting up a message on the label and also setting it's visible property to true. I am also using radGrid.Rebind() , radGrid.SelectedIndexes.Clear() and RadWindow.visibleOnLoad = false

But none of these controls are updating after the request. Pop is still visible, label is not visible and radgrid is not refreshed.

So i wrote some javascipt code

//Close pop up
            string script = string.Format("$find('{0}').close();", radwindowClearReason.ClientID);
            pnlProcessList.ResponseScripts.Add(script);
            //Clear selected rows
            script = string.Format("$find('{0}').clearSelectedItems();", grdProcessList.ClientID);
            pnlProcessList.ResponseScripts.Add(script);
            //refresh grid
            script = string.Format("$find('{0}').ajaxRequest();", pnlProcessList.ClientID);
            pnlProcessList.ResponseScripts.Add(script);

in the above code , pnlProcessList is the ID of RadAjaxPanel. This code is successfully closing the radWindow, refreshing the radGrid.

But still have two problems, selected indexes are not cleared and label is not visible.

Please help me on this. I am not sure what i am doing wrong.

Thanks,
Gaurav
Goraksh
Top achievements
Rank 1
 answered on 31 Jul 2013
8 answers
175 views
I need to display the file extension icons - but since I've hidden the first two columns (Filename and size) and have added custom column for document title - I need to show the file extension icon next to the document title.  Can you please guide me how to achieve this?  Please see the attached image
Neepa
Top achievements
Rank 1
 answered on 31 Jul 2013
1 answer
157 views

Hi,

We are getting below exception when we try to upload file using
RadAsyncUpload. From sharepoint central admin we have removed .ashx in the blocked file section.

Note:
1.    This issue we are getting only in HTTPS. but it's working fin in HTTP..
2.    This we using in the sharepoint appication.

Please let me know do we need any configuration in HTTPS for this
RadAsyncUpload control. Your help is highly appriciated.


Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 7/29/2013 12:53:52 PM

Event time (UTC): 7/29/2013 4:53:52 PM

Event ID: eff4d9cff5734b4e9c4a1993593e53b8

Event sequence: 286

Event occurrence: 1

Event detail code: 0

 

Application information:

    Application domain: /LM/W3SVC/1779650865/ROOT-1-130195860386766292

    Trust level: WSS_Minimal

    Application Virtual Path: /

    Application Path: C:\inetpub\wwwroot\wss\VirtualDirectories\80\

    Machine name: XXXXXX

 

Process information:

    Process ID: 44380

    Process name: w3wp.exe

    Account name: XXXXX 

Exception information:

    Exception type: COMException

    Exception message: The file you are attempting to save or retrieve has been blocked from this Web site by the server administrators.<nativehr>0x800401e6</nativehr><nativestack>stswel.dll: (unresolved symbol, module offset=00000000000B4E84) at 0x000007FEEA904E84

stswel.dll: (unresolved symbol, module offset=00000000000C8EB9) at 0x000007FEEA918EB9

stswel.dll: (unresolved symbol, module offset=00000000000F9033) at 0x000007FEEA949033

stswel.dll: (unresolved symbol, module offset=00000000000FA54F) at 0x000007FEEA94A54F

owssvr.dll: (unresolved symbol, module offset=00000000000B52F3) at 0x000007FEE9D852F3

owssvr.dll: (unresolved symbol, module offset=00000000000C14B0) at 0x000007FEE9D914B0

mscorwks.dll: (unresolved symbol, module offset=00000000002BCD67) at 0x000007FEF9D3CD67

Microsoft.SharePoint.Library.ni.dll: (unresolved symbol, module offset=00000000000E9009) at 0x000007FEEA639009

Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001AC6B8D) at 0x000007FEF4FA6B8D

Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001A8FEC6) at 0x000007FEF4F6FEC6

Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001C7F48E) at 0x000007FEF515F48E

Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001C7F914) at 0x000007FEF515F914

Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001C7FB51) at 0x000007FEF515FB51

Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000002064C24) at 0x000007FEF5544C24

Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000002067943) at 0x000007FEF5547943

</nativestack>

 

Request information:

    Request URL: https://XXXXXXXX/apps/OFAC/Telerik.RadUploadProgressHandler.ashx?AsyncProgress=true&RadUrid=21673ada-d7a4-4b93-9cc5-989f65c472c00&_=1375116821905

    Request path: /apps/OFAC/Telerik.RadUploadProgressHandler.ashx

    User host address: XXXXXX

    User: XXXXXX
    Is authenticated: True

    Authentication Type: NTLM

    Thread account name: XXXXXXX 

Thread information:

    Thread ID: 9

    Thread account name: XXXXXXX

    Is impersonating: False

    Stack trace:    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder)

   at Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder)

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 7/29/2013 12:53:52 PM 
Event time (UTC): 7/29/2013 4:53:52 PM 
Event ID: eff4d9cff5734b4e9c4a1993593e53b8 
Event sequence: 286 
Event occurrence: 1 
Event detail code: 0 
   
Application information: 
    Application domain: /LM/W3SVC/1779650865/ROOT-1-130195860386766292 
    Trust level: WSS_Minimal 
    Application Virtual Path: / 
    Application Path: C:\inetpub\wwwroot\wss\VirtualDirectories\80\ 
    Machine name: XXXXXXX
   
Process information: 
    Process ID: 44380 
    Process name: w3wp.exe 
    Account name: XXXXXXXXX 
   
Exception information: 
    Exception type: COMException 
    Exception message: The file you are attempting to save or retrieve has been blocked from this Web site by the server administrators.<nativehr>0x800401e6</nativehr><nativestack>stswel.dll: (unresolved symbol, module offset=00000000000B4E84) at 0x000007FEEA904E84
stswel.dll: (unresolved symbol, module offset=00000000000C8EB9) at 0x000007FEEA918EB9
stswel.dll: (unresolved symbol, module offset=00000000000F9033) at 0x000007FEEA949033
stswel.dll: (unresolved symbol, module offset=00000000000FA54F) at 0x000007FEEA94A54F
owssvr.dll: (unresolved symbol, module offset=00000000000B52F3) at 0x000007FEE9D852F3
owssvr.dll: (unresolved symbol, module offset=00000000000C14B0) at 0x000007FEE9D914B0
mscorwks.dll: (unresolved symbol, module offset=00000000002BCD67) at 0x000007FEF9D3CD67
Microsoft.SharePoint.Library.ni.dll: (unresolved symbol, module offset=00000000000E9009) at 0x000007FEEA639009
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001AC6B8D) at 0x000007FEF4FA6B8D
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001A8FEC6) at 0x000007FEF4F6FEC6
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001C7F48E) at 0x000007FEF515F48E
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001C7F914) at 0x000007FEF515F914
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001C7FB51) at 0x000007FEF515FB51
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000002064C24) at 0x000007FEF5544C24
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000002067943) at 0x000007FEF5547943
</nativestack
   
Request information: 
    Request URL: https://XXXXXXX:443/apps/OFAC/Telerik.RadUploadProgressHandler.ashx?AsyncProgress=true&RadUrid=21673ada-d7a4-4b93-9cc5-989f65c472c00&_=1375116821905 
    Request path: /apps/OFAC/Telerik.RadUploadProgressHandler.ashx 
    User host address: 169.111.247.53 
    User: ASIAPAC\f274720 
    Is authenticated: True 
    Authentication Type: NTLM 
    Thread account name: NAEAST\snaeuatmoss 
   
Thread information: 
    Thread ID: 9 
    Thread account name: XXXXXX
    Is impersonating: False 
    Stack trace:    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder)
   at Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder)

Plamen
Telerik team
 answered on 31 Jul 2013
3 answers
115 views
Actually I am working on Grid / NestedViewTemplate Relations.My requirement is to show the details of Customers in  inner Panel placed in nestedviewtemplate.



But not able to bind the panel and nestedviewtemplate from code behind.I have the exact requirement as shown in the link the only thing I want to bind the data from code behind instead of SqldataSource.

Kindly suggest me the events which i have to use to bind the panel placed in nestedviewtemplate.

Thanks In Advance
Suresh Krishna
Top achievements
Rank 1
 answered on 31 Jul 2013
3 answers
116 views
Hi,

I'm having a wierd problem with the Tab Strip control. I use .NET's client-side validation to validate the form before I allow the user to switch tabs. The problem is after validating and displaying the error message, the very next post back I do is ignored. It accepts post backs after that first attempt though, but it causes an "ohh didn't i just click that" question in your head. It's especially a problem with drop down lists set to auto postback that are supposed to make UI changes because the list item would change but the UI won't update therefore causing things to be out of sync.

The problem seems to happen only when I click on a tab strip. Because I also have a submit button on the bottom of the page that causes validation. After that button validates and displays an error message the next post back works without anyproblems.

Any ideas?

Thanks,
Vandara Peou
Nencho
Telerik team
 answered on 31 Jul 2013
3 answers
136 views
I have a few questions about setting the group header items when not using a built-in skin (setting Skin="").
1. The sort button image shows up, but not the ungroup button image. How can I set this?
2. How can I set the format of the field name and the set of field name, sort button and ungroup button? For example, set a box around the three items?

Thanks,
Marc
Venelin
Telerik team
 answered on 31 Jul 2013
9 answers
315 views
Hi Telerik,

I have used RadGrid on my page with AllowKeyboardNavigation set to true and also ClientSettings->Selecting -> AllowRowSelect set to true. Also, EnablePostBackOnRowClick is set to true.

I am able to navigate using the arrow keys and i could see the row gets highlighted when i move the up/down keys.
But when i use the Space bar to select any row, nothing happens.

But, i wish to select the row (the way it happens when i use the mouse to click on any row).
The selection seems different in two cases, with the mouse click and keyboard arrow keys.

Kindly suggest what is the difference and also how to use the space bar to make the selection in the RadGrid.

Regards
Tarun Singla
Princy
Top achievements
Rank 2
 answered on 31 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?