Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
I have a FileExplorer that I've tagged some extra functionality on so that the preview window loads larger and is resizable. However, when I close this window, it is not destroyed and continues to lurk in the background. I want to destroy it so that if I go to open another window, that window will be the active one and pick up where the previous one left off.

Here is the code I am using for the extra properties, found in another thread:

function OnExplorerFileOpen(oExplorer, args)
{
    if (!args.get_item().isDirectory()) {
        setTimeout(function ()
        {
            var oWindowManager = oExplorer.get_windowManager();
            var previewWindow = oWindowManager.getActiveWindow();
            oWindowManager.add_show(addShowHandler);
            previewWindow.setSize(800, 500);
        }, 100);   // Some timeout is required in order to allow the window to become active
 
        // destroy code will go here I hope?
    }
}

This is wired to the OnClientFileOpen event on my FileExplorer.

Thanks,
Chris
Dobromir
Telerik team
 answered on 20 Mar 2012
2 answers
229 views
I have implemented the an AJAX enabled Web Service for my combo box exactly as explained here:
http://www.telerik.com/help/aspnet-ajax/combobox-load-on-demand-wcf-service.html 
http://demos.telerik.com/aspnet-ajax/combobox/examples/loadondemand/wcf/defaultvb.aspx 

It works perfectly on my development server running IIS7.5. When I run it on my remote test server also IIS7.5 - I get a 401 error. The rest of my ASP.NET4 web app works fine. Using Fiddler I find I get a 401 Unauthorized error - the inner exception being  "Authentication Failed" System.InvalidOperationException. The IIS log shows 401 0 0 after the POST to my web service, i.e. a sub error code of 0. I think this relates to "Access is denied due to invalid credentials"?

This post sums up my problem:
http://forums.asp.net/t/1431102.aspx/1 
But as you can see no answers.

I've spent a long time looking into this with no luck and I'm really running out of ideas. It must be down to some IIS configuration or permission or something similar. Has anyone had this problem before of know how to resolve it? Thanks
Al
Top achievements
Rank 1
 answered on 20 Mar 2012
1 answer
220 views
Hello,

Can you please provide a VB.Net method that can reset (or "unrate") the value of a RadRating contol? What I need to achieve is the following:
When user rates I check the database to see if he didn't previously rate in the past by verifying the user ID. This works fine, I have all necessary code in the Rate event. However, I also need to undo his rating in case he attempts to rate twice.

Thank you,
M.R.
Slav
Telerik team
 answered on 20 Mar 2012
8 answers
108 views
Following the latest release, the RadWindow designer seems broken. If you put a new RadWindow on a page, you get one chance to edit the contents template, the rest of the changes are visible in designmode, but not in sourcemode (ie never saved to the page). Very easy to reproduce, just drop a new RadWindow onto a page, go to edit Contents template, type "test", then do a return, type "test2" and this is what you will get when you save.

    <telerik:RadWindow ID="RadWindow1" runat="server">
        <ContentTemplate>
            test
        </ContentTemplate>
    </telerik:RadWindow>

We are using latest release of Visual Studio 2010 SP1

(For obvious reasons, it's hard to know if this is infact a bug in Visual Studio or the Telerik designer)
improwise
Top achievements
Rank 1
Iron
Iron
 answered on 20 Mar 2012
1 answer
165 views

Hi, 

I have a problem related with RadNumericTextBox, RadDateInput and RadMaskedTextBox. I use a RadInputManager control, to validate some textboxes (they need to be required), and it works ok on asp:TextBox controls, but on telerik controls it doesn't seem to work. I want to have the same behavior with red textbox border and the yellow triangle with exclamation mark inside if the fields are required. Is there something i have to set on the controls?

Thanks!

Princy
Top achievements
Rank 2
 answered on 20 Mar 2012
3 answers
191 views
Hi,

I am creating Combobox dynamically and i want to use it's SelectedIndexChanged of it so please help me to do this.
                RadComboBox rdcmb = new RadComboBox();
                rdcmb.ID = "rcbContact" + i;
                rdcmb.DataSource = dt;
                rdcmb.DataTextField = "ContactType";
                rdcmb.DataValueField = "ContactTypeID";
                rdcmb.DataBind();

Now i want to use here OnselectIndexChange of this control like :

rdcmb.OnselectIndexChanged= funtion();

Thanx
Manish
                
Shinu
Top achievements
Rank 2
 answered on 20 Mar 2012
2 answers
115 views
Hi all,
I have a RadGrid with GridHTMLEditorColumn inside. RadGrid display and binding normally, but when I'm in EditMode or InsertMode, GridHTMLEditorColumn doesn't display binded value, It's empty. Anh I also can't input any value in this column in EditMode or InsertMode. Please help me. I'm in hurry.
thanks you.
_Tan_ 
Tan
Top achievements
Rank 1
 answered on 20 Mar 2012
1 answer
136 views
Hi
Here is one scenario which I will like you to highlight me further with some code.

I wish to have a radtreeview that needs to be populated from code behind through generic list.I saw the demo on your website but it doesn't tell me of generic list or it will be appreciable if you could explain with some other code.
Plamen
Telerik team
 answered on 20 Mar 2012
1 answer
154 views

I have a radgrid that goes 3 deep, when i click on something on the 3rd tier down or at that location and then do something, i want the grid to open back up to that location after rebind how can I do this.

<asp:Panel ID="pnlGrids" runat="server">
                                <asp:LinkButton id="lnkAddCat" runat="server">Add Category</asp:LinkButton>
                                <telerik:RadGrid ID="myRadGrid" runat="server" Width="100%" BorderWidth="1px" CellPadding="4" Skin="Web20">
                                <MasterTableView AutoGenerateColumns="false" DataKeyNames="intCategoryId" HierarchyDefaultExpanded="false" Font-Size="10" Font-Names="Veranda,arial,sans-serif" 
                                    HeaderStyle-HorizontalAlign="Center" Name="MasterGrid" ExpandCollapseColumn-ButtonType="ImageButton" HierarchyLoadMode="ServerBind"
                                    ExpandCollapseColumn-CollapseImageUrl="~/Images/30.png" ExpandCollapseColumn-ExpandImageUrl="~/Images/29.png">
                                    <ItemStyle HorizontalAlign="Center" /><AlternatingItemStyle BackColor="#B0C4DE"  HorizontalAlign="Center" /><HeaderStyle ForeColor="White" Font-Bold="true"  />
                                    <DetailTables>
                                        <telerik:GridTableView Name="myManufacGrid" runat="server" DataKeyNames="intManufacturerId" TableLayout="Fixed" BorderWidth="1px" CellPadding="6" Font-Size="10"
                                            AutoGenerateColumns="False" HeaderStyle-HorizontalAlign="Center" BorderColor="#404040" Font-Names="Veranda,arial,sans-serif" GridLines="Both" ExpandCollapseColumn-ButtonType="ImageButton"
                                            ExpandCollapseColumn-CollapseImageUrl="~/Images/30.png" ExpandCollapseColumn-ExpandImageUrl="~/Images/29.png">
                                            <ParentTableRelation>
                                                <telerik:GridRelationFields DetailKeyField="intCategoryId" MasterKeyField="intCategoryId" />
                                            </ParentTableRelation>
                                            <HeaderStyle Font-Bold="true" HorizontalAlign="Center" CssClass="MostInnerHeaderStyle" />
                                            <ItemStyle CssClass="MostInnerItemStyle" HorizontalAlign="Center" />
                                            <AlternatingItemStyle CssClass="MostInnerAlernatingItemStyle" HorizontalAlign="Center" />
                                            <DetailTables>
                                            <telerik:GridTableView DataKeyNames="intMakeID" Name="myMakeGrid" Width="100%" TableLayout="Fixed" BorderWidth="1px" CellPadding="6" Font-Size="10"
                                                AutoGenerateColumns="False" HeaderStyle-HorizontalAlign="Center" BorderColor="#404040" Font-Names="Veranda,arial,sans-serif" GridLines="Both" ExpandCollapseColumn-ButtonType="ImageButton"
                                                ExpandCollapseColumn-CollapseImageUrl="~/Images/30.png" ExpandCollapseColumn-ExpandImageUrl="~/Images/29.png">
                                                    <ParentTableRelation>
                                                    <telerik:GridRelationFields DetailKeyField="intManufacturerId" MasterKeyField="intManufacturerId" />
                                                    </ParentTableRelation>
                                                    <HeaderStyle Font-Bold="true" HorizontalAlign="Center" CssClass="InnerSubHeaderStyle" />
                                                    <ItemStyle CssClass="InnerSubItemStyle" HorizontalAlign="Center"  />
                                                    <AlternatingItemStyle CssClass="InnerSubAlernatingItemStyle" HorizontalAlign="Center" />
                                                    <Columns>
                                                         <telerik:GridBoundColumn HeaderText="MAKE|MODEL" DataField="strmake" />
                                                         <telerik:GridTemplateColumn HeaderText="Edit">
                                                            <ItemTemplate>
                                                                    <asp:ImageButton runat="server" ID="imgMakeEdit"  CommandArgument='<%# bind("intMakeID") %>' CommandName="MakeEdit" ImageUrl="~/Images/edit_icon.png" />
                                                            </ItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                        <telerik:GridTemplateColumn HeaderText="Archive">
                                                            <ItemTemplate>
                                                                    <asp:ImageButton runat="server" ID="imgMakeArchive"  CommandArgument='<%# bind("intMakeID") %>' CommandName="MakeArchive" ImageUrl="~/Images/edit_icon.png" OnClientClick="return confirm('Are you sure you want to archive Category, This will Archive everything Underneath as well.');" />
                                                            </ItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                    </Columns>
                                            </telerik:GridTableView>
                                        </DetailTables>
                                            <Columns>
                                                <telerik:GridBoundColumn HeaderText="MANUFACTURERS" DataField="strManufacturer"></telerik:GridBoundColumn>
                                                <telerik:GridTemplateColumn HeaderText="ADD MAKE\MODEL">
                                                    <ItemTemplate>
                                                            <asp:ImageButton runat="server" ID="imgAddPosition"  CommandArgument='<%# bind("intManufacturerId") %>' CommandName="AddMake" ImageUrl="~/Images/29.png" />
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn HeaderText="Edit">
                                                    <ItemTemplate>
                                                            <asp:ImageButton runat="server" ID="imgManEdit"  CommandArgument='<%# bind("intManufacturerId") %>' CommandName="ManEdit" ImageUrl="~/Images/edit_icon.png" />
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn HeaderText="Archive">
                                                    <ItemTemplate>
                                                            <asp:ImageButton runat="server" ID="imgManArchive"  CommandArgument='<%# bind("intManufacturerId") %>' CommandName="ManArchive" ImageUrl="~/Images/edit_icon.png" OnClientClick="return confirm('Are you sure you want to archive Category, This will Archive everything Underneath as well.');" />
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                            </Columns>
                                        </telerik:GridTableView>
                                    </DetailTables>
                                    <Columns>
                                    <telerik:GridBoundColumn HeaderText="Category" DataField="strCategory" />
                                    <telerik:GridTemplateColumn HeaderText="Add Manufacturer">
                                        <ItemTemplate>
                                                <asp:ImageButton runat="server" ID="imgAdd"  CommandArgument='<%# bind("intCategoryId") %>' CommandName="AddMan" ImageUrl="~/Images/29.png" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Edit">
                                        <ItemTemplate>
                                                <asp:ImageButton runat="server" ID="imgCatEdit"  CommandArgument='<%# bind("intCategoryId") %>' CommandName="CatEdit" ImageUrl="~/Images/edit_icon.png" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Archive">
                                        <ItemTemplate>
                                                <asp:ImageButton runat="server" ID="imgCatArchive"  CommandArgument='<%# bind("intCategoryId") %>' CommandName="CatArchive" ImageUrl="~/Images/edit_icon.png" OnClientClick="return confirm('Are you sure you want to archive Category, This will Archive everything Underneath as well.');" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                                </MasterTableView>
                                </telerik:RadGrid>
                            </asp:Panel>
                        </td>
                    </tr>
                </table>


If (e.CommandName = "CatArchive") Then
           Dim CatID As Integer = Convert.ToInt32(e.CommandArgument)
           sql = "Update tblCategory set bitArchive = 1 where intCategoryId = " & CatID
           insertUpdateDelete(sql)
           myRadGrid.Rebind()
       End If
Shinu
Top achievements
Rank 2
 answered on 20 Mar 2012
3 answers
158 views
Hi there,

I'm using radmenu in my project its is binding with dataset.
I want to add search text box next to Radmenu, if the name of the item entered in the text box is present in the menu, then menu should open and the item should be highlight.

Regards,

Leo
Princy
Top achievements
Rank 2
 answered on 20 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?