Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
204 views
Hello
I have a grid which I can insert value in it.
I have 2 other grids which have values from the first grid.
My problem is when I insert into the first grid, when I go see the other grids, I can't see the new value.
Note: each Radgrid are in different RadPageView.
For the first Radgrid I have this event:
Private Sub RadGrid_Entreprise_ItemInserted(ByVal source As Object, ByVal e As Telerik.Web.UI.GridInsertedEventArgs) Handles RadGrid_Entreprise.ItemInserted  
        Me.RadGrid_offre.Rebind()  
        Me.RadGrid_Offre_Programme.Rebind()  
End Sub 
But seems like it doesn't change anything
Any idea how to rebind it properly?
Thank you
Myriam

 

Myriam
Top achievements
Rank 1
 answered on 09 Sep 2009
1 answer
152 views
hi dear telerik team, hi dear community!

i'm haveing a serious problem here - let me explain:

i'm creating a multi column menu, horizontal radMenu with normal dropdown flyouts that use dynamically loaded templates. that works fine so far :-)

now i have some menus that have 3 colums, some have 2 and some only 1. in the original settings the rmSlide somehow gets dynamically a width set to about 138px - which of course causes my columns to wrap and align under each other - not what was my intention.....
now i did set the width for rmSlide to 600px !important - which works fine for my 3 column menu - but of course makes problems with the ones that have less, as it streches out of the window to the right - especially for the last item to the far right, that makes the browser window to show scrollbars at the bottom as it is 'magically' now much wider then the shown area.

the template inside the rmSlide itself is a table - that stretches to the correct width of the columns.

what i would need is a possibility to tell rmSlide to have a width of 'auto' or no fixed width at all - but that does not work.....
possibly i could set the width dynamically with javacript, but i have no clue how to get the actual width of my 'dynamic' table....
what can i do?

after all - even the 'hack' i described above works in ff & ie8, in ie6 it looks horrendous as it somehow looses all the inner content of my menu and flys around the pages rather unpredictable....

please help me!!
thank you :-)
Yana
Telerik team
 answered on 09 Sep 2009
2 answers
147 views

Hi,

I have a Button skin file that does skinning for the ASP.NET Button control. The problem I have is it is overriding the button within the RadGrid. For example, the Add new and Refresh buttons are shown in the same style as the other buttons on my website are.  The button skin seems to override the styles applied even though I have the !important setting set. 

This is my skin file to control Buttons:

asp:Button runat="server" CssClass="MainButton"></asp:Button>

 Here is the pertinent css inside my custom css class:

 .RadGrid_[myskinname].rgAdd   
 {  
background-position:0 -1856px !Important;   
}  
.RadGrid_[myskinname].rgRefresh   
{  
background-position:0 -1824px !Important;   
}  
.RadGrid_[myskinname].rgEdit   
{  
background-position:0 -1888px !Important;   
}  
.RadGrid_[myskinname].rgDel   
{  
background-position:0 -1920px !Important;   
}  
.RadGrid_[myskinname] .rgAdd,  
.RadGrid_[myskinname] .rgRefresh,  
.RadGrid_[myskinname] .rgEdit,  
.RadGrid_[myskinname] .rgDel,  
.RadGrid_[myskinname] .rgFilter,  
.RadGrid_[myskinname] .rgPagePrev,  
.RadGrid_[myskinname] .rgPageNext,  
.RadGrid_[myskinname] .rgExpand,  
.RadGrid_[myskinname] .rgCollapse,  
.RadGrid_[myskinname] .rgSortAsc,  
.RadGrid_[myskinname] .rgSortDesc   
.RadGrid_[myskinname] .rgUpdate,  
.RadGrid_[myskinname] .rgCancel   
{  
      width:16px !important;  
      height:16px !important;  
      border:0 !important;  
      padding:0 !important;  
      background-color:transparent !important;  
      background-image:url('Grid/sprite.gif') !important;  
      background-repeat:no-repeat !important;  
      vertical-align:middle !important;  
      cursor:pointer !important;  
}  
 

Is there any way to prevent RadGrid from inheritting the ASP.NET Skin file?

Thanks, Josh

Josh
Top achievements
Rank 1
 answered on 09 Sep 2009
0 answers
101 views
i wrote this code in order to expand node and all its parents node

function

PerformSearch()

 

{

 

 

    var tree = $find("MenuTree");

 

 

    var strToSearch = document.getElementById("txtSearchText").value;

 

 

    var node = tree.findNodeByText(strToSearch);

 

 

    var ParentNode=null;

 

 

 

    if(node)

 

    {

        node.highlight();

        node.scrollIntoView();

        ParentNode = node.get_parent();

 

        while (ParentNode != null)

 

            {

                ParentNode.expand();

                ParentNode = node.get_parent();

            }

 

    }

 

 

}


but its run very slowely,
is there another way to perform this action that wont take so long?

p.s. the tree contains 800 nodes
woody
Top achievements
Rank 1
 asked on 09 Sep 2009
1 answer
121 views
hi
i have a user control is used in popup edit form in grid view to edit each row of grid ,
how can i disable this auto hide popup edit form after the edit row????
Princy
Top achievements
Rank 2
 answered on 09 Sep 2009
6 answers
183 views
Hello,

I have a web app that i'm switching over to use your controls, and i'm trying to load one of the RadComboBox's from a SqlDataReader.  I use them all over the place, and would like not to have to change all of that out due to time constraints.  The dropdown will load the first item, but when i expand it the list willbe empty.  I've also tried loading it using the Items.Add() method with a similar result.  I have set both the DataTextField and DataValueField properties.  If i set EnableLoadOnDemand="true" it loads perfectly, yay.  However it also puts a textbox in the control for users to type, while i'll probably be using this later, on this list i do not need or want it.  I've tried just about everything i can think of and found a couple posts here that said to set AllowCustomText="false" which i've done but it had no effect.   Is there something special i need to do to get the combobox to load from a datareader or items.add() without using EnableLoadOnDemand?  or is there another way to disable the textbox portion of the control?

John
Yana
Telerik team
 answered on 09 Sep 2009
1 answer
72 views
Hi,

i have built a grid, a deatils.ascx (my User Edit form) and i want to call the editmode of the grid with a context menu.

all works fine, i can rightclick a row and the context menu opens. I already implemented that i can edit the record and do the update in the database with the editmode like in the online demo:

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx

Now i want to do the insertCommand. But i want to provoke the Insert Edit Mode with my context menu and not from the CommandItem of the grid. How can i do that?

thx, Mario


PS.:
I just added "CommandItemDisplay="Top"" to the MasterView properties. Is it default that there is displayd Add Record and Refresh functionality in the CommandItem if im not implementing a CommandItem myself?
Tsvetoslav
Telerik team
 answered on 09 Sep 2009
1 answer
113 views
I would like to edit tab labels in place by double clicking them, then postback to server. Is there an example of doing this or could some please give me an example.
Paul
Telerik team
 answered on 09 Sep 2009
6 answers
204 views
I have a User Control that contains a RadMenu which I use to populate all forms in a web application. I have the need now to selectively disable menu items based on selecting a tabstrip item. I've done a test by placing a RadMenu directly on a page and setting up the RadAjaxManager to update the control from the tabstrip and the menu is rendered properly, disabled or enabled as the case may be. However the User Control containing my real menu does not show up as a control on the RadAjaxManager Property Builder. Is there something I need to do to the User Control containing the RadMenu to make it visible?


Pavlina
Telerik team
 answered on 09 Sep 2009
5 answers
427 views
Hello,
I am trying call a radalert window from code-behind. For this I followed the instructions here.
I registered a RadWindowManager in my Master page and called the radalert from the client page's code-behind.
Here's the code for both of them:
Master:
<form id="form1" runat="server"
    <telerik:RadScriptManager ID="MasterScriptManager" runat="server" EnablePageMethods="True" 
        EnableScriptGlobalization="True" EnableTheming="True"
        <Services> 
            <asp:ServiceReference Path="~/Ws/KanioService.asmx"></asp:ServiceReference> 
        </Services> 
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="ramMaster" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="ktbMaster"
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadFormDecorator ID="masterFormDecorator" runat="server" DecoratedControls="All" /> 
    <telerik:RadWindowManager ID="rwmKanioMaster" runat="server"
    </telerik:RadWindowManager> 
    <div id="container"
 
... 
   

client's code-behind:
clientScript = "radalert('" + Resources.GlobalTranslation.selectFirst + "');"
RadScriptManager.RegisterStartupScript(thisthis.GetType(), "openWindow", clientScript, true); 

Now Firebug gives me the following error:
l is undefined
Ferdinand
Top achievements
Rank 1
 answered on 09 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?