Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
156 views
Good morning,

Once you are finished with a RadProjectArea, is there a way to clear the RadURID in the address bar? I have other tasks that I need to complete after adding an attachment, but I can't because of the URID in the Url. Any ideas / suggestions? Thanks

Eric
Eric Moore
Top achievements
Rank 1
 answered on 28 May 2010
3 answers
110 views
I have a pair of RadListBoxes that work together as documented.

I use the contents of the RadListBox2 as the names for some tabs in a RadTabStrip that I configure/use elsewhere in the page. The RadTabStrip is defined during Page_Load. Currently when I look at the RadListBox2.Items, I only see the items that were there before the post-back and none of the newly transferred items, so my RadTabStrip does not contain the newly added items (if I do another post-back, the new items show up because the transfer event fires successfully after the Page_Load).

I suppose I could wait to create the tabs until the OnTransferred event fires, but that requires some code restructuring and seems a bit backwards to me in the page life cycle. Seems like the transfer should be happening during page load.

Does anyone have any suggestions on how to achieve my goals in Page_Load or Page_Init rather than in OnTransferred?

Here is how I have the controls configured:
                <telerik:RadListBox ID="RadListBox1" 
                                    runat="server" 
                                    Height="190px" 
                                    Width="230px" 
                                    AllowTransfer="true" 
                                    TransferToID="RadListBox2" 
                                    TransferMode="Move" 
                                    AutoPostBackOnTransfer="true" 
                                    AllowTransferDuplicates="false" 
                                    AllowTransferOnDoubleClick="true" 
                                    EnableDragAndDrop="false">  
                </telerik:RadListBox> 
                <telerik:RadListBox ID="RadListBox2" 
                                    runat="server" 
                                    Height="190px" 
                                    Width="200px" 
                                    AutoPostBackOnReorder="true" 
                                    AllowReorder="true" 
                                    ButtonSettings-ShowReorder="true" 
                                    ButtonSettings-ReorderButtons="Common">  
                </telerik:RadListBox> 
jrussel21
Top achievements
Rank 1
 answered on 28 May 2010
2 answers
115 views
Hi!  I would like to set my listview up so that when I reach the last page, if the user clicks the increase button, it will take them back to the first page.

Is there a way I can do this using the RadDataPagerSliderField pager?

Thanks!
Angie
Top achievements
Rank 1
 answered on 28 May 2010
4 answers
253 views
Hi All,

I am trying to export to PDF on the grid. This Export to PDF button is displayed on the top the Grid using the Property Display On top.
But this is rendering me as a plain PDF Document, where nothing is  displayed. Along with Export to PDF i even have a button for Export to Excel for which the grid is exported on the excel. I have a Grid with 3 levels of Hireachy.

Iam using the licensed version of the telerik.

Can any one pls let me why Export to PDF is not Working.

One more issue i even buttons for Expand All. when clciked on this button all the child level grids should be expanded. This button is also placed on the top of the Grid. In this iam unable to find the Inner Grid on the Item Command Event.
Can any one pls let me know how to identify the InnerGrid on Item Command Event.

Pls its very urgent .

Any help form you guys really help us in going ahead.

Regards,
Asra
Deepa Balasundaram
Top achievements
Rank 1
 answered on 28 May 2010
1 answer
108 views
I have a aspx page with two list box, one that gets filled on page load and one that acts as the destination box.

This is working fine but now I'm looking to find a way for the user to click a button and to move any items that exist in the source listbox with a certain value and move to destination listbox.

Is there a simple of way of doing this?

I looked at looping through the items in the source listbox, but when I removed a matching item from source and added to destination the code stopped as the collection had changed.
Genady Sergeev
Telerik team
 answered on 28 May 2010
1 answer
128 views
How do I add new row to my details from client side..without postback. My grid is displayed in hriearchy mode and has two details view and one master view. I want to add new row to my second detail view. Dont want to add row to datasource and rebind the grid as my grid is having huge data and it takes time to rebind the grid.

Here is the scenario..when user right clicks on first detail view..context menu is displayed which has item for inserting new row to the second detail view table. When user clicks on this menu item i.e. Add new then a new row should be added to second detail view without postback.

grid structure as below:

Master view
    >> first details view1
   >>>> second details view.1
   >>>> second details view.2
   >>first details view2
   >>>> second details view.1
   >>>> second details view.2
   >>>> second details view.3
Also in the similar way I want to delete the row.

Please let me know how this can be achieved.
Daniel
Telerik team
 answered on 28 May 2010
1 answer
155 views
Hi,

           I am using Silverlight MultiFile Upload Control For uploading multiple files and also using radupload when silverlight is not install on machine so how i can work both of these and in c# how i can save the file if these both are diffrent.

<

telerik:RadAjaxPanel runat="server" ID="AjaxPanelMain" LoadingPanelID="LoadingExamplePanel" EnableAJAX ="true">

 

 

<asp:Panel runat="server" ID="Panel1" Visible="true">

 

 

<input type="hidden" id="UploadedFilesJson" runat="server" />

 

 

<div class="upload-panel">

 

 

<div class="upload">

 

 

<object id="SilverlightUpload" data="data:application/x-silverlight," type="application/x-silverlight-2"

 

 

width="400px" height="120px">

 

 

<param name="source" value='<%= ResolveUrl("~/Upload.xap") %>' />

 

 

<param name="background" value="white" />

 

 

<param name="minRuntimeVersion" value="2.0.31005.0" />

 

 

<param name="autoUpgrade" value="true" />

 

 

<param name="windowless" value="true" />

 

 

<param name="InitParams" value='<%= InitParameters %>' />

 

 

<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">

 

 

<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight"

 

 

style="border-style: none" />

 

 

</a>

 

 

<telerik:RadUpload ID="radUpload" ControlObjectsVisibility="All"

 

 

AllowedFileExtensions=".stl,.zip"

 

 

MaxFileSize="80000000"

 

 

runat="server" InitialFileInputsCount="5">

 

 

</telerik:RadUpload>

 

 

 

 

 

</object>

 

 

<div class="uploaded-files" >

 

 

</div>

 

 

 

 

 

</div>

 

 

 

</div>

 

 

</asp:Panel>

 

 

 

 

 

 

</telerik:RadAjaxPanel>



this code is giving me a javascript error, So please help me ho i can save the file in a folder.If i am using foreach loop than how i will use silverlight control for same.

 

foreach (Telerik.Web.UI.UploadedFile file in radUpload.UploadedFiles)

 

 

 

{ 

 

int position = file.FileName.LastIndexOf("\\");

 

 

 

 

 string fileName = (position == 0 ? file.FileName.Substring(position) : file.FileName.Substring(position + 1));

 

 

 

 

 

 string filePath = Server.MapPath(m_path + "/" + orderIdPath + fileName);

 

 

 file.SaveAs(filePath);

 

 


}


Please Help me out this problem.

thanks,

Genady Sergeev
Telerik team
 answered on 28 May 2010
1 answer
107 views
i am using a custom appointment form. all works well when i insert a new event. however, if i try to modify an event, i am not able to obtain the time from the control. it puts it at 12:00:00.

 

<telerik:radscheduler id="RadScheduler1" runat="server" Skin="WebBlue" Height="460px"

 

 

OnAppointmentDelete="RadScheduler1_AppointmentDelete" StartEditingInAdvancedForm="false" OnAppointmentCreated="RadScheduler1_AppointmentCreated"

 

 

OnClientAppointmentInserting="AppointmentInserting" OnClientAppointmentEditing="AppointmentEditing">

 

 

<AppointmentTemplate>

 

 

<asp:Label runat="server" ID="lblEventName" />

 

 

</AppointmentTemplate>

 

 

 

</telerik:radscheduler>

 


It is this line of code that causes the problem:

startDateString =

"#" & Format(StartDate.SelectedDate, "MM/dd/yyyy")

 

startTimeString = StartTime.SelectedDate.Value.ToShortTimeString &

"#"

 

CalendarEventBE.EventStartTime =

CDate(startDateString & " " & startTimeString)

As an example, I inserted an appointment then tried to change the date from 6/1 4:45pm to 6:15pm to: 6/3 5:00pm to 7:00pm. I changed the information on my screen and clicked 'Update'. Here are the values of the above:

startDateString = "#06/03/2010"
startTimeString = "12:00 AM#"  HERE IS THE PROBLEM. Why is this not returning my time??? It works fine on the insert.

Thanks and let me know if you need additional information.

Susan

 

Peter
Telerik team
 answered on 28 May 2010
7 answers
112 views
I would like to create a page in the fashion of your demo shown in http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=binaryimage

I have made a slight change, and do not know how to adjust the VB code to compensate for it.

I have changed the code below from : 
 <telerik:GridBinaryImageColumn DataField="Data" HeaderText="Image" UniqueName="Upload" ImageAlign="NotSet"
                        ImageHeight="80px" ImageWidth="80px" ResizeMode="Fit" DataAlternateTextField="Description"
                        DataAlternateTextFormatString="Image of {0}">
                        <HeaderStyle Width="10%" />
                    </telerik:GridBinaryImageColumn>


to the following code:

<

 

telerik:GridTemplateColumn >

 

 

<ItemTemplate>

 

 

<telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" DataValue = '<%# Eval("Document") %>' ResizeMode = "Fit" Height="150px" Width="150px" />

 

 

<telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="radBinaryImage1" Position="Center">

 

 

<telerik:RadBinaryImage ID="RadBinaryImage2" runat="server" DataValue = '<%# Eval("Document") %>' ResizeMode = "Fit" Height="800px" Width="600px" />

 

 

 

</telerik:RadToolTip>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 



The problem I am having is with the VB code below that is in bold and Italics. How do I change this code to work with the GridTemplateColumn, instead of the Gridbinaryimagecolumn?



Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)
            If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then
                Dim editItem As GridEditableItem = DirectCast(e.Item, GridEditableItem)


                Dim upload As RadUpload = DirectCast(editItem.EditManager.GetColumnEditor("Upload"), GridBinaryImageColumnEditor).RadUploadControl


                RadAjaxPanel1.ResponseScripts.Add(String.Format("window['UploadId'] = '{0}';", upload.ClientID))
            End If
        End Sub

        Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs)
            If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then
                Dim editItem As GridEditableItem = DirectCast(e.Item, GridEditableItem)


                Dim upload As RadUpload = DirectCast(editItem.EditManager.GetColumnEditor("Upload"), GridBinaryImageColumnEditor).RadUploadControl


                Dim validator As CustomValidator = New CustomValidator()
                validator.ErrorMessage = "Please select file to be uploaded"
                validator.ClientValidationFunction = "validateRadUpload"
                validator.Display = ValidatorDisplay.Dynamic
                DirectCast(upload.Parent, TableCell).Controls.Add(validator)
            End If
        End Sub

     

Genady Sergeev
Telerik team
 answered on 28 May 2010
6 answers
195 views
Hi folks,

I need some CSS help within the grid's CommandItemTemplate. I'm trying to center some title text in the command bar while right-aligning a couple of linkbuttons.

Up til now, I've been using margin spacing to achieve this. It's a trial and error thing, adding the number of pixels to make the heading text ("Contact Events") appear centered.
 
The attached graphic shows roughly what I'm trying to achieve. The following code is what I have now. It's getting difficult to maintain as I add more screens to the app:

<CommandItemTemplate> 
    <span style="margin-right: 280px; font-size: 21px; vertical-align: bottom; font-weight: bold;">  
        Contact Events</span> 
    <asp:LinkButton CssClass="rgCommandButton" ID="btnResetCommand" runat="server" Text="Reset Filters" 
        ToolTip="Removes all filters" /> 
    <asp:LinkButton CssClass="rgCommandButton" ID="btnAddCommand" runat="server" Text="New Event" 
        ToolTip="Adds an Event" /> 
</CommandItemTemplate> 

Is there a way to automatically center "Contact Events" while keeping the two link buttons right-aligned?

Thanks for any guidance!

Ken
Microsoft MVP [ASP.NET]
kencox
Top achievements
Rank 1
 answered on 28 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?