Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
195 views
Hello,

I've taken a copy of the code from the My Portal demo and when running it am having a problem I can't solve.

Running the online demo works with no problems. When running the local project I can add docks to either zone. The problem arises when either moving them around, minimising or clicking in the dock title - all the docks disappear.

From what I've been able to work out every second time RadDockLayout1_saveDockLayout fires the call to GetRegisteredDockState  returns an empty collection. This empty collection is then saved to session

Is there something obvious that I've missed?

Thanks,
Brad.
Sophy
Telerik team
 answered on 14 May 2008
8 answers
248 views
I have a need to use ASP.NET AJAX > RADTreeview...
Is there an example/explaination for setting up a Treeview with...
Live >Sorting - Filtering - Grouping
Any suggestions/guidance would be appreciated
Regards
Tony M
Tony Moriarty
Top achievements
Rank 1
 answered on 14 May 2008
4 answers
202 views
Hi, All:

I am using RadGrid and trying to implement "Update All" feature.

I explicitly pass in null, but save as '01/01/1900/ to database table.

protected void rgJobInv_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
if (e.CommandName == "UpdateAll")
{
foreach (Telerik.Web.UI.GridEditableItem editedItem in rgJobInv.EditItems)
{
Hashtable newValues = new Hashtable();
e.Item.OwnerTableView.RetrieveNullAsDBNull =
true;
e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);

sdsUpdateAll.UpdateCommand =

string.Format("update tblJobInventory set District='{0}', ......" +
", Shipped = '{15}' " +
", Billed = '{16}' ....."

, newValues[

"District"].....
,
null /*newValues["Shipped"]*/
, null /* newValues["Billed"]*/

In database table, "Shipped" and "Billed" is smalldatetime type.
I pass in null, but both "Shipped" and Billed are saved as '01/01/1900'.
even when I pass newValues["Shipped"], which is null, but still it was saved
as '01/01/1900'.

Please give some ideas.
thanks.

Stanley Huang


Rosen
Telerik team
 answered on 14 May 2008
4 answers
211 views
Hello
I have a grid set up like so:

<radG:RadGrid ID="RadGrid1"  runat="server"  Skin="UCITGrid" AllowPaging="True"  AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" EnableAJAX="True" GridLines="None" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" OnItemCommand="RadGrid1_OnItemCommand" PageSize="20">

<MasterTableView DataSourceID="SqlDataSource1" CommandItemDisplay="Top" CommandItemSettings-AddNewRecordImageUrl="../../RadControls/Grid/Skins/UCITGrid/AddRecord.png" EditMode="InPlace">

<CommandItemTemplate>
<asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible="true"><img style="border:0px" alt="" src="../../RadControls/Grid/Skins/UCITGrid/AddRecord.png" /> Add a New Program</asp:LinkButton>
</CommandItemTemplate>

<SortExpressions>
<radG:GridSortExpression FieldName="fldArchive" SortOrder="Ascending" />
</SortExpressions>

<Columns>

<radG:GridBoundColumn DataField="fldID" UniqueName="IDColumn" Display="False">
</radG:GridBoundColumn>

<radG:GridBoundColumn DataField="fldName" HeaderText="Name" UniqueName="NameColumn">
<ItemStyle width="70%"/>
</radG:GridBoundColumn>

<radG:GridCheckBoxColumn DataField="fldArchive" HeaderText="Archive" UniqueName="ArchiveColumn">
<ItemStyle width="15%"/>
</radG:GridCheckBoxColumn>

<radG:GridEditCommandColumn ButtonType="ImageButton" UpdateImageUrl="../../RadControls/Grid/Skins/UCITGrid/Update3.png"  EditImageUrl="../../RadControls/Grid/Skins/UCITGrid/Edit2.png"  CancelImageUrl="../../RadControls/Grid/Skins/UCITGrid/Cancel3.png" InsertImageUrl="../../RadControls/Grid/Skins/UCITGrid/Update3.png" InsertText="Save" HeaderText="Options" UniqueName="EditCommandColumn">
<ItemStyle width="15%"/>
</radG:GridEditCommandColumn>
</Columns>

</MasterTableView>

</
radG:RadGrid>

I have this in my code behind:

Protected Sub RadGrid1_OnItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs)
    
If e.CommandName = "Update" Then
        
Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
        
Dim name As String = dataItem("NameColumn").Text
        Response.Write(name)
    
End If
End Sub

For some reason, the name string contains an empty string, when in reality, there is a value assigned to it. Is there something here that I'm missing?

Please let me know. Thank you!

Mikhail
Top achievements
Rank 1
 answered on 14 May 2008
2 answers
100 views
Hi,

I am loading multiple controls using a RadTabstrip and RadMultipage combination. For the RadMultipage I have set RenderSelectedPageOnly flag to true, with one usercontrol on each pageview. On one of my controls I have a radpanelbar which hosts several RadPanelItem which intern host radcharts. After selecting a few different tabs (hence loading different controls) I get the following error in firefox (same for IE) Warning: Unresponsive script. When I debug the error I find myself within the javascript functions associated with RadPanelEventArgs:
_windowLoadHandler
->__callRadShow
->__repaintPanelBarItems
->get_expandedItems
->__findItemByHierarchicalIndex

I am quite surprised that I am within these functions as the panelbar is not being shown but I guess the event is still being fired!

When i take the radpanelbar out everything behaves as expected, but obviously I would like to keep it in; is there something I should be doing. Sorry I do not have an example to hand so hopefully I have provided enough information for you to go on!

Thanks
Bleddyn

Pivetal
Top achievements
Rank 1
 answered on 14 May 2008
14 answers
269 views
Hello there,
I am gonna use a framesets which contains multiple aspx pages. And from one of them I popup a Radwindow. By default that windwo is restricted in the page which creates it.
Is there some way that I can make the Radwindwo move across all pages in frameset?

Cheers,
Elton
Georgi Tunev
Telerik team
 answered on 14 May 2008
1 answer
235 views
Hello,
I have a question about the EnableHistory property on RadAjaxManager.
I've set this property to true, but when I do a javascript:history.back on page, ajax controls on the parent page loses its state. (selecteditems etc)

From the documentation I've read that I must enable Ajax History points. Is it true that this is only available on 3.5 extensions scriptmanagers ? When are these extensions scheduled for a final release ?

Thanks,
Nicolas
Steve
Telerik team
 answered on 14 May 2008
1 answer
148 views
Hi,

Besides the data in the RadGrid, Is it possible to export some additional information also in the excel sheet? If yes, then how?
Iana Tsolova
Telerik team
 answered on 14 May 2008
1 answer
119 views

A couple of bugs noticed on the Vista Skinned Window.

  • The buttons for the Vista Skinned Window aren't vertically centered in the window bar.
  • The maximize button doesn't react on mouse over like the other buttons do.
Svetlina Anati
Telerik team
 answered on 14 May 2008
1 answer
175 views
Hello,

  I upgraded from the trial version and the upload control no longer works embedded in a tooltip. The upload will however work outside of the tooltip so i assume the upgrade went as planned. In the code below please note the button inside the tooltip. The onclick event in the .cs is listed as well. Basically what happens is that once the upload button is clicked and i attempt to access the uploaded file i get an error that states null reference. After setting a break point i noticed that the uplaodedfile collection's count property always stays at 0

<telerik:RadToolTip ID="RadToolTip1" Skin="Default" Animation="Resize" runat="server" ManualClose="true"

Sticky="true">

<asp:UpdatePanel runat="server" ID="UpdatePanel1">

<ContentTemplate>

<table class="style4">

<tr>

<td>

</td>

<telerik:RadUpload ID="RadUpload1" EnableEmbeddedSkins = "false" runat="server" AllowedFileExtensions=".jpg,.bmp,.gif,.jpeg,.png"

ControlObjectsVisibility="None" InitialFileInputsCount="1" MaxFileInputsCount="1"

MaxFileSize="1000000" Skin="Desert" />

</tr>

<tr>

<td align="right">

<asp:Button ID="btnBadImageUpload" runat="server" Font-Names="Arial" Font-Size="X-Small"

OnClick="btnBadImageUpload_Click" Text="Upload" />

</td>

</tr>

</table>

</ContentTemplate>

</asp:UpdatePanel>

</telerik:RadToolTip>

-----------------------------------------------------------------.cs file---------------------------------------------

private void UploadNotOkImage()

{

try

{

Telerik.Web.UI.

UploadedFile imageFile = null;

int qaid = (int)ViewState["currentQA"];

if (RadUpload1.UploadedFiles.Count > 0)

{

imageFile = RadUpload1.UploadedFiles[0];

}

Sophy
Telerik team
 answered on 14 May 2008
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?