Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
131 views
Ok, I have something that was working in the previous control verion (RadControls for ASP.NET):

I have a template column in a grid that has a checkbox on it.  The checkbox is autopostback.  In the previous version, this checkbox was on it's own ajaxpanel in the template column..  That doesn't work anymore so I removed it.   With the grid ajaxed via the ajaxscript manager, the checkbox still posts, but the entire grid is of course being updated.  This is ok, though I prefered the previous version (less traffic).

So first question: Is there anyway to ajax the paging on the grid and specifically ajax the checkboxes in the template column - i.e. duplicate functionality from the previous version.

Second question: As I have currently implemented, it's functional.  However an odd thing happens - if you click a checkbox, it fires and works.  If you then paginate or do anything that causes the grid to callback, the checkbox fires AGAIN.  It will fire everytime.  And in fact, sometimes seems to fire for other rows.   This was never a problem before.

Thanks!

Here's my template column - this basically calls a function that toggles a status.  In the previous version, the checkbox would have been wrapped in an ajaxpanel. 
<telerik:GridTemplateColumn UniqueName="ToggleMyFile" HeaderText="MyFile">                  
<ItemTemplate> 
  <asp:CheckBox ID="chbMyFile" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "bMyFile") %>' AutoPostBack="True" OnCheckedChanged="chbMyFile_Changed" FileID='<%# DataBinder.Eval(Container.DataItem, "iMillFileID") %>'/>                                              
</ItemTemplate>                              
</telerik:GridTemplateColumn>         
Nick
Top achievements
Rank 2
 answered on 19 Aug 2008
1 answer
111 views
Hi, just downloaded the trial version and am working through the scheduler section. Completed the getting started chapter and have got it working however whenever an action occurs (adding an appointment, deleting, etc) a page refresh occurs. I'm using the .NET 3.5 framework.
Any help would be great, thanks
Tom
Peter
Telerik team
 answered on 19 Aug 2008
1 answer
138 views
Does anyone know the best way to keep the same tab/multipage selected after a postback?
What I like about the Panelbar control is that it has a "PersistSateInCookie" Property that you can set to "True" and it keeps its selected index even after postback, but how do you do this with the TabStrip and Multipage controls?
Thanks,
~bg
Paul
Telerik team
 answered on 19 Aug 2008
2 answers
101 views

The links to edit are not appearing.  I'm sure I've overlooked something quite obvious, but I have been unable to find the solution after a day.  Please help!

Here is my code:

<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticUpdates="True" AllowPaging="True" PageSize="30"
                    AllowSorting="True" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1"
                    GridLines="None" Skin="Vista">
                    <MasterTableView DataKeyNames="ID" DataSourceID="ObjectDataSource1" EditMode="InPlace">
                        <RowIndicatorColumn Visible="False">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn Visible="False" Resizable="False">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridBoundColumn DataField="ID" HeaderText="ID" ReadOnly="True" SortExpression="ID"
                                UniqueName="ID">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="BrokerID" DataType="System.Int32" HeaderText="BrokerID"
                                SortExpression="BrokerID" UniqueName="BrokerID" Visible="False">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="CompanyName" HeaderText="CompanyName" SortExpression="CompanyName"
                                UniqueName="CompanyName">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Branch" HeaderText="Branch" SortExpression="Branch"
                                UniqueName="Branch">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="LastUserID" DataType="System.Int32" HeaderText="LastUserID"
                                SortExpression="LastUserID" UniqueName="LastUserID" Visible="False">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="LastUserDate" DataType="System.DateTime" HeaderText="LastUserDate"
                                SortExpression="LastUserDate" UniqueName="LastUserDate">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="rowguid" DataType="System.Guid" HeaderText="rowguid"
                                SortExpression="rowguid" UniqueName="rowguid" Visible="False">
                            </telerik:GridBoundColumn>
                            <telerik:GridCheckBoxColumn DataField="IsValidForCrm" DataType="System.Boolean" HeaderText="IsValidForCrm"
                                SortExpression="IsValidForCrm" UniqueName="IsValidForCrm">
                            </telerik:GridCheckBoxColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
                    SelectMethod="GetData" TypeName="DALExtra.CompanyDetailsPrivateDSTableAdapters.CompanyDetailsPrivateTableAdapter"
                    UpdateMethod="Update">
                    <UpdateParameters>
                        <asp:Parameter Name="BrokerID" Type="Int32" />
                        <asp:Parameter Name="CompanyName" Type="String" />
                        <asp:Parameter Name="Branch" Type="String" />
                        <asp:Parameter Name="LastUserID" Type="Int32" />
                        <asp:Parameter Name="LastUserDate" Type="DateTime" />
                        <asp:Parameter Name="rowguid" Type="Object" />
                        <asp:Parameter Name="IsValidForCrm" Type="Boolean" />
                        <asp:Parameter Name="Original_ID" Type="String" />
                        <asp:Parameter Name="Original_BrokerID" Type="Int32" />
                        <asp:Parameter Name="Original_CompanyName" Type="String" />
                        <asp:Parameter Name="Original_Branch" Type="String" />
                        <asp:Parameter Name="Original_LastUserID" Type="Int32" />
                        <asp:Parameter Name="Original_LastUserDate" Type="DateTime" />
                        <asp:Parameter Name="Original_rowguid" Type="Object" />
                        <asp:Parameter Name="Original_IsValidForCrm" Type="Boolean" />
                    </UpdateParameters>
                </asp:ObjectDataSource>

James
Top achievements
Rank 1
 answered on 19 Aug 2008
2 answers
108 views
Ok so I am wondering about efficency here.

I have a DB with over 60 Fields... I need to be able to view ALL of those fields in the NestedViewTemplate, however I am only displaying 4 (four) of those fields in the actual grid.

Since I need ALL of those records, I am currently binding my grid to a StoredProcedure where I am using "Select *"

My problem is that I don't know how effecient it is going to be when I have to call 10,000 records.

Is there a way to only call the "select * from table where ID = @ID " when the "Details" button is called?
Missing User
 answered on 19 Aug 2008
1 answer
209 views
Background: We created reusable HTML block for editors to help them embed video players in pages. When they insert this reusable html into content field, using RADEditor, and save it, RadEditor encodes HTML and saves that.
Problem: One undesirable side-effect of this, in MOSS, when users search article contents, in search results returned, the see long encoded giberesh string of characters.
Question: How do I stop RadEditor from encoding embedded objects. i. e.
<!-- Modify height and width if desired --> 
<object width="570" height="180" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<!-- set the relative path to the file i.e. /media/urology/somevideo.swf -->
<param value="ball.swf" name="movie"/>
<param value="high" name="quality"/>
<!-- Modify height and width if desired -->
<!-- set the relative path to the file i.e. /media/urology/somevideo.swf -->
<embed width="570" height="180" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="ball.swf"/>
</object>
Thanks.
Rumen
Telerik team
 answered on 19 Aug 2008
4 answers
200 views
Hello,
I'm trying to show RadAjaxLoadingPanel in one of web controls based on DotNetNuke platform.
Unfortunately it doesn't show up.
I will really appreciate any help in this matter!
Thank you in advance,
Ilya
Maria Ilieva
Telerik team
 answered on 19 Aug 2008
3 answers
149 views
Could someone please point me in the direction of a working example of a RadScheduler project that uses the templated insert and edit controls. The example given on this site has allthe components there Ie the Aspx markup, the c# code, css classes etc but when I put it together as a project it just doesn't work.

It doesn't know what the <%@ Register TagPrefix="sds" Namespace="Telerik.Web.SessionDS" %> namespace  is and i can find no other reference to it. All I need is a working example

Thanks

gary

Peter
Telerik team
 answered on 19 Aug 2008
3 answers
152 views
Hi.
I use the tooltip manager to load content using ajax.
If set the RelativeTo to the screen the tooltip sticks on screen when scrolling main window.

This creates problems if the content of the tooltip is heigher than the screen.

If i change RelativeTo to the Element instead the tooltip function as it should. But i dont want it relative to the button you clicke i want it TopCentered to the browserwindow but with the tooltip should be sticky in the same way as using the ReleativeTo=Element

By the way the Sticky property doesnt seem todo anything?

Regards, Anders
Tsvetie
Telerik team
 answered on 19 Aug 2008
1 answer
267 views
I just started using the scheduler for a project. The local telerik demo's look fine. However when I drop it on a page it looks odd. I've tried the default, Web20, and Office2007 skins, all have the same issue with the top buttons and on the right side.

Apparently there is something in the skin I'm using that is causing these display issues. My question is what tools for FireFox or IE can I use to help me discover the cause of these problems between the skin and the telerik scheduler skin/css? Without just cut/paste each section of the CSS until it goes away.

/**************************************************************************************************************
 * Reset
 **************************************************************************************************************/ 
html, body, div, span, applet, object, iframe, 
h1, h2, h3, h4, h5, h6, p, blockquote, pre
a, abbr, acronym, address, big, cite, code
del, dfn, em, font, img, ins, kbd, q, s, samp, 
small, strike, strong, sub, sup, tt, var, 
dl, dt, dd, ol, ul, li, 
fieldset, form, label, legend, 
table, caption, tbody, tfoot, thead, tr, th, td { 
    margin: 0; 
    padding: 0; 
    border: 0; 
    outline: 0; 
 
/**************************************************************************************************************
 * Globals
 **************************************************************************************************************/ 
body { font-familyArialHelveticasans-seriffont-size10ptbackground-color#ccc; } 
h1, h2, h3, p, table, ul { margin10px; } 
h1 { font-size14ptfont-weightbold; } 
h2 { font-size12ptfont-weightbold; } 
h3 { font-size10ptfont-weightbold; } 
li { margin10px 10px 10px 40px; } 
th { whitewhite-spacenowrapfont-weightbold; } 
td { text-alignleftvertical-aligntop; } 
a { color#3B5E0Btext-decorationnone; } 
a:hover { color#3B5E0Btext-decorationunderline; } 
input.text, textarea { bordersolid #3A75B6 1pxpadding2px; } 
strong { font-weightbold; } 
em { font-styleitalic; } 
blockquote { margin10px 50px; } 
 
.clear { clearboth; } 
.rightright { text-alignrightright; } 
 
/* dont show transparent pngs in IE until the js fixes them */ 
.ie5 .iefix, .ie6 .iefix { display:none; }  
 
/**************************************************************************************************************
 * Layout
 **************************************************************************************************************/ 
#page { margin: 0 autowidth750pxbackground-color#fff; } 
#page a { font-size10pt; } 
 
#header { background-color#2764C1color#fffheight150pxmargin: 0; overflowhiddentext-alignrightright; } 
#header ul { list-stylenone; } 
#header ul li { displayinlinemargin: 0 2pxfont-size8pt; } 
#header ul li a { color#ffftext-decorationnonefont-size8pt; } 
#header ul li a:hover { text-decorationunderline; } 
#header ul li.username { font-weightnormal; } 
#header h1 { font-size24ptmargin: 0 10pxfloatleft; } 
#header .badge { margin: 0; margin-top25px; } 
 
#nav { backgroundurl("Images/tabs_bg.png"repeat-x left topheight34pxpadding: 0; overflowhidden; } 
#nav ul { list-stylenonemargin: 0; padding: 0; } 
#nav ul li { displayinlinemargin: 0; padding: 0; height34pxline-height34px; } 
#nav ul li a { text-decorationnonecursor: hand; floatlefttext-decorationnonemargin: 0; padding: 0; font-weightbold; } 
#nav ul li a span { font-size10ptcolor#fffheight34pxtext-aligncenterfloatleftdisplayblockpadding: 0 15px; } 
#nav ul li a:hover span { color#3B5E0B; } 
#nav ul li a.selected span { color#3B5E0B;  } 
 
#content { } 
 
#columns { backgroundurl(Images/columns_bg.png) top left repeat-y; } 
#column1 { width500pxoverflowhiddenfloatleft; } 
#column1 a { font-size10pt; } 
#column2 { width250pxoverflowhiddenfloatrightright; } 
#column2 a { font-size10pt; } 
 
#footer { background-color#2764C1color#fffbordersolid #2764C1 1pxheight100pxfont-size8pt; } 
#footer p  { font-size8pt; } 
#footer ul { list-stylenonefloatrightrightfont-size8pt; } 
#footer li { displayinlinemargin: 0; font-size8pt; } 
#footer a  { color#ffffont-size8pt; } 
 
/**************************************************************************************************************
 * Page Styles
 **************************************************************************************************************/ 
/* ~/Admin/Default.aspx */ 
#dashboard { width750pxmargin: 0; padding: 0; } 
#dashboard .column1 { width500px; } 
#dashboard .column1 table { margin-right: 0; } 
#dashboard .column2 { width250px; } 
 
/* ~/Admin/Users.aspx */ 
#searchterms { margin10pxbackground-color#eeebordersolid #3A75B6 1px; } 
#searchterms li, a { font-size8pt; } 
#searchterms li { margin-top2pxmargin-bottom2px; } 
#searchterms p { margin2px 4px; } 
 
#userlist { } 
#userlist .gv { margin: 0 10px; } 
#userlist .count { margin: 0 10pxtext-alignrightrightfont-size8ptfont-weightbold; } 
#userlist .gvedrs td { width730pxpadding5px; } 
 
/* ~/Admin/Roles.aspx */ 
#roles { } 
#roles .list { margin: 0 10pxpadding10pxbordersolid #3A75B6 1pxbackground-color#eee; } 
#roles .list table { margin: 0; padding: 0; } 
#roles .list td { padding4px; } 
#roles .list label { margin-left5px; } 
#roles .note { margin: 0 10px; } 
 
/* ~/Login.aspx */ 
#login { margin50px; } 
#login .container { width200pxmargin-leftautomargin-rightauto; } 
#login h1 { margin: 0 0 10px 0; padding: 0; } 
#login p { margin10px 0 0 0; padding: 0; font-size10pt; } 
#login a { font-size10pt; } 
#login label { displayblockfont-weightbold; } 
#login input.text { width195px; } 
 
/* ~/Signup.aspx */ 
#signup { margin50px 195pxwidth355px; } 
#signup h1 { margin: 0 0 10px 0; padding: 0; } 
#signup table { margin: 0 0 10px 0; bordernonewidth355px; } 
#signup td { padding5px; } 
 
/* ~/ForgotPassword.aspx */ 
#passwordrecovery { margin50px; } 
#passwordrecovery .container { width300pxmargin-leftautomargin-rightauto; } 
#passwordrecovery h1 { margin: 0 0 10px 0; padding: 0; } 
#passwordrecovery p { margin10px 0 0 0; padding: 0; } 
#passwordrecovery label { displayblockfont-weightbold; } 
#passwordrecovery input.text { width295px; } 
 
/* ~/Member/Account.aspx */ 
#accountinfo { } 
 
/******************************************************************************
 * ASP.NET Controls
 ******************************************************************************/ 
  
/**** <asp:GridView /> ****/ 
.gv { background-color#cccbordersolid #3A75B6 1pxborder-collapsecollapse; } 
.gv th, .gv td { text-alignleftpadding2pxfont-size8pt; } 
.gv th { color#fffbackground-color#2764C1; } 
.gv th a { color#ffftext-decorationnone; } 
.gvar { background-color#fff; } 
.gvpr td { color#ffffont-weightboldbackground-color#2764C1font-size10pt; } 
.gvpr a { color#cccfont-weightbold; } 
.gvpr td table { margin: 0; } 
 
/**** <asp:DetailsView /> ****/ 
.dv { background-color#cccbordersolid #3A75B6 1pxborder-collapsecollapse; } 
.dv td { padding4px; } 
.dvh { text-alignrightrightwhitewhite-spacenowrapcolor#fffbackground-color#2764C1font-weightbold; } 
 
/* <asp:ValidationSummary /> */ 
.vs { color#fffbackground-color#c00margin: 0; padding4px; } 
.vs ul { margin: 0; padding: 0; list-stylenone; } 
.vs li { margin: 0; padding: 0; font-size8ptfont-weightnormal; } 
 
/* <hc:Dialog /> */ 
.dialog { color#000background-color#fffbordersolid #2764C1 2px; } 
.dialog_title { color#fffbackground-color#2764C1font-size10ptfont-weightboldpadding4pxtext-alignleft; } 
.dialog_content { text-alignleft; } 
.dialog_content .gv, .dialog_content .dv, .dialog_content table, .dialog_content p { margin10px 10px 0 10px; } 
.dialog_buttons { padding10pxtext-alignrightright; } 
.dialog_background { background-color: Gray; filter: alpha(opacity=70); opacity: 0.7; } 
 
/* <hc:Button /> */ 
button.btn { background-colortransparentbordernonemargin: 0; padding: 0; } 
button.btn div { border: 0; cursorpointerpadding: 0 10px 0 0; text-aligncenterheight28px; } 
button.btn div span { displayblockwhitewhite-spacenowrappadding: 0 0 0 10pxcolor#ffffont-size10pt;  font-weightboldheight28pxline-height28px; } 
/* button graphics */ 
button.btn div { backgroundurl(Images/button_right.png) top rightright no-repeat; } 
button.btn div span { backgroundurl(Images/button_left.png) top left no-repeat; } 
button.btn:hover div { background-position: 100% -28px; } 
button.btn:hover div span { background-position: 0% -28pxcolor#3B5E0B; } 
/* button browser specific tweaks */ 
.ie button.btn { widthautooverflowvisiblepadding: 0 0 0 4px; } 
/*.gecko button.btn div { margin: 0 -3px; } */ 
 
/************************************************************************************
 * AjaxControlToolkit Popup Calendar
 ************************************************************************************/ 
.ajax__calendar_container {padding:4px;position:absolute;cursor:default;width:240px;font-size:11px;text-align:center;font-family:tahoma,verdana,helvetica;} 
.ajax__calendar_body {height:139px;width:240px;position:relative;overflow:hidden;margin:auto;} 
.ajax__calendar_days, .ajax__calendar_months, .ajax__calendar_years {top:0px;left:0px;height:139px;width:170px;position:absolute;text-align:center;margin:auto;} 
.ajax__calendar_container TD {font-size:8pt;padding:0;} 
.ajax__calendar_header {height:20px;width:100%;} 
.ajax__calendar_prev {cursor:pointer;width:15px;height:15px;float:left;background-repeat:no-repeat;background-position:50% 50%;background-image:url(Images/arrow-left.gif);} 
.ajax__calendar_next {cursor:pointer;width:15px;height:15px;float:rightright;background-repeat:no-repeat;background-position:50% 50%;background-image:url(Images/arrow-rightright.gif);} 
.ajax__calendar_title {cursor:pointer;font-weight:bold;} 
.ajax__calendar_footer {height:15px;} 
.ajax__calendar_today {cursor:pointer;padding-top:3px;} 
.ajax__calendar_dayname {height:17px;width:17px;text-align:rightright;padding:0 2px;} 
.ajax__calendar_day {height:17px;width:18px;text-align:rightright;padding:0 2px;cursor:pointer;} 
.ajax__calendar_month {height:44px;width:40px;text-align:center;cursor:pointer;overflow:hidden;} 
.ajax__calendar_year {height:44px;width:40px;text-align:center;cursor:pointer;overflow:hidden;} 
 
.ajax__calendar .ajax__calendar_container {border:1px solid #646464;background-color:#ffffff;color:#000000;} 
.ajax__calendar .ajax__calendar_footer {border-top:1px solid #f5f5f5;} 
.ajax__calendar .ajax__calendar_dayname {border-bottom:1px solid #f5f5f5;} 
.ajax__calendar .ajax__calendar_day {border:1px solid #ffffff;} 
.ajax__calendar .ajax__calendar_month {border:1px solid #ffffff;} 
.ajax__calendar .ajax__calendar_year {border:1px solid #ffffff;} 
 
.ajax__calendar .ajax__calendar_active .ajax__calendar_day {background-color:#edf9ff;border-color:#0066cc;color:#0066cc;} 
.ajax__calendar .ajax__calendar_active .ajax__calendar_month {background-color:#edf9ff;border-color:#0066cc;color:#0066cc;} 
.ajax__calendar .ajax__calendar_active .ajax__calendar_year {background-color:#edf9ff;border-color:#0066cc;color:#0066cc;} 
 
.ajax__calendar .ajax__calendar_other .ajax__calendar_day {background-color:#ffffff;border-color:#ffffff;color:#646464;} 
.ajax__calendar .ajax__calendar_other .ajax__calendar_year {background-color:#ffffff;border-color:#ffffff;color:#646464;} 
 
.ajax__calendar .ajax__calendar_hover .ajax__calendar_day {background-color:#edf9ff;border-color:#daf2fc;color:#0066cc;} 
.ajax__calendar .ajax__calendar_hover .ajax__calendar_month {background-color:#edf9ff;border-color:#daf2fc;color:#0066cc;} 
.ajax__calendar .ajax__calendar_hover .ajax__calendar_year {background-color:#edf9ff;border-color:#daf2fc;color:#0066cc;} 
 
.ajax__calendar .ajax__calendar_hover .ajax__calendar_title {color:#0066cc;} 
.ajax__calendar .ajax__calendar_hover .ajax__calendar_today {color:#0066cc;} 

I had a screen shot to post as well but I don't see an option to attach or embed a photo. How do you attach a photo to a forum message?

Here is a Link to it for now
Peter
Telerik team
 answered on 19 Aug 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?