Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
132 views
Hi,
    I am using RadGrid. but I am facing some design related prob.
Please download attached .jpeg file and you will get my prob.

RadGrig is like this - 

<telerik:RadGrid runat="server" ID="rgQuestions" OnNeedDataSource="rgQuestions_NeedDataSource"
                                AllowPaging="True" AllowMultiRowSelection="true" OnRowDrop="rgQuestions_RowDrop"
                                Width="100%" PageSize="30" EnableHeaderContextMenu="true" Skin="Default" AutoGenerateColumns="false">
                                <MasterTableView DataKeyNames="Q_QuestionId" TableLayout="Fixed">
                                    <GroupByExpressions>
                                        <telerik:GridGroupByExpression>
                                            <SelectFields>
                                                <telerik:GridGroupByField FieldAlias="Category" FieldName="Q_CategoryName" HeaderValueSeparator=" : ">
                                                </telerik:GridGroupByField>
                                            </SelectFields>
                                            <GroupByFields>
                                                <telerik:GridGroupByField FieldName="Q_CategoryName" SortOrder="Ascending"></telerik:GridGroupByField>
                                            </GroupByFields>
                                        </telerik:GridGroupByExpression>
                                    </GroupByExpressions>
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="Q_Categoryid" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Q_CategoryName" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Q_Order" ItemStyle-Width="25px" HeaderStyle-Width="25px"
                                            ItemStyle-HorizontalAlign="Left">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Q_Question">
                                        </telerik:GridBoundColumn>
                                        <%-- <telerik:GridTemplateColumn HeaderText="Edit">
                                    <ItemTemplate>
                                         <asp:HyperLink id="hlinkEdit" runat="server" ToolTip="Edit" ImageUrl="../Images/edit.gif" NavigateUrl='<%#"AddQuestions.aspx?mode=Edit&Id="+DataBinder.Eval(Container.DataItem,"Q_Questionid")+"&Choice=Preview&answertype="+ DataBinder.Eval(Container.DataItem,"Q_AnswerType")%>' >                                          </asp:HyperLink>
                                    </ItemTemplate>
                                    </telerik:GridTemplateColumn>--%>
                                    </Columns>
                                </MasterTableView>
                                <ClientSettings AllowRowsDragDrop="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true">
                                    <Resizing AllowColumnResize="true" />
                                    <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
                                    <%-- <ClientEvents OnRowDropping="onRowDropping" />--%>
                                    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                </ClientSettings>
                                <PagerStyle Mode="NumericPages" PageButtonCount="4" />
                            </telerik:RadGrid>


waiting for reply...
Pavlina
Telerik team
 answered on 28 Mar 2011
11 answers
208 views
Hi,

We have created a user control which has one radgrid control. The paging/sorting/filtering works well when tested locally.
But when we upload the user control to sitefinity site, the radgrid binds the data correctly but paging/sorting/filtering does not work.
On clicking on these options, it does a post back but no change on the grid.

Can you please help us figure out the issue?

Thank you,
Jay Mehta.
Tsvetina
Telerik team
 answered on 28 Mar 2011
3 answers
79 views
Hi Friends,
Please help me on this condition for MINDATE.

 MinDate='<%# Convert.ToDateTime(Eval("startDate")).ToString("dd/MMM/yyyy") %>'

I have startdate and Finish date. In finish date people cannot enter date lesser than or equal to start date.
So I used the MinDate but MINdate is allowing to enter start date if it is equal . How to avoid enetering same date equal to start date.
I only can enter finish dates greater than start dates.

Please help me in achieving this.

Regards,
Bharath.


Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Mar 2011
1 answer
101 views
We would like to request a new server-side event for the RadGrid. Please add an event called OnLoad or AfterNewBinding. The purpose of this event would be to fire after the grid has been loaded with data. At this point, it is not easy to detect when the datasource's data has changed on the grid so we can select the first row. We can't use pre-render event as the data has not yet been populated. We also tried the ObjectDataSource's Selected event and the data has not been loaded either. 

If we had an event which fired after any new data has been bound and loaded, this would be easy. 

Thank you for your consideration.
Princy
Top achievements
Rank 2
 answered on 28 Mar 2011
1 answer
109 views
Hello Telerik's team!

I would know, is it possible to delete file after upload it?

Thank you!
Dimitar Terziev
Telerik team
 answered on 28 Mar 2011
3 answers
596 views

Hi Folks,

I slowed down at comparing two dates in Rad Grid. Here the comparison includes GridDateTimeColumn and  GridTemplateColumn.
Can I compare them both with dates involved or I need to change them.below I am giving the tags.Please help me out to solve this.

<telerik:GridDateTimeColumn UniqueName="schedstart" DataField="early_start_display" HeaderText="Scheduled Start" DataFormatString="{0:MM/dd/yyyy}" PickerType="DatePicker" AllowFiltering="false"> </telerik:GridDateTimeColumn>
 
 
 
<telerik:GridTemplateColumn UniqueName="gridMS" HeaderText="Mandatory Start" AllowFiltering="false">
                     <ItemTemplate>
                       <telerik:RadDatePicker ID="manstart" runat="server" Width="100px" Calendar-ShowOtherMonthsDays="false" Calendar-ShowRowHeaders="false" MinDate='<%# Convert.ToDateTime(Eval("early_start_display")).ToString("dd/MMM/yyyy") %>' DbSelectedDate='<%# Bind("mandatory_start") %>' DateInput-DateFormat="MM/dd/yyyy"/>
                     </ItemTemplate>
                    </telerik:GridTemplateColumn>
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Mar 2011
1 answer
149 views
Hi,

I have a Radgrid that uses client-side binding.  Using a GridBoundColumn displays all entries in my result set correctly.  When I add in a GridTemplateColumn and with an embedded control such as an asp:label only the first 10 or 11 rows display for that column.  I am not using paging but the grid is behaving as if it's using the default paging value (seems to be 10) for the GridTemplateColumn.  I believe this somewhat of a known error: http://www.telerik.com/community/forums/aspnet-ajax/grid/gridtemplatecolumn-problem-on-page-resize.aspx
but that was sometime ago.  Any ideas or workarounds?  Catching the OnRowDataBound and adding a label with a tooltip seems to be not the best fix.

Thanks
Pavlina
Telerik team
 answered on 28 Mar 2011
3 answers
130 views

I have not been able to get the RadProgressArea displayed during a RadUpload file upload using the current 2011Q1 release running in ASP.Net 3.5. It was working fine with the previous Telerik release, but now I don’t see the progress area in any of the browsers I tested: IE 6, IE 8, IE 9, FF 4, Chrome 10, Safari 5 and Opera.

Here are some excerpts from the web.config, which was updated by the Telerik wizard and then modified by me as best I could tell from the documentation. I’m hoping I got something wrong in the configuration, because the page code had not changed. Can anyone see anything wrong here? Or know of other issues with the progress area in the current version?

<configuration>
…
<!--Allow anonymous access to the Telerik Upload Progress Handler-->
<location path="Telerik.RadUploadProgressHandler.ashx">
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>
  
<system.web>
    <assemblies>
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          
<!--Next 3 assemblies added by Telerik RADControls for the editor.-->
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    </assemblies>
…
<httpHandlers>
<remove path="*.asmx" verb="*" />
        <add path="*.asmx" verb="*" validate="false" 
            type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add path="*_AppService.axd" verb="*" validate="false" 
            type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add path="ScriptResource.axd" verb="GET,HEAD" validate="false"
            type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add path="Reserved.ReportViewerWebControl.axd" verb="*" validate="false"
            type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" validate="false" 
            type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" />
        <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" validate="false" 
            type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" />
        <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" validate="false" 
            type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" />
            <add path="Telerik.Web.UI.WebResource.axd" verb="*" validate="false" 
                type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
            <add path="ChartImage.axd" verb="*" validate="false" 
                type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI" />
      </httpHandlers>
      
    <httpModules>
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />
      </httpModules>
</system.web>
  
<system.webServer>
    <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/>
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
        <remove name="ScriptModule" />
        <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="integratedMode" />
    </modules>
    <handlers>
        <remove name="WebServiceHandlerFactory-Integrated" />
        <remove name="ScriptHandlerFactory" />
        <remove name="ScriptHandlerFactoryAppServices" />
        <remove name="ScriptResource" />
        <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" 
            type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" 
            type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add name="ReportViewerWebControl" path="Reserved.ReportViewerWebControl.axd" verb="*" 
            type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" 
            type="Telerik.Web.UI.WebResource, Telerik.Web.UI" verb="*" preCondition="integratedMode" />
        <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" 
            type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" verb="*" preCondition="integratedMode" />
        <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" 
            type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" verb="*" preCondition="integratedMode" />
        <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" 
            type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" verb="*" preCondition="integratedMode" />
        <add name="ChartImage_axd" path="ChartImage.axd" verb="*" preCondition="integratedMode" 
            type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI" />
    </handlers>
Genady Sergeev
Telerik team
 answered on 28 Mar 2011
1 answer
113 views
Hello guys.

I have a grid with a template column. I'm puting inside item template declaration the following code:

<a href="myUrlImage" rel="lightbox">click here</a>

I have a javascript code that shows my picture in a page that have zoom (picbox-> http://bunnyfire.co.uk/projects/picbox/). 

If i use it outside the grid, it works perfectly, but inside the grid, it not works.

I tryed with a asp hyperlink, but I have the same problem when the control is inside of the grid (but outside works fine).

What's the problem?

What can I do to fix the problem?

Regards.


Mira
Telerik team
 answered on 28 Mar 2011
1 answer
87 views
If you follow trace on a page containing scheduler you find resources for day view, month view, timeline, multi-day view and week view all are loaded even if only one of them is enabled in the code.  This seems to be a waste of server resources?  Are we perhaps not configuring things correctly or does  disabling different view simply remove the buttons to navigate between views?
Veronica
Telerik team
 answered on 28 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?