Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
I'm wondering what is the best or easiest way to accomplish the following.

I have 2 RadGrids on a single page.  I want any row click event in RadGrid1 refresh RadGrid2.  I don't have a datasource object on the aspx page, so I need it all to happen in the code behind.  I also need a DataKeyValue from RadGrid1 that I will use when creating the new contents of RadGrid2.

I've seen example of stuff close to this but not exactly this.  I have been trying to get this done with an AjaxManager - but maybe I'm better off not using that?

Any simple examples would be wonderful.  Thanks for the help.
Princy
Top achievements
Rank 2
 answered on 20 Mar 2009
0 answers
78 views
Hi,
When I making embedded skin = false & directly making a link to the css, all are working fine, except the filter menu,
only the text of the filter menu is shown.
Plz help.

Kollam2003
kollam2003
Top achievements
Rank 1
 asked on 20 Mar 2009
2 answers
77 views

Hi,

I am using ClientSelectedIndexChanging Method oftabstrip, ideally it should not call ClientSelectedIndexChange method if ClientSelectedIndexChanging method returns false- as per documentation.

But It is firing ClientSelectedIndexChangedmethod even though ClientSelectedIndexChanging method returninig false.

Below is the code snippet for reference
--------------------------------------------------------------------------------------------------
function fnddlMeetingTitle_Client_SelectedIndexChanging(sender, eventArgs)
{
return false ;
}

function fnOnTabSelected(sender, eventArgs))
{
alert (' I am called');
}

                <telerik:RadTabStrip ID="radTab1" Skin="Outlook" Align="left" runat="server" Orientation="HorizontalTop" OnClientTabSelecting="fnddlMeetingTitle_Client_SelectedIndexChanging" OnClientTabSelected="fnOnTabSelected"  AutoPostBack="false" >
                    <Tabs>
                        <telerik:RadTab style="text-align: center;" Width="105px" runat="server"   Text="Tab1" CssClass="clsLabel1" NavigateUrl="Default1.aspx">
                        </telerik:RadTab>
                        <telerik:RadTab style="text-align: center;" Width="150px" runat="server"   Text="Tab2" CssClass="clsLabel1"
                            NavigateUrl="Default2.aspx">
                         </telerik:RadTab>
                        <telerik:RadTab style="text-align: center;" Width="150px" runat="server"  Text="Tab3" CssClass="clsLabel1"
                            NavigateUrl="Default3.aspx">
                        </telerik:RadTab>

                        <telerik:RadTab style="text-align: center;" runat="server"  Text="Tab4" CssClass="clsLabel1"
                            NavigateUrl="Default4.aspx" Width="150px" >
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>

------------------------------------------------------------------

Thanks and regards,
Manish Patel

Manishkumar
Top achievements
Rank 1
 answered on 20 Mar 2009
4 answers
157 views
I am trying to use RadToolBar together with radprompt() as described in your KB article

http://www.telerik.com/support/kb/aspnet-ajax/window/using-radprompt-and-radconfirm-with-telerik-navigational-controls.aspx

Everything works as expected - I get the prompt dialog and I enter value, but inside code behind e.Item.Value is always empty.

I traced javascript with FireBug and I can see that "lastClickedItem.set_value(args)" gets called with "args" having valid string value. But when few moments later I stop at the breakpoint inside "protected void RadToolBar1_ButtonClick" - e.Item.Value = empty string.

Could you please verify that this KB is still valid for build 2009-311 and suggest a workaround or alternative solution?

Thank you

Alexander



Alex
Top achievements
Rank 1
 answered on 20 Mar 2009
4 answers
107 views
Hi..
I modified the TabStrip.Web20 file but  the skin does not change.
Any ideas?
Where is the path to the Skin files? Could that be the issue?
thanks!
Bill
Top achievements
Rank 1
 answered on 19 Mar 2009
0 answers
68 views
4 answers
213 views
Hi,

I have a  tree view in my user control(ucSearch) and user control is in an asp.net update panel.

<asp:UpdatePanel ID="upKeywordSearch" runat="server">    
    <ContentTemplate>
         <div style="height:466">
                  <KS:Search id="ucSearch" PageName="Topic" runat="server" /> -- this control has the tree view
          </div>                                            
    </ContentTemplate>        
 </asp:UpdatePanel>

Events on the tree view (ex. onNodeClick, OnContextMenuItemClick) does not cause the post back, they work fine when there is no asp.net update panel wrapped around the user control. And this problem is only when included the page in sharepoint when i run the page as normal asp.net application it works fine.

Can anyone let me know what is the problem and wat is the solution for this.

Thanks in advance 

Regards
Rajani
rajani ramineni
Top achievements
Rank 1
 answered on 19 Mar 2009
2 answers
156 views
Hello,

I have got a DatePicker. I have got a calendar too, when I choose a date from here the date is shown in the left of a textbox.

I would like the date to be aligned in the center.

Could you help me? it can´t be difficult, but I don´t get it.

Thank you in advance.
Patxi
Top achievements
Rank 1
 answered on 19 Mar 2009
3 answers
144 views
Hi, if I put a radgrid after a radtoolbar this two remain in the same row with forefox, instead with ie is ok..

code to reproduct my problem:
    <telerik:RadToolBar ID="RadToolBar1" runat="server"
        <Items> 
            <telerik:RadToolBarButton Text="ciao"
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton Text="ciao"
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton Text="ciao"
            </telerik:RadToolBarButton> 
        </Items> 
    </telerik:RadToolBar> 
     
    <telerik:RadGrid ID="RadGrid1" runat="server" Width="100%"
        <MasterTableView> 
        </MasterTableView> 
    </telerik:RadGrid> 

    Protected Sub RadGrid1_NeedDataSource(ByVal source As ObjectByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource 
        RadGrid1.DataSource = New Object() {"dfsfs""fsdfdas""ghgfh"
    End Sub 
Jake
Top achievements
Rank 1
 answered on 19 Mar 2009
1 answer
160 views
When running the rad grid in a card view type manner, I can't get the width of the template to work in Safari or Chrome as 100% width, it only works with fixed with. 

So in the grid below, If I don't have the bolded div tag a fixed with the column doesn't fill the table. 

So <div style="width: 791px;"> works while <div style="width: 100%;"> doesn't work.  What am I missing for the template to be 100% width in WebKit browsers? 

Also, in certain conditions I change the row background color in the prerender event with: dataItem.BackColor = System.Drawing.Color.FromArgb(204, 153, 153); this works great in IE and FF but in webkit browsers only colors a section of the grid.  The section that is colored actual is the width of the column if I don't fix width the div tag? 

<telerik:RadGrid ID="RadGrid1" runat="server"
                    ShowHeader="false" GridLines="None"
                    OnNeedDataSource="RadGrid1_NeedDataSource"
                    OnItemDataBound="RadGrid1_ItemDataBound"
                    OnUpdateCommand="RadGrid1_UpdateCommand"
                    OnPreRender="RadGrid1_PreRender" Width="100%"
                    >
                    <MasterTableView TableLayout="Fixed"
                        EditMode="InPlace" AllowCustomSorting="true"
                        AllowNaturalSort="false"  DataKeyNames="BulkLoadUserID" ShowHeader="false"
                        CommandItemDisplay="None"
                        BorderStyle="Solid" BorderWidth="1px" BorderColor="#666666"
                        >           
                        <AlternatingItemStyle BackColor="#e3e3e3" />
                        <ItemStyle BackColor="#ffffff" />
                        <EditItemStyle BackColor="#ffffcc" ForeColor="#000000"/>
                        <ItemTemplate>
                            <div style="width: 791px;">
                                <div style="float: left; width: 35%;">
                                    <div style="float: left; font-weight: bold; width: 100px;">
                                        Email Address:
                                    </div>
                                    <div style="float: left;">
                                        <%# Eval("Email")%>
                                    </div>
                                    <div style="clear: both;"></div>
                                    <asp:Panel ID="InvalidEmailPanel" runat="server" ForeColor="Red">
                                            <div style="padding-left: 100px;"><asp:Label ID="InvalidEmailText" runat="server"></asp:Label></div>
                                    </asp:Panel>
                                    <div style="float: left; font-weight: bold; width: 100px;">
                                        First Name:
                                    </div>
                                    <div style="float: left;">
                                        <%# Eval("FirstName")%>
                                    </div>
                                    <div style="clear: both;"></div>                                
                                    <div style="float: left; font-weight: bold; width: 100px;">
                                        Last Name:
                                    </div>
                                    <div style="float: left;">
                                        <%# Eval("LastName")%>
                                    </div>
                                    <div style="clear: both;"></div>
                                    <div style="float: left; font-weight: bold; width: 100px;">
                                        Home Folder ID:
                                    </div>
                                    <div style="float: left;">
                                        <%# Eval("InboundEmailDefaultFolderID")%>
                                    </div>
                                    <div style="clear: both;"></div>         
                                    <div style="float: left; font-weight: bold; width: 100px;">
                                        User Type:
                                    </div>
                                    <div style="float: left;">
                                        <%# Eval("UserTypeDescription")%>
                                    </div>
                                    <div style="clear: both;"></div>
                                    <div style="float: left; font-weight: bold; width: 100px;">
                                        Network:
                                    </div>
                                    <div style="float: left;">
                                        <%# Eval("Network.NetworkName")%>
                                    </div>
                                    <div style="clear: both;"></div>
                                    <div style="float: left; font-weight: bold; width: 100px;">
                                        Sponsor:
                                    </div>
                                    <div style="float: left;">
                                        <%# Eval("Sponsor.Name")%>
                                    </div>
                                    <div style="clear: both;"></div>
                                    <div style="float: left; font-weight: bold; width: 100px;">
                                        Time Zone:
                                    </div>
                                    <div style="float: left;">
                                        <asp:Label ID="TimeZoneDisplaySTD" runat="server" Text='<%# Eval("TimeZone.TimeZoneLongDisplayStd")%>'></asp:Label>
                                        <asp:Label ID="TimeZoneDisplayDST" runat="server" Text='<%# Eval("TimeZone.TimeZoneLongDisplayDST")%>'></asp:Label>
                                    </div>
                                    <div style="clear: both;"></div>                                    
                                </div>
                                <div style="float: left; width: 20%;">
                                    <div style="font-weight: bold;">
                                        Folder Access/Alerts IDs
                                    </div>
                                    <div>
                                        <asp:Repeater ID="folderAccessIDS" runat="server" OnItemDataBound="folderAccessIDS_OnItemDataBound">
                                            <ItemTemplate>
                                                <div style="float: left;">
                                                <%# Eval("FolderID") %>
                                                </div>
                                                <div style="float: left; padding-left: 10px;">
                                                    <asp:Label id="folderAccessError" runat="server" ForeColor="Red"></asp:Label>    
                                                </div>
                                                <div style="clear:both;"></div>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </div>
                                </div>
                                <div style="float: left; width: 17%;">
                                    <div style="font-weight: bold;">
                                        Folder Leader IDs
                                    </div>
                                    <div>
                                        <asp:Repeater ID="folderLeaderIDS" runat="server" OnItemDataBound="folderLeaderIDS_OnItemDataBound">
                                            <ItemTemplate>
                                                <div style="float: left;">
                                                <%# Eval("FolderID") %>
                                                </div>
                                                <div style="float: left; padding-left: 10px;">
                                                    <asp:Label id="folderLeaderError" runat="server" ForeColor="Red"></asp:Label>    
                                                </div>
                                                <div style="clear:both;"></div>
                                            </ItemTemplate>
                                        </asp:Repeater>                                    
                                    </div>
                                </div>
                                <div style="float: left; width: 13%;">
                                    <asp:Panel ID="GroupSectionListing" runat="server">
                                    <div style="font-weight: bold;">
                                        Group IDs
                                    </div>
                                    <div>
                                        <asp:Repeater ID="groupIDS" runat="server" OnItemDataBound="groupIDS_OnItemDataBound">
                                            <ItemTemplate>
                                                <div style="float: left;">
                                                <%# Eval("GroupID") %>
                                                </div>
                                                <div style="float: left; padding-left: 10px;">
                                                    <asp:Label id="groupError" runat="server" ForeColor="Red"></asp:Label>    
                                                </div>
                                                <div style="clear:both;"></div>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </div>
                                    </asp:Panel>
                                </div>
                                <div style="float: left; width: 10%;">
                                    <div>
                                    <asp:LinkButton ID="Edit" runat="server" CommandName="Edit" Text="Edit" ForeColor="#336699"></asp:LinkButton>
                                     |
                                     <asp:LinkButton ID="lbDeleteBulkLoadUser" ForeColor="#336699" runat="server" Text="Delete" OnClick="DeleteBulkLoadUser_Click"></asp:LinkButton>
                                    </div>
                                    <div>
                                        
                                    </div>
                                </div>
                                <div style="float: left; width: 5%;">
                                    <asp:CheckBox ID="DoProcessing" runat="server" OnCheckedChanged="DoProcessing_CheckedChanged" />
                                </div>
                                <div style="clear: both;"></div>
                            </div>
                        </ItemTemplate>
                        <EditItemTemplate>
                                <div style="padding-left: 5px; padding-top: 5px; padding-bottom: 10px;">
                                <div style="padding-bottom: 0px;">
                                        <div style="float: right; padding-right: 20px; padding-bottom: 10px;">
                                            <asp:Button ID="btnSave" Text="Save" runat="server" CssClass="smallbutton" CommandName="Update"></asp:Button>
                                            <asp:Button ID="btnCancel" Text="Cancel" runat="server" CssClass="smallbutton" CommandName="Cancel"></asp:Button>
                                        </div>                                
                                        <div style="clear: both;"></div>
                                </div>
                                <div>
                                    <div style="float: left; width: 300px">
                                        <div style="float: left; font-weight: bold; width: 100px;">
                                            Email Address:
                                        </div>
                                        <div style="float: left;">
                                            <asp:TextBox ID="Email" runat="server" CssClass="regsmall" Width="170px"></asp:TextBox>
                                        </div>
                                        <div style="clear: both; padding-top: 5px;"></div>
                                        <div style="float: left; font-weight: bold; width: 100px;">
                                            First Name:
                                        </div>
                                        <div style="float: left;">
                                            <asp:TextBox ID="FirstName" runat="server" CssClass="regsmall" Width="170px"></asp:TextBox>
                                        </div>
                                        <div style="clear: both; padding-top: 5px;"></div>                                
                                        <div style="float: left; font-weight: bold; width: 100px;">
                                            Last Name:
                                        </div>
                                        <div style="float: left;">
                                            <asp:TextBox ID="LastName" runat="server" CssClass="regsmall" Width="170px"></asp:TextBox>
                                        </div>
                                        <div style="clear: both; padding-top: 5px;"></div>
                                        <div style="float: left; font-weight: bold; width: 100px;">
                                            Home Folder ID:
                                        </div>
                                        <div style="float: left;">
                                            <asp:TextBox ID="InboundEmailDefaultFolderID" runat="server" CssClass="regsmall" Width="170px"></asp:TextBox>
                                        </div>
                                        <div style="clear: both; padding-top: 5px;"></div>         
                                        <div style="float: left; font-weight: bold; width: 100px;">
                                            User Type:
                                        </div>
                                        <div style="float: left;">
                                            <asp:ListBox ID="UserTypes" runat="server" CssClass="regsmall" Rows="1" SelectionMode="Single">
                                                <asp:ListItem Text="Web Admin" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="Manager" Value="2"></asp:ListItem>
                                                <asp:ListItem Text="User - All Access" Value="3"></asp:ListItem>
                                                <asp:ListItem Text="User - Restricted" Value="4"></asp:ListItem>
                                            </asp:ListBox>
                                        </div>
                                        <div style="clear: both; padding-top: 5px;"></div>
                                        <div style="float: left; font-weight: bold; width: 100px;">
                                            Network:
                                        </div>
                                        <div style="float: left;">
                                            <asp:ListBox ID="Networks" runat="server" CssClass="regsmall" Rows="1" SelectionMode="Single"  AutoPostBack="true" OnSelectedIndexChanged="Networks_SelectedIndexChanged"></asp:ListBox>
                                        </div>
                                        <div style="clear: both; padding-top: 5px;"></div>
                                        <div style="float: left; font-weight: bold; width: 100px;">
                                            Sponsor:
                                        </div>
                                        <div style="float: left;">
                                            <asp:ListBox ID="Sponsors" runat="server" CssClass="regsmall" Rows="1" SelectionMode="Single"></asp:ListBox>
                                        </div>                                     
                                    </div>
                                    <div style="float: left; width: 150px;">
                                        <div style="font-weight: bold;">
                                            Folder Access/Alerts IDs
                                        </div>
                                        <div>
                                            <asp:TextBox ID="FolderAccessIDs"  CssClass="regsmall" runat="server" Height="100px" Width="130px" TextMode="MultiLine"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div style="float: left; width: 150px;">
                                        <div style="font-weight: bold;">
                                            Folder Leader IDs
                                        </div>
                                        <div>
                                            <asp:TextBox ID="FolderLeaderIDs"  CssClass="regsmall" runat="server" Height="100px" Width="130px" TextMode="MultiLine"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div style="float: left; width: 150px;">
                                        <asp:Panel ID="GroupSection" runat="server">
                                        <div style="font-weight: bold;">
                                            Group IDs
                                        </div>
                                        <div>
                                            <asp:TextBox ID="GroupIDs" CssClass="regsmall" runat="server" Height="100px" Width="130px" TextMode="MultiLine"></asp:TextBox>
                                        </div>
                                        </asp:Panel>
                                    </div>
                                    <div style="clear: both;"></div>
                                </div>
                                <div>
                                <div style="clear: both; padding-top: 5px;"></div>
                                        <div style="float: left; font-weight: bold; width: 100px;">
                                            Time Zone:
                                        </div>
                                        <div style="float: left;">
                                            <asp:ListBox ID="TimeZones" runat="server" CssClass="regsmall" Rows="1" SelectionMode="Single"></asp:ListBox>
                                        </div>
                                        <div style="clear: both; padding-top: 5px;"></div>  
                                </div>
                            </div>   
                        </EditItemTemplate>
                    </MasterTableView>
                    </telerik:RadGrid>
Dimo
Telerik team
 answered on 19 Mar 2009
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?