Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
Hello,

I have 2 custom commands and 1 close command. Though all the images are of same size they are not aligned and their size changes automaticaly. Plz see attached image.

CSS used:
.CustomCommandRefresh
    {
        top:1px !important;
        height:16px !important;
        padding-bottom:0px !important;
        margin-bottom: 0px !important;
        background: url(/Images/arrow_rotate_clockwise.png) no-repeat !important;
    }
    .CustomCommandEdit
    {
        top:1px !important;
        height:16px !important;
        padding-bottom:0px !important;
        margin-bottom: 0px !important;
        background: url(/Images/cog_edit.png) no-repeat !important;  
    }
    .CustomCommandClose .rdClose
    {
        top:1px !important;
        height:16px !important;
        padding-bottom:0px !important;
        margin-bottom: 0px !important;
        background: url(/Images/cross.png) no-repeat !important;  
    }
 .rdCommands
    {
        position: absolute !important;
        right: 0px;
        top: 1px;
        height:100%;
    }


Can you please suggest me css where it can be corrected each of size 16px and aligned in one line ?
Bozhidar
Telerik team
 answered on 05 May 2011
10 answers
165 views
Hello,

I've been working on installing a pre-existing and functioning Telerik-using Sharepoint site from another machine onto a fresh machine, as well as updating from .NET 2.0 to .NET 3.5 Telerik versions.  As it would turn out, things went terribly wrong.

I will attach a bunch of screenshots and code files so anyone who attempts to assist me with this issue will at least be armed with a visual depiction of the chaos I'm attempting to reconcile.  I have taken the following steps and tutorials in my attempts to make this work:

  • Adding various Assembly and Register commands into the .ascx/.aspx files in attempts to have it recognize tags and assemblies required
  • Multiple Google search results of similar issues, none of which seemed to have a beneficial effect
  • Heavily modifying the web.config based on tutorials and other help issues
  • Tutorial: ASP.NET AJAX 1.0 as a precursor to
  • Tutorial: ASP.NET AJAX 3.5
  • Conferred with multiple other developers on this issue.

Since I began writing this post, I've been attempting to rebuild and deploy the different modifications of the code for screenshot purposes and I am now receiving another error, which is most likely related to and/or caused directly by the web.config modifications I made based off posts and tutorials.  So I will have to explain using words.

Phase 1
Initially, the webparts were automatically implemented into the page by the code prior to loading the page, and would display a single line of text error which I can no longer re-create...but said something along the lines of the webpart encountered an error and cannot be displayed.  Eventually we remedied this by removing all automatic adding of the webpart, and ended up with a blank page on the initial load as is in the screenshots.

Phase 2
Now that we had the page loading and were just missing the webpart, we would add it manually via the Site Actions > Edit Page and Add a webpart options as are also shown in the screenshots.  This would result in one of two errors depending on the code.  
  • If the Telerik tags were not labelled correctly, (ex. rad:RadTab was called rad:Tab at one deploy) the webpart was added correctly and had a single line of text which stated "Data Not Available:Unknown server tag 'rad:Tab'."
  • The other error seemed to occur if all the spelling was correct and everything in the code was correct.  That was the generic Sharepoint error as shown in the screenshots.  "An Unexpected Error Occurred." which is of course informative and helpful.  And yes, the web.config had the settings set such that errors should be very verbose (customErrors=Off, debug=true, etc.)
So it would seem that I was very close to achieving the goal of getting the webpart added correctly... or perhaps not, because as of this morning when I was running through the AJAX tutorials which I had previously not gone through, I encountered something new

Phase 3
Currently upon attempting to add the webpart to the page, I receive an error I've never seen until today which likely means it's related to the web.config modifications I've made based off the noted tutorials.  This error is also shown in the screenshots; the dialog about the webpart not being 'safe' ...

So that's the basic story of my last week.  I will attach the current .ascx and associated .aspx pages, the web.config... anything else someone needs to see to help with this?

Thanks in advance should you attempt to aid me,
Jon

p.s. Apparently the attachments can only be images... how helpful.  Here's a link to the zip to download the files I wanted to attach to this post...

p.s.s. I will continue on my time to work on this as well and post if I find anything of interest / make progress...
Tsvetoslav
Telerik team
 answered on 05 May 2011
1 answer
85 views
Hi All,

How can i use ItemTemplate in GridTableView of DetailTables section.

Below url describes use of ItemTemplate in MasterTableView. But i want the same functionality in DetailsTables section.
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/listview/defaultcs.aspx

Thanks in advance.

Thanks and Regards,
Sumanth
Tsvetina
Telerik team
 answered on 05 May 2011
4 answers
114 views
Dear All
I'm using RadScheduler and I want to Disable back button in the scheduler so only the forward button is enabled
Thanks,
Mohamed
Top achievements
Rank 1
 answered on 05 May 2011
9 answers
235 views
Hi,
I have a recurring appointment and i list all the occurrences in a datagrid. Now when i click on one of the occurrences, i would like to open/edit that occurrence, not the series. (currently it goes to the view of opening the series), Any suggestions how to achieve that?

regards,
Naresh
Peter
Telerik team
 answered on 05 May 2011
1 answer
53 views

Hai


I am creating an online application for attending quiz programs. I am using telerik controls in the application. This application is going to have two users admin and user. Admin is the one who is creating exams and assign test to the user. The user will register themselves for the test and attend the test. How can i effetcively design the test pagewith these controls?



Thanks
Georgi Tunev
Telerik team
 answered on 05 May 2011
1 answer
80 views
Hello Telerik,
It's very strange that the datetimepicker works very well on my local computer , but after I uploaded the website to the server,the part of "time" can not be selected(no response when I click it), I can only select "date", it confuse me a lot....
Pavel
Telerik team
 answered on 05 May 2011
2 answers
68 views
The attached Image shows what happens when I configure my RadScheduler with the following settings:


In my markup I have:
<TimelineView TimeLabelSpan="4" SlotDuration="00:15" NumberOfSlots="48"
ColumnHeaderDateFormat="HH:mm" HeaderDateFormat="HH:mm"
GroupingDirection="Vertical" StartTime="06:00" />


And once I've initiated my data programmatically I have
RadScheduler1.WorkDayStartTime = startTime;
RadScheduler1.WorkDayEndTime = endTime;
var duration = RadScheduler1.WorkDayEndTime - RadScheduler1.WorkDayStartTime;
RadScheduler1.TimelineView.StartTime = RadScheduler1.WorkDayStartTime;
RadScheduler1.TimelineView.NumberOfSlots =
duration.Hours * 4 + duration.Minutes / 15 + 1;



Note: I've tried it with & without the '+ 1'...It doesn't matter, still doesn't line up.
Veronica
Telerik team
 answered on 05 May 2011
3 answers
141 views
I have created a simple test to check to see if the date is properly filtering and it seems to be failing every time when I have two dates with different years ... Please look at this code and test it and let me know what I am doing wrong if anything.
<telerik:RadGrid ID="gridUsers" AllowAutomaticDeletes="true" runat="server" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true" PageSize="10" AutoGenerateColumns="false">
                        <GroupingSettings CaseSensitive="false" />
                        <HeaderStyle Font-Bold="true" />
                        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" Visible="true" EnableSEOPaging="true"/>
                        <ClientSettings>
                            <Scrolling AllowScroll="False" />
                        </ClientSettings>
                        <MasterTableView CommandItemDisplay="Top" AllowNaturalSort="false" DataKeyNames="Created">
                            <Columns>
                                <telerik:GridDateTimeColumn HeaderText="Created" ItemStyle-Wrap="false" UniqueName="Created" DataField="Created" FilterListOptions="VaryByDataType" FilterImageUrl="~/images/filter_icon.gif" />
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>
Protected Sub gridUsers_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles gridUsers.NeedDataSource
        Dim myDT As New DataTable
        myDT.Columns.Add("Created")
  
        Dim row1 As DataRow = myDT.NewRow
        row1("Created") = Date.Now
  
        Dim row2 As DataRow = myDT.NewRow
        row2("Created") = Date.Now.AddDays(12)
  
        Dim row3 As DataRow = myDT.NewRow
        row3("Created") = Date.Now.AddYears(-2)
  
        Dim row4 As DataRow = myDT.NewRow
        row4("Created") = Date.Now.AddYears(-3)
  
        myDT.Rows.Add(row1)
        myDT.Rows.Add(row2)
        myDT.Rows.Add(row3)
        myDT.Rows.Add(row4)
  
        gridUsers.DataSource = myDT
    End Sub

The first bit is my code behind for the datasource of the grid and the second is the asp code. Try and filter something like "1/1/2010" without the quotes and place the filter on less then and the results come back empty. The inverse being greater then where the no filtering occurs.

Please help asap,
Thanks!
Trevor
Princy
Top achievements
Rank 2
 answered on 05 May 2011
3 answers
64 views
hello everyone,

I have a problem with the UI of RadGrid when using grouping functionality. It happens at the first time when a page is loaded, the UI of grouping icon does not appear as expected. When I click on to expand/collapse, the UI seems to be OK now.

The group load mode is client side and the grid is put on a web part deployed in sharepoint 2010.
Please see the attached file to see the problem in detail.

Any suggestion?

Regards,
TNgo



Tsvetoslav
Telerik team
 answered on 05 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?