Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
472 views
Hi,

 How to set sort icon programmatically in radgrid?
Dimo
Telerik team
 answered on 28 Jul 2008
1 answer
171 views
I am trying to use a custom skin in DNN and I am getting the following error:

DotNetNuke.Services.Exceptions.PageLoadException: Telerik.Web.UI.RadPanelBar with ID='RadPanel1' was unable to find embedded skin with name 'ART'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.

I have tried to add EnableEmbeddedSkins to the skin.xml file and set the value to false but it has no effect. 

The definition of the RADPanelBar after parsing is:

<dnn:RADPANELBAR runat="server" id="dnnRADPANELBAR" SkinsPath="~/DesktopModules/Telerik.SkinObjects/Skins" Skin="ART" Height="100%" Width="225px" ItemWidth="225px" EnableEmbeddedSkins="false" />

There is a directory under the skins path called ART which is a duplicate of the Office2007 theme for now.  I have updated the CSS to read .RadPanelBar_ART for all of the properties. 

I really need to customize the colors for this control.  Any help would be appreciated.
Paul
Telerik team
 answered on 28 Jul 2008
3 answers
109 views
Ive created a Ajax Panel. And there is no error everything works fine. But when i'm using my URL-Rewriter the Ajax Panel stops working.

How can i fix this problem?
auderis
Top achievements
Rank 1
 answered on 28 Jul 2008
1 answer
155 views
I'm using several radwindows and a radwindowmanager.  They open fine, I use them for looking up data and fill out forms.  The problem I'm having is that when I open one, the data from the last time it was opened is still present, I've even tried the destroy on close, and recreating the necessary attributes on open, but I still see the data from the last open.

Any help?

Thanks Jim
Georgi Tunev
Telerik team
 answered on 28 Jul 2008
16 answers
356 views
Hi,

We are using RadPanelBar as a type of side menu on our site but have ran in to problem when using the latest version from RadControsl for ASPNET AJAX Q1 2008.

The page that the RadPanelBar is situated is wihin an IFrame of a parent page.

When moving the mouse over the menu a jscript error occurs "top.document.documentElement is null or not an object".

Now, this problem led me to a microsoft support solution http://support.microsoft.com/kb/936993  which appeared to rectify the problem but subsequently many Telerik javascript exceptions are being thrown on page refreshes and on RadPanelBar client events. Examples of the exceptions are: -

  1. "Class already registered"
  2.  "Telerik.Web.UI.RadWebControl" does not derive from sys.component" 
  3. "Object of type Telerik.Web.UI.RadPanelBar cannot be converted to type Telerik.Web.UI.RadPanelBar"
Help with this would be really appreciated.

Thanks in advance.

David
Paul
Telerik team
 answered on 28 Jul 2008
2 answers
64 views
I cannot figure out why when my rad window pops up on New Click, i add attachments, then click Done, Done is supposed to fire my Ajax request on the parent page (MyFiles), but it doesnt work.  Any ideas?  I dont see an option to attach my source project, mabe after I post this i can go back in and post it.  You may have some permission isues with the SQL .mdf file, and you can only have 9 files in the grid at once or it will error.
Vlad
Telerik team
 answered on 28 Jul 2008
1 answer
143 views
I have ajax radgrid which updates data at an interval of 15seconds.The memory usage increases whenever the values of the grid is updated and around 5 mins later, the memory usage of internet explorer 7/ firefox reaches too high and stops the browser responding.
Have anyone faced this problem earlier?Would be of great help if anyone could help.
Vlad
Telerik team
 answered on 28 Jul 2008
1 answer
89 views

HI,

Last few days I am posting the same prob again and again, but I am nt getting proper response .

Again now I am posting the prob once…

1:- I want to retrieve the uploaded file name and no of files from the RadUpload Control, which is under RadGrid.

My code looks like as follow…

<telerik:RadAjaxManager ID="RadAjaxManager2" DefaultLoadingPanelID="RadAjaxLoadingPanel1"

        runat="server">

        <AjaxSettings>

            <telerik:AjaxSetting AjaxControlID="RadGrid1" >

                <UpdatedControls>

                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />

                </UpdatedControls>

            </telerik:AjaxSetting>

        </AjaxSettings>

    </telerik:RadAjaxManager>

    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

 

<script type="text/javascript">

//On insert and update buttons click temporarily disables ajax to perform upload actions

                    function conditionalPostback(e, sender)

                    {

                        var theRegexp = new RegExp("\.UpdateButton$|\.PerformInsertButton$", "ig");

                         if (sender.EventTarget.match(theRegexp))

                         {

                         var upload = $find(window['UploadId']);

                                    

                         //AJAX is disabled only if file is selected for upload

                         if(upload.getFileInputs()[0].value != "")

                         {

                         sender.EnableAjax = false;

                         }

                         }

                    }

</script>

    </telerik:RadScriptBlock>

     <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" clientevents-onrequeststart="conditionalPostback"

        Width="75px" Transparency="5">

        <img style="margin-top: 150px;" alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading4.gif") %>' />

    </telerik:RadAjaxLoadingPanel>

 

<telerik:RadGrid PageSize="3" AllowPaging="true" ID="RadGrid1" runat="server" GridLines="Horizontal"

        AllowFilteringByColumn="true" Skin="WebBlue" AllowAutomaticDeletes="True" OnNeedDataSource="RadGrid1_NeedDataSource"

        OnDeleteCommand="RadGrid1_DeleteCommand" OnInsertCommand="RadGrid1_InsertCommand"

        OnUpdateCommand="RadGrid1_UpdateCommand" OnItemDataBound="RadGrid1_ItemDataBound"

        OnItemInserted="RadGrid1_ItemInserted">

        <PagerStyle Mode="Slider" />

        <MasterTableView AutoGenerateColumns="false" DataKeyNames="TerritoryID" EditMode="EditForms"

            CommandItemDisplay="TopAndBottom">

            <Columns>

                <telerik:GridEditCommandColumn>

                </telerik:GridEditCommandColumn>

                <telerik:GridBoundColumn ReadOnly="true" HeaderText="TerritoryID" DataField="TerritoryID"

                    UniqueName="TerritoryID" />

                <telerik:GridBoundColumn ReadOnly="false" HeaderText="TerritoryDescription" DataField="TerritoryDescription"

                    UniqueName="TerritoryDescription" />

                <telerik:GridBoundColumn ReadOnly="false" HeaderText="RegionID" DataField="RegionID"

                    UniqueName="RegionID" />

                <telerik:GridButtonColumn CommandName="Delete" Text="Delete">

                </telerik:GridButtonColumn>

            </Columns>

            <EditFormSettings EditFormType="Template">

                <EditColumn UniqueName="EditCommandColumn1">

                </EditColumn>

                <FormTemplate>

                    <table id="Table2" cellspacing="2" cellpadding="1" width="250" border="1" rules="none"

                        style="border-collapse: collapse">

                        <tr>

                            <td>

                                <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0">

                                   

                                    <tr>

                                        <td>

                                            TerritoryID:

                                        </td>

                                        <td>

                                            <asp:TextBox ID="txtTerritoryID" MaxLength="5" Visible='<% # (Container as GridItem).OwnerTableView.IsItemInserted %>'

                                                runat="server">

                                            </asp:TextBox>

                                        </td>

                                    </tr>

                                    <tr>

                                        <td>

                                            TerritoryDescription:

                                        </td>

                                        <td>

                                            <asp:TextBox ID="txtTerritoryDescription" runat="server" Text='<%# Eval( "TerritoryDescription" ) %>'>

                                            </asp:TextBox>

                                        </td>

                                    </tr>

                                    <tr>

<td>

RegionID:                                                                                    </td>

<td>


<telerik:RadUpload ID="RadUpload1" runat="server" InitialFileInputsCount="1" MaxFileInputsCount="1"                                            ControlObjectsVisibility="None" AllowedFileExtensions=".aspx" />

</td>

</tr>

</table>

</td>

 </tr>

 <tr>

<td colspan="2">

<b>Territory Info:</b>

</td>

</tr>

<tr>

<td align="right" colspan="2">

 <asp:Button ID="btnUpdate" Text='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "Insert" : "Update" %>'

                                    runat="server" CommandName='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "PerformInsert" : "Update" %>'>

                                </asp:Button>&nbsp;

                                <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"

                                    CommandName="Cancel"></asp:Button>

                            </td>

                        </tr>

                    </table>

                </FormTemplate>

            </EditFormSettings>

        </MasterTableView>

    </telerik:RadGrid>

 

 

C#:-

protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e)

{

        GridEditFormInsertItem item = (GridEditFormInsertItem)e.Item;

        RadAjaxManager2.Alert((item.FindControl("RadUpload1") as RadUpload).UploadedFiles.Count.ToString());

)

OR

protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e)

    {

        GridEditFormInsertItem item = (GridEditFormInsertItem)e.Item;

        int cnt=(item.FindControl("RadUpload1") as RadUpload).UploadedFiles.Count;

        Response.Write((item.FindControl("RadUpload1") as RadUpload).UploadedFiles[0].FileName);

 

    }

 

Above either of the following ways I am  nt able to retreive any fiels, which I have uploaded through RadUpload control…

 

Please provide me solution int his regards…

Regards,
Ranganath.S

Vlad
Telerik team
 answered on 28 Jul 2008
1 answer
117 views
Hi there,
I have setup an aspx page that contains 4 user controls each wrapped in an asp.net update panel.

Is it possible to use the RadAjaxLoadingPanel across all 4 of these user controls?

Any help would be great.

Thanks
Shane
Vlad
Telerik team
 answered on 28 Jul 2008
1 answer
159 views
I have 2 listbox inside the grid as shown below

<

td width="90%">

<table width="95%" border="1">

<tr>

<td>

<span style="font-weight: bold; font-size: 10pt"></span>

<%

--<asp:Label ID="lblAccountNumber" runat="server" Text='<%# Bind("AccountNumber") %>'

Font-Bold="true" Font-Size="10"></asp:Label>--

%>

<br />

<asp:ListBox ID="lbAllAccountNumbers" runat="server" Width="300" Height="200" SelectionMode="Multiple">

</asp:ListBox>&nbsp;&nbsp;&nbsp;

<ajaxToolkit:ListSearchExtender ID="SearchAllAccount" TargetControlID="lbAllAccountNumbers"

runat="server">

</ajaxToolkit:ListSearchExtender>

<asp:ImageButton ID="btnSelect" ImageUrl="~/images/right.jpg" ImageAlign="Middle" runat="server" OnClick="btnSelect_Click" />

<asp:ImageButton ID="btnUnselect" ImageUrl="~/images/left.jpg" ImageAlign="Middle" runat="server" OnClick="btnUnselect_Click" />

<ajaxToolkit:ListSearchExtender ID="SearchAvailableAccounts" TargetControlID="lbAvailableAccountNumbers"

runat="server">

</ajaxToolkit:ListSearchExtender>

<asp:ListBox ID="lbAvailableAccountNumbers" runat="server" Width="300" Height="200"

SelectionMode="Multiple"></asp:ListBox>

</td>

</tr>

</table>

</td>
The above code is in EditFormSettings tab.
When edit button is clicked iam loading two listboxes with some data.
In between those two listboxes , i have two buttons which will select or unselect from the above list boxes. When an item or items is selected in the listbox and clicked on Button, i have to move those items selected in the listbox to the other listbox.

I am writing this code in the button click event.

But in the button click , iam not able to gt the listbox.
Is there a way to get a reference to the listbox in the grid when the grid is in edit mode.

Thanks in advance.

Vlad
Telerik team
 answered on 28 Jul 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?