Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
Hi,

I would like to find out if anyone has tried using the AJAX Grid control to make a logger control.  Basically the rows would contain HTML with an image representing the type of log entry, text, time, etc.

Also, is it possible to programmatically smoothly scroll the grid, so when new entries are added I can scroll the old rows off, and scroll the new rows on?

I know, very high level questions, but I have a very tight time-frame, so I thought I'd ask before coding/learning this from scratch.

Regards,
Shane
Shinu
Top achievements
Rank 2
 answered on 30 Oct 2009
1 answer
146 views
Experienced members,

I must be missing what is right in front of me... How does one go about setting a default value on newly inserted rows in the grid.

I have tried many of the events to get to e.Item.DataItem but alot of the time that property is null.

Can anyone point me in the right direction here?

Thanks,

Chris
Princy
Top achievements
Rank 2
 answered on 30 Oct 2009
1 answer
316 views

 

Dear Telerik
                      I am creating a radcombobox in first row using the below code using filter template inside boundcolumn.I want to bind data to comboxbox at runtime.After that I want to add a selectedindexchanged event to radcombox so that if I select any thing from comboxbox then the data in radgrid is changed accordingly.How to do this functionality.Please provide any sample for me .I tried the sample provided in telerik documentation where they have used custom template column,but it didn't worked for me.Please give me response as I need it urgently.

 

<

telerik:GridBoundColumn DataField="EVENT_TYPE_DESC" HeaderText="Event type" AllowFiltering="true" CurrentFilterFunction="EqualTo" ShowFilterIcon="false">

 

 

 

<FilterTemplate>

 

 

 

<telerik:RadComboBox ID="cmbEventType" runat="server"></telerik:RadComboBox>

 

 

 

</FilterTemplate>

 

 

 

</telerik:GridBoundColumn>

 

 

Full aspx code

<

telerik:RadScriptManager ID="sm" runat="server"></telerik:RadScriptManager>

 

 

 

<div>

 

 

<table width="100%">

 

 

<tr>

 

 

<td>Show events from<telerik:RadDatePicker ID="rdpFromDate" runat="server">

 

 

<DateInput ID="dateFrom" DateFormat="MM/dd/yyyy" DisplayDateFormat="MM/dd/yyyy" runat="server"></DateInput>

 

 

</telerik:RadDatePicker>

 

 

to

 

<telerik:RadDatePicker ID="rdpToDate" runat="server" OnSelectedDateChanged="rdpToDate_SelectedDateChanged" AutoPostBack="true">

 

<DateInput ID="dateTo" DateFormat="MM/dd/yyyy" DisplayDateFormat="MM/dd/yyyy" runat="server"></DateInput>

 

 

</telerik:RadDatePicker>

 

 

<asp:LinkButton ID="lnkViewall" runat="server" Text="View all" CommandName="View all" OnClick="lnkViewall_Click"></asp:LinkButton>

 

 

</td>

 

 

</tr></table>

 

 

<table border="0" width="100%">

 

 

<tr>

 

 

<td>

 

 

<telerik:RadGrid ID="gvEventHistory" skin ="Office2007" runat="server" AutoGenerateColumns="false" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true" OnItemDataBound="gvEventHistory_ItemDataBound" >

 

 

<MasterTableView DataKeyNames="E_NO,SCHEDULE_EVENT_ID" ClientDataKeyNames="E_NO,SCHEDULE_EVENT_ID">

 

 <

RowIndicatorColumn>

 

 

<HeaderStyle Width="2px" />

 

 <

ItemStyle Width ="10px" />

 

 

</RowIndicatorColumn>

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="E_NO" UniqueName="E_NO" HeaderText = "Eno #" Visible="false"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="SCHEDULE_EVENT_ID" HeaderText="ScheduleEventId" UniqueName="SCHEDULE_EVENT_ID" Visible="false"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Tcode" HeaderText="Terr." AllowFiltering="true"

 

 C

urrentFilterFunction="EqualTo" ShowFilterIcon="false">

 

 

<FilterTemplate>

 

 

<asp:TextBox ID="txtTerr" runat="server"></asp:TextBox>

 

 

</FilterTemplate>

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="EVENT_TYPE_NAME" HeaderText="Event name" AllowFiltering="true" CurrentFilterFunction="StartsWith" ShowFilterIcon="false">

 

 

<FilterTemplate>

 

 

<asp:TextBox ID="txtEventName" runat="server"></asp:TextBox>

 

 

</FilterTemplate>

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="EVENT_TYPE_DESC" HeaderText="Event type" AllowFiltering="true" CurrentFilterFunction="EqualTo" ShowFilterIcon="false">

 

 

<FilterTemplate>

 

 <

telerik:RadComboBox ID="cmbEventType" runat="server"></telerik:RadComboBox>

 

 

</FilterTemplate>

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Lno" HeaderText="Location #" AllowFiltering="true"

 

 

CurrentFilterFunction="EqualTo" ShowFilterIcon="false">

 

 

<FilterTemplate>

 

 

<asp:TextBox ID="txtLocation" runat="server"></asp:TextBox>

 

 

</FilterTemplate>

 

 <

/telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="START_TIME" HeaderText="Start date" AllowFiltering="true"

 

 

CurrentFilterFunction="EqualTo" ShowFilterIcon="false" DataFormatString="{0:d}" >

 

 

<FilterTemplate>

 

 

<telerik:RadDatePicker ID="rdStartDate" runat="server">

 

 <

/telerik:RadDatePicker>

 

 

</FilterTemplate>

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="END_TIME" AllowFiltering="true" HeaderText="Start time" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" DataFormatString="{0:T}">

 

 

<FilterTemplate>

 

 

<telerik:RadTimePicker ID="rdStartTime" runat="server"></telerik:RadTimePicker>

 

 

</FilterTemplate>

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn ShowFilterIcon="false" HeaderText="Attendance" DataField="Attendance">

 

 <

FilterTemplate>

 

 

<telerik:RadComboBox ID="cmbAttend" runat="server">

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="Attended" Value="Attended" />

 

 

<telerik:RadComboBoxItem Text="UnAttended" Value="UnAttended" />

 

 

<telerik:RadComboBoxItem Text="All" Value="All" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

</FilterTemplate>

 

 

<ItemTemplate>

 

 

<asp:CheckBox ID="chkAttend" runat="server" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings Selecting-AllowRowSelect="true">

 

 

<ClientEvents OnRowDblClick="OnRowDblClick"/>

 

 

</ClientSettings>

 

 <

/telerik:RadGrid>

Thanks
sri

 

 

 

Princy
Top achievements
Rank 2
 answered on 30 Oct 2009
0 answers
74 views

Hi All

 I have Master page with "RADScriptManager" and content page with "radajaxmanager"  and "radajaxloadingpanel" with different control  like "RADGrid" and "RADTAB" with Multi Page in multipage i have User Control in one of page and i want to access "RadTab" and "MultiPage" in content page with Ajax in usercontrol and change "RadTab" content and index..

Thanks in advance

nitin

nitin_ind_ap1@yaoo.co.in

nitin
Top achievements
Rank 1
 asked on 29 Oct 2009
0 answers
64 views
Hello,

I would like to know how to use different templates on the same RadTabStrip. I have looked at all of the examples that show how to statically declared TabTemplates in the .aspx file and override them in the RadTab.  

I have 4 items on the RadTabStrip which are static and must always be present then I also allow users to add new tabs and persist them to a database. I would like the tabs that the user has added to be removable and for the delete button to only showup on the tabs that have been added and are dynamic not the static tabs. I have implemented different examples provided in the documentation but have been unsuccessful at having tabs not using a template and other tabs using my "RemovableTabTemplate".

Can you please provide some insight into how i can implement this?
Bobby Johnson
Top achievements
Rank 1
 asked on 29 Oct 2009
6 answers
527 views
Hi there,

I would like escape ampersands in the field that gets passed to  GridHyperLinkColumn..... What's the best way to do that?

Currently I format the field like this... and am getting bad URLs when a field value has ampersands in it. 

        <telerik:GridHyperLinkColumn 
            HeaderText="Sector" SortExpression="Sector"
            UniqueName="Sector" DataNavigateUrlFormatString="Page.aspx?Sector={0}" 
            DataNavigateUrlFields="Sector" DataTextField="Sector" 
            FooterText="TOTAL:" FooterStyle-Font-Bold="true">
        <HeaderStyle Width="150px" />
        </telerik:GridHyperLinkColumn>

Thx!
Justin

Barnabas
Top achievements
Rank 1
 answered on 29 Oct 2009
1 answer
234 views
Is it possible to use RadTabStrip without using RadMultiPage? I can't use RadMultiPage OR NavigateURL property in RadTab, my scenario I want to create Tabs dynamically and load user controls in it and I don't want it usercontrol refreshed every time user selects a tab.

Any thoughts?

thanks.
robertw102
Top achievements
Rank 1
 answered on 29 Oct 2009
5 answers
177 views
My application uses asp wizard control with 8 wizard steps.  I placed the editor control in one of the wizard steps (7th).  When I move to that step, the rad editor does not display any content.  It just shows a big block that its there. 

When I place the control in the first wizard step or make the step that the editor control in as the activestepindex, then the control works fine.

There must be some html elements or something Interfering with the rad editor which I am unable to figure out.

Has anyone who used this control in wizard ran into similar situation and resolved it?

Please assist me.

Narasimham Nimmagadda
Top achievements
Rank 1
 answered on 29 Oct 2009
2 answers
89 views
Hi Everybody,

I have been problems to change place the square of items.. I'd like to put this square more side right using padding left or margin left... Is it possible??


Can Everybody help me, please?
Carlos Marchi
Top achievements
Rank 1
 answered on 29 Oct 2009
1 answer
174 views
I have a RadGrid where one of the editable columns is called NodeId.  NodeId is edited by selecting a node of a RadTreeView.  Because I cannot bind the NodeId RadGrid column value directly to the RadTreeView.SelectedValue, I determined that I must manually handle the passing of the value.  I am able to set the value in the RadTreeView in RadGrid.ItemCreated (see the code below), but I do not know how to persist a RadTreeView selection change.  I explored using RadGrid.ItemCommand, but e.Item.DataItem is nothing.

    Private Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated  
        If TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode AndAlso e.Item.DataItem IsNot Nothing Then 
            Dim NodeId As Object = (TryCast(e.Item.DataItem, DataRowView))("NodeId")  
            If NodeId IsNot DBNull.Value Then 
                Dim RadTreeView1 As RadTreeView = e.Item.FindControl("RadTreeView1")  
                RadTreeView1.FindNodeByValue(NodeId).Selected = True 
                RadTreeView1.SelectedNode.Focus()  
            End If 
        End If 
    End Sub 
Wyatt
Top achievements
Rank 1
 answered on 29 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?