Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
196 views
I have a new RadGrid on a page within an existing asp Update Panel.  I have enabled selecting rows, and created an event to run when the user selects a row, and I thought I did what I needed to tell the RadGrid which event to fire, but I can't get the server side event to fire.  Can someone please tell me what am I missing here?

<telerik:RadGrid ID="gridLink" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellSpacing="0" 
            DataSourceID="sdsLinkRecords" GridLines="None" ShowGroupPanel="True" AllowCustomPaging="True" Skin="Simple" 
            OnItemCommand="gridLink_ItemCommand">
            <ClientSettings AllowDragToGroup="True">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <MasterTableView DataKeyNames="fullID" DataSourceID="sdsLinkRecords">
                <CommandItemSettings ExportToPdfText="Export to PDF" />
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                    <HeaderStyle Width="10px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                    <HeaderStyle Width="10px" />
                </ExpandCollapseColumn>
                <Columns>
 ...
                </Columns>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
            </HeaderContextMenu>
        </telerik:RadGrid>

Protected Sub gridLink_ItemCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles gridLink.ItemCommand
  
        If e.CommandName = "Select" Then
            Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
            Dim oldReportsID As String = lblFullSeqNum.Text
            Dim tblIncidentsID As Integer = item("tblIncidentsID").Text
  
....
        End If
  
    End Sub
Nicole
Top achievements
Rank 1
 answered on 14 Sep 2011
14 answers
293 views
I looking to make a appointment scheduler that has 3 distinct views.
1) For the business schedule. IE Monday-Friday 9-5
2) Business appointments, which contains all the client appointments
2) The client: show only their appointments and what is available based on the business schedule

All of the appointment would be tagged with a custom attribute called type, which would be either business or client. I wanted to business to go in a create their schedule, which would be tagged business.

I don't think 1 and 2 are difficult since you can change the query for each one them. One asking for the business and the other for client.

The problem is 3. I want the client to see availability based on the business schedule.  Also, to mark off times when other people have made appointments.  I dont want to see either these in the scheduler as appointments.  What I wanted to do in the TimeSlotCreated event was if the custom attribute was for the business, not to show the appointment, but I did want to change the cssclass field available style. If the appointment was by another person, I wanted again not show it as an appointment,but I also wanted to change to cssclas field to a taken style. and lastly for the use to show their appointment.

any direction is appreciated.  i tried removing an appointment in the TimeSlotCreated event.  I was also thinking of having 2 schedulers on the page. one that was not visiable and using the data from the other one to do this.
Peter
Telerik team
 answered on 14 Sep 2011
5 answers
127 views
Hi to all,
I validated my XHTML Transitional page using W3C online validator and following error comming from RadButton was obtained
Line 192, Column 289: there is no attribute "align" 
…><span class="rbText rbPrimary" align="center">Obsah spravodajcu []</span><inp…✉ 
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using ....

My Radbutton is defined in markup:
<td style="width:190px;white-space:nowrap;text-align:right">
   <telerik:RadButton ID="btnDoc" runat="server" ButtonType="LinkButton" Width="190px"
        Text='<%# "Obsah spravodajcu [" + Utils.GetFileLengthFriendly(Server.MapPath("~/Documents/" +  Eval   ("Document"))) + "]" %>' NavigateUrl='<%# "~/Documents/" +  Eval("Document")%>' Target="_blank" Visible='<%# Eval("Document") != null %>' CausesValidation="false" CssClass="unwrapped">
        <Icon PrimaryIconUrl="~/Styles/icon_pdf.png" />
    </telerik:RadButton>    
 </td>

I can not find the reason why not allowed attribute align="center" is rendered for relevant span tag.
Any idea?
Thanks
-Marian
Marian
Top achievements
Rank 1
 answered on 14 Sep 2011
3 answers
324 views
Hello,

All my RadGrid Columns are dynamic i have to create columns based on current a page state. I ll come to know the columns to be created only on a selection of a dropdownlist in the same page.
Please let me know the right RadGrid event to create a dynamic columns in the RadGrid.

Appreciate you quick response.

Thanks
Prabhu
Petrofac
Top achievements
Rank 1
 answered on 14 Sep 2011
1 answer
114 views
dear sir,
we need single button clcik we can upload the file and save to particular folder (without file upload control).
pls help me.
Regards
padmanaban.
Prangadj
Top achievements
Rank 1
 answered on 14 Sep 2011
1 answer
95 views
I create an Appointment template dynamically and I want to create a Hyperlink as subject. The problem that I have is that I need to use a value of the Datatable that is datasource of the RadScheduler. See definition of the DataTable.  IN the AppointmentDataBound I know I can use the DataRowVIew to get the values of the DataItem but in the Appointment Template does not work. How can I get the values of the DataItem in the appointment Template? See the appointment template below.


 

 

protected void RadScheduler_AppointmentDataBound(object sender, SchedulerEventArgs e)

 

{

 

 

if (e.Appointment.DataItem != null)

 

{

 

 

int argb = Int32.Parse(((System.Data.DataRowView)(e.Appointment.DataItem)).Row.ItemArray[11].ToString().Replace("#", ""), NumberStyles.HexNumber);

 

e.Appointment.BackColor =

 

Color.FromArgb(argb);

 

}

 

}


/*****DataTable definition*****/

DataTable

 

 

dtAppointments = new DataTable("Appointments");

 

dtAppointments.Columns.Add(

 

"ItemID", typeof(string));

 

dtAppointments.Columns.Add(

 

"Title", typeof(string));

 

dtAppointments.Columns.Add(

 

"CalendarType", typeof(string));

 

dtAppointments.Columns.Add(

 

"StartDate", typeof(DateTime));

 

dtAppointments.Columns.Add(

 

"EndDate", typeof(DateTime));

 

dtAppointments.Columns.Add(

 

"hasEndDate", typeof(bool));

 

dtAppointments.Columns.Add(

 

"Description", typeof(string));

 

dtAppointments.Columns.Add(

 

"Location", typeof(string));

 

dtAppointments.Columns.Add(

 

"RecurrenceRule", typeof(string));

 

dtAppointments.Columns.Add(

 

"RecurrenceParentID", typeof(Int64));

 

dtAppointments.Columns.Add(

 

"IsRecurrence", typeof(bool));

 

dtAppointments.Columns.Add(

 

"Color", typeof(string));

 

dtAppointments.Columns.Add(

 

"NavigationUrl",typeof(string));

/******* AppointTemplate Class.I took this from the forum*****/

 

 

 

public class AppTemplate : ITemplate

 

 

 

 

 

{

 

 

public void InstantiateIn(Control container)

 

{

 

 

Literal subject = new Literal();

 

subject.DataBinding += subject_DataBinding;

container.Controls.Add(subject);

}

 

 

private void subject_DataBinding(object sender, EventArgs e)

 

{

 

 

Literal subject = (Literal)sender;

 

 

 

IDataItemContainer aptContainer = (IDataItemContainer)subject.BindingContainer;

 

 

 

 

 

int argb = Int32.Parse(((System.Data.DataRowView)(aptContainer.DataItem)).Row.ItemArray[11].ToString().Replace("#", ""), NumberStyles.HexNumber);

 

 

 

int lId = Convert.ToInt32(DataBinder.Eval(aptContainer.DataItem, "ID"));

 

 

 

string strSubject = HttpUtility.HtmlEncode((string)DataBinder.Eval(aptContainer.DataItem, "Subject"));

 

 

 

SPWeb oWeb = null;

 

oWeb =

 

SPContext.Current.Web;

 

 

 

String requestListName = "TravelCalendarList";

 

 

 

SPListItem itm = oWeb.Lists[requestListName].GetItemById(Convert.ToInt32(lId));

 

 

 

if (itm != null)

 

{

 

 

if (null != itm["RequestId"])

 

{

subject.Text =

 

"<a href=\"" + oWeb.Url + "/default.aspx?ListId=" + lId + "\">" + strSubject + "</a>";

 

}

 

 

else

 

 

 

 

 

{

subject.Text = strSubject;

}

}

}

}

}

Peter
Telerik team
 answered on 14 Sep 2011
1 answer
29 views
Hello,

in our current development, we make heavy use of fixed size buttons, decorated in Vista style.

the issue we have is that, when testing in IE9, the button is not rendered correctly, looks like a space appears between the rounded part of the button on the right and the rest of the button

I do not have a screenshot at hand, but is this issue already identified ? Is there a workaround out of getting rid of fixed sized buttons ?

Best regards

Philippe
Bozhidar
Telerik team
 answered on 14 Sep 2011
3 answers
248 views
Under ASP.NET 4.0,  when using System.Web.Routing  (URL Routing)  with telerik controls on the rendered page.  I am encountering ASP.NET Ajax client-side framework failed to load.

<

 

 

script src="/ThriventPromoRad40/WebResource.axd?d=kuV-9BW9vUE9mrfKFZ3iarEeZ53VRoFdPvU6l_eVkRJWggZVCdkkPTfmCxIghLXyMbupWxfy9hdfoXjjTxbduMDzGQNVIEKoR1dpIpiTxB81&amp;t=634226478236080422" type="text/javascript"></script>

 

<

 

 

script src="/ThriventPromoRad40/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&amp;compress=1&amp;_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3aaa801ad7-53c4-4f5c-9fd3-11d99e4b92f4%3a16e4e7cd%3aed16cbdc%3a7165f74" type="text/javascript"></script>

 

<

 

 

script type="text/javascript">

 

//<![CDATA[

if

 

 

(typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');

 


 
If I remove the routing options or if I replace the Telerik controls with generic ASP.NET controls.  (IE: Radbutton with ImageButton).  The page functions correctly. 

Any suggestions?

Brete


Erik
Top achievements
Rank 2
 answered on 14 Sep 2011
3 answers
88 views
Having another issue with the RadSplitter, in that if you had a minimum size, or the header is smaller than a certain size... then when trying to reduce it past this size.. we get a transparent splitter.. as you can see in the following video (from the telerik demo) (this was tested in IE7, 8 and 9.. the video shows IE9)

http://www.youtube.com/watch?v=8pUvnGGpTOA

Niko
Telerik team
 answered on 14 Sep 2011
3 answers
103 views

Is there any way to put image in right side of the toolbar , while RadButtons are in left order?

I have a lot of space in my toolbar and I need to use it for Logo.

The best is if I can have some of RadButtons in right order

 

Kate
Telerik team
 answered on 14 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?