Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
For example:
I have three appointments called "A" and one appointment called "X". All appointments start in one day and at one time. I would want that in scheduler displayed at the top of a cell event "X".
Peter
Telerik team
 answered on 20 Oct 2008
4 answers
306 views
I am having a problem exposing the detail table in a hierarchy grid for a check\uncheck all with a header checkbox. Does anyone have a working example of independant tables (Master and Detail) check\check all?


Protected Sub DetailToggleSelectedState(ByVal sender As ObjectByVal e As EventArgs)  
        If (CType(sender, CheckBox)).Checked Then 
            For Each dataItem As GridDataItem In rgProjects.MasterTableView.DetailTables(0).Items  
                CType(dataItem.FindControl("DetailCheckBox"), CheckBox).Checked = True 
                dataItem.Selected = True 
            Next 
        Else 
            For Each dataItem As GridDataItem In rgProjects.MasterTableView.DetailTables(0).Items  
                CType(dataItem.FindControl("DetailCheckBox"), CheckBox).Checked = False 
                dataItem.Selected = False 
            Next 
        End If 
    End Sub 
codispdp
Top achievements
Rank 1
 answered on 20 Oct 2008
3 answers
145 views
Hello,

I am trying to include, as explained in the doc, a RadUploadManager and RadProgress in the last page of a TabStrip used as an expert.
I go from page to page with an ajaxified Next button on each page.
The last page contains a Start button which is not ajaxified, this button start a long process I want to monitor.
I have no Input type=file on the page.
I have already done this previously but withourt using an expert and it was working (but previous telerik versions, now I am on 2.1001).
Each time I press a next button, I receive the famous popup 'RadUpload Ajax callback error: Source url returns invalid content' + my page html content.
Web.config is Ok because radupload is working ok on other pages.
My code:
....
<Telerik:RadPageView ID="RadPageView5" runat="server">
 <div style='width:100%; min-height:400px' >
 <asp:label ID='Label5' runat='server' Text="Summary" /><br />
<Telerik:RadTextBox ID="RadTbSummary" Runat="server" TextMode="MultiLine"  Enabled="false" style='width:100%; min-height:300px' />
<telerik:RadProgressManager id="Radprogressmanager1" Enabled="false" runat="server" />
<telerik:RadProgressArea id="RadProgressArea1" Enabled="false" runat="server" />
<div style="display:block; position:absolute; bottom:5px; left:85%;" >
<asp:ImageButton ID="updateBtn" SkinID="Update_"  runat="server" />
</div>
</div>
</Telerik:RadPageView>
..

Pb is that RadUploadManager seems to be triggered when I try to go from page to page, without anything to upload.
I tried to put enabled=false on the 2 controls, expecting to turn it true on last page but it has no effect ?

Any help welcome.
CS

Erjan Gavalji
Telerik team
 answered on 20 Oct 2008
1 answer
181 views
I kept a delete button to delete a row in the grid.I need to delete 2 tables when i click a particular row delete.For ex. , I click the categoryid 4, to delete, it needs to delete the category master table with the category id no 4 and also the category master table with category id no 4.Pls suggest me asap.

thanks & regards    

<

 

telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource3"

 

 

GridLines="None" Style="left: 24px; position: absolute; top: 168px" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" Height="24px" PageSize="5" Skin="Sunset" Width="512px" AllowAutomaticUpdates="True" AutoGenerateEditColumn="True" AllowAutomaticDeletes="True">

 

 

 

<MasterTableView DataKeyNames="categoryid" DataSourceID="SqlDataSource3" EditMode="InPlace">

 

 

<Columns>

 

 

 

<telerik:GridBoundColumn DataField="categoryid" DataType="System.Int64" EmptyDataText="&amp;nbsp;"

 

 

HeaderText="Category ID" SortExpression="categoryid" UniqueName="categoryid" ReadOnly="True">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="categorydescription" EmptyDataText="&amp;nbsp;"

 

 

HeaderText="Category Description" SortExpression="categorydescription" UniqueName="categorydescription">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridClientDeleteColumn ConfirmText="Are you sure to delete the selected row?" ButtonType="ImageButton" ImageUrl="~/images/Delete.gif" Text="Delete" UniqueName="column" >

 

 

<HeaderStyle Width="35px" />

 

 

</telerik:GridClientDeleteColumn>

 

 

</Columns>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</ExpandCollapseColumn>

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</RowIndicatorColumn>

 

 

</MasterTableView>

 

 

<FilterMenu EnableTheming="True" Skin="Sunset">

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

</FilterMenu>

 

 

<HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"

 

 

Font-Underline="False" Wrap="True" />

 

 

<PagerStyle Mode="NextPrevAndNumeric" />

 

 

<ClientSettings>

 

 

<Selecting AllowRowSelect="True" />

 

 

</ClientSettings>

 

 

<EditItemStyle Font-Names="Tahoma" Font-Size="9pt" />

 

 

</telerik:RadGrid>

 


Prangadj
Top achievements
Rank 1
 answered on 20 Oct 2008
1 answer
119 views
Hi All,

I am using RadScheduler.

I set the proprty 'DisplayDeleteConfirmation' property to False.

I don't want any conformation dialog so i have added the following function
in javascript on its client event 'OnClientRecurrenceActionDialogShowing'


function OnClientRecurrenceActionDialogShowing(sender, eventArgs) {
                 if (eventArgs.get_recurrenceAction() != 2)
               eventArgs._cancel = true;

           }

In apove condition it shows the confirmation dialog ,when click on ok then it goes to serverside event.

Issue.

When i click on delete button of appointment , i don't want to show confirmation dialog .
It should directly execute the serverside appointmentdelete event.

Thanks

Peter
Telerik team
 answered on 20 Oct 2008
7 answers
636 views
I want to put a color picker in an edit template in a rad grid.  I need to populate the picker with colors from a database.

I know I can add the items like this:

radColor.Items.Add(

new Telerik.Web.UI.ColorPickerItem(ColorTranslator.FromHtml("#cccccc")));


And I know I can set the selected color with:

 

picker.SelectedColor =

ColorTranslator.FromHtml((DataBinder.Eval(e.Item.DataItem, "Color").ToString()));

 

 

What is the code I need to populate each color picker in the gridview though (from sql)?

Yavor
Telerik team
 answered on 20 Oct 2008
1 answer
113 views
Dear Team!

I using DropDownlist  in RadGid when i Load 15000 record,
the webpages will be crash.

Please help me for large data with DropDownListBox in RadGrid control.

Thanks!

Luu Minh Tung

Sebastian
Telerik team
 answered on 20 Oct 2008
1 answer
123 views
Hi All,
I have a dock zone with dynamically created docks, that are stacked vertically in the collapsed state (and the user can reorder).  I would like to use a button outside of the zone that can essentially tab to the next dock (from the one that is selected) and expand it.  And continue to go through the collection of them and expand.

I would like to do it using javascript. Can I access the dock's index value (within the zone) client side?  And do I know the one with the focus by using the onClientCommand ()?

Thank you,
Beth
Petio Petkov
Telerik team
 answered on 20 Oct 2008
2 answers
165 views
Sir
How to create multiple raddockzones dynamically.How to enable its drag n drop feature,expand/collapse feature,saving the position of dock after each drag n drop.I called the below functions inside a loop.
Can u plz pointout the errors in this

 

Function CreateJavaScriptFunctionCall(ByVal dock As RadDock) As String

 

 

Dim dockHandleID As String = ""

 

 

For Each contrl As Control In dock.ContentContainer.Controls

 

 

If TypeOf contrl Is Label Then

 

dockHandleID = contrl.ClientID

 

End If

 

 

Next

 

 

Return "changeRadDockHandle('" + dock.ClientID + "','" + dockHandleID + "')"

 

 

End Function

 

 

Protected Sub CreateDock(ByVal strDocument As String, ByVal intTotal As Integer, ByVal sDocument As String)

 

 

Dim smExists As Boolean = False

 

 

For Each contrl As Control In Page.Form.Controls

 

 

If TypeOf contrl Is ScriptManager Then

 

smExists =

True

 

 

Exit For

 

 

End If

 

 

Next

 

 

If Not (smExists) Then

 

 

Dim sm As New ScriptManager()

 

Page.Form.Controls.Add(sm)

Page.Header.Controls.Add(

New LiteralControl("<script language='javascript'> function changeRadDockHandle(dockID,handleID){var dock = $find(dockID)dock.set_handle(document.getElementById(handleID))} </script>"))

 

 

End If

 

 

Dim zone As New RadDockZone()

 

 

Dim UpdatePanl As New UpdatePanel()

 

UpdatePanl.ID =

"UpdatePanelDoc" + dockcnt.ToString()

 

 

 

Dim dock As New RadDock()

 

dock.ID =

"dock" + dockcnt.ToString()

 

dock.Title = AppendDocumentHeader(strDocument, intTotal, sDocument)

dock.BackColor = Color.AliceBlue

 

dock.ContentContainer.Controls.Add(lblTableWorks1)

 

 

dock.OnClientInitialize = CreateJavaScriptFunctionCall(dock)

 

dock.Commands.Add(

New DockCloseCommand())

 

dock.Commands.Add(

New DockExpandCollapseCommand())

 

zone.Controls.Add(dock)

zone.Width = 700

DkLayoutDocMain.Controls.Add(zone)

DkLayoutDocMain.Controls.Add(UpdatePanl)

 

 

End Sub

Thanks

 

Stanimir
Telerik team
 answered on 20 Oct 2008
4 answers
111 views
Hello,
        I have a Radgrid with 2 levels of hierarchy. Here the child GridTableview has multirow edit functionality enabled and also the paging is enabled. The issue is when I am on page 2 (or any subsequent page) and I select any item(s) for edit and click of Edit command button, the items are shown in edit form but they are all from page no. 1 (not the ones that were selected for edit). i.e. on edit button click the grid is always moved back to page no.1. (paging is not maintained)

Please suggest how we can fix this issue.

Regards,
Rajiv
Yavor
Telerik team
 answered on 20 Oct 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?