Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
Shoud I be able to use tracing with radajax?for some reason - with trace enabled and page output = true, I get server errors back from ajaxRequest calls....

Cheers,
Andles
Iana Tsolova
Telerik team
 answered on 08 Jan 2009
1 answer
126 views
Hi,

 I am using a customRadDatetime picker control in which i will be setting the values dynamically based on the culture set. if i set the date to be in a format( i.e ('dd/mm/yyyy') only when i select the textbox the format changes
or else the default format comes again. please provide a solution to set the dateformat based on culture to be dynamic and should not change if selected  date also changes. it should also work in the selecteddate changed Event.

Thanks
Veda.S
  
Daniel
Telerik team
 answered on 08 Jan 2009
2 answers
111 views
Hello Everyone,

First of all, Happy New Year 2009 to everyone!

Now coming to my question, I have a page with radgrid on it. Radgrid is of fixed height and width with vertical scrolling. This page has a timer which causes postback that rebinds the grid. Everything works fine but when the grid rebinds, the scroll bar moves to the top and comes down to the previous postion which is quite irritating. Is there any way to stop this behavior? 

This behavior can be observed in this page after scrolling the grid half way down and then making a postback.

http://demos.telerik.com/aspnet-ajax/Grid/Examples/Client/Scrolling/DefaultCS.aspx



Thanks,
~SP
Shailendra
Top achievements
Rank 1
 answered on 08 Jan 2009
1 answer
80 views
When the grid is empty, how do I make the columns fill the space up so the column headers are stretched over the entire width of the grid? I need the grid to look the same as far as column headers whether the grid is empty or full.
Dimo
Telerik team
 answered on 08 Jan 2009
2 answers
130 views
Hello,

I'm using a RadTimePicker.  I initially assign it a value of 2:00 PM.  The user changes it to 4:00 PM, but the SelectedDate and ValidatedDate properties is still 2:00 PM, but the DateInput.SelectedDate property is the correct time.  Why is that?

Thanks.
Brian Mains
Top achievements
Rank 1
 answered on 08 Jan 2009
8 answers
301 views
Hello,

I read the section on opening a radwindow from within a radwindow using the following:

 

function GetRadWindow()

 

{

 

var oWindow = null;

 

 

if (window.radWindow)

 

oWindow = window.radWindow;

 

else if (window.frameElement.radWindow)

 

oWindow = window.frameElement.radWindow;

 

return oWindow;

 

}

 

 

var oManager = GetRadWindow().get_windowManager();

 

oManager .radopen(

'something.aspx', null);

However, my problem is the radwindow launching the second radwindow's OnClientClose event is not being called anymore and I need this in order to look at the argument passed in and see if I need to refresh.

Thanks

 

 

 

Craig Hinkel
Top achievements
Rank 1
 answered on 08 Jan 2009
3 answers
197 views
Hi everyone! I have an issue with Rad Editor in Preview mode. It actually happens with IE7, but does not with FireFox 3.0.4. When I select a part of the editor's content, I expect to use the default context menu of IE. When I right-click my selection, it gets erased and I am also able to paste another text on the editor. The "copy" item of the context menu appears disabled, so I can't even select it.
If someone knows a way to fix that I would greatly appreciate.

Thanks,
Ivan
Ivan Stoilkov
Top achievements
Rank 1
 answered on 08 Jan 2009
2 answers
200 views
Hi

I have been trying to find instructions about upgrading to ASP.NET Ajax 2008 Q3 controls. I'm taking over an old project with rad controls, and all rad controls come up with error (in design view): "This control is compiled for ASP.NET 1.x. Please use the ASP.NET 2.0 native version: RadGrid.Net2.dll" -

Please - any instructions about upgrade? my installed rad controls are 2008 Q3

Thanks

-Pilu
Pilu
Top achievements
Rank 1
 answered on 08 Jan 2009
1 answer
215 views
I have a grid with Detail Tables into it. Master table is category which just displays category name and child table displays records for that related parent category. Detail table has 5 columns. Not when I try to implement paging it doesn't work. It never finds the correct number of pages so it doesn't show the Pager controls properly.
Even though each category has more than 2 records (PageSize=2). It doesn't display more than 1 page in paging control.
What seems to be wrong here?

Here is grid in ASPX page
    <telerik:RadGrid ID="RadGridParent" runat="server" EnableAJAX="True" GridLines="None" 
            ShowGroupPanel="True" Skin="Office2007" AutoGenerateColumns="False" Description="Messages" 
            ShowStatusBar="True" Subtitle="Messages" Title="Messages" Width="98%" 
            OnItemCommand="RadGridParent_ItemCommand" ShowHeader="False"
            PagerStyle-AlwaysVisible="False" AllowPaging="True" PageSize="2" 
            OnDetailTableDataBind="RadGridParent_DetailTableDataBind" 
            onitemdatabound="RadGridParent_ItemDataBound" 
            onneeddatasource="RadGridParent_NeedDataSource"
            onprerender="RadGridParent_PreRender" AllowSorting="True" 
            AllowMultiRowSelection="True">
        <MasterTableView DataKeyNames="CategoryID" CommandItemDisplay="Top">
            <DetailTables>
                <telerik:GridTableView runat="server" DataKeyNames="CategoryID" 
                        AutoGenerateColumns="False" GridLines="Both" 
                        CommandItemDisplay="Bottom" AllowAutomaticInserts="false" AllowAutomaticUpdates="false" 
                        HierarchyLoadMode="ServerOnDemand" ShowHeader="True" 
                    PagerStyle-AlwaysVisible="True" AllowCustomPaging="True"
                    BorderStyle="Ridge" Width="100%"
                        NoDetailRecordsText="There are no messages." >
                    <ParentTableRelation>
                        <telerik:GridRelationFields DetailKeyField="CategoryID" MasterKeyField="CategoryID"  />
                    </ParentTableRelation>
                    <RowIndicatorColumn Visible="false">
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn Resizable="False">
                        <HeaderStyle Width="20px" />                            
                    </ExpandCollapseColumn>
                    <PagerStyle Mode="NumericPages"></PagerStyle>
                     <CommandItemTemplate>
                        <div>
                          <table border=0 cellspacing=0 cellpadding=0 width="100%">
                            <tr>
                                <td width="40%">
                                    <div style="float:left;">
                                    <asp:LinkButton ID="btnDeleteMessage" ConfirmText="Sure?" runat="server" Text="Delete Selected" CommandName="MessageDelete" OnClientClick="return ConfirmDelete(this);" SkinId="swGridDeleteSelectedLinkButton"> </asp:LinkButton>
                                    </div>
                                </td>
                                <td width="20%">
                                    <div style="float:left;">
                                        <asp:LinkButton ID="btnMessageMarkAsRead" runat="server" Text="Mark Selected as Read" CommandName="MessageMarkRead" SkinId="swGridMarkMessageReadLinkButton"> </asp:LinkButton>
                                    </div>
                                </td>
                                <td width="40%">
                                    <div style="float:right;">
                                        <asp:LinkButton ID="btnMessageMarkAsUnread" runat="server" Text="Mark Selected as Unread" CommandName="MessageMarkUnread" SkinId="swGridMarkMessageUnreadLinkButton"></asp:LinkButton>
                                    </div>
                                </td>
                            </tr>
                          </table>
                        </div>
                    </CommandItemTemplate>        
                    <Columns>
                    
                    <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn"  HeaderText="Select All">
                    <HeaderStyle Width="10px" />
                    </telerik:GridClientSelectColumn>
                        <telerik:GridBoundColumn DataField="IsRead" DataType="System.String" HeaderText=""  Groupable="false" 
                                SortExpression="IsRead" UniqueName="MessageReadIcon" Visible="True">
                                <HeaderStyle Width="10px" />
                                <ItemStyle Width="10px" />
                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn DataField="CategoryID" DataType="System.Int32"  Groupable="false" 
                                ReadOnly="True" SortExpression="NotificationMsgID" UniqueName="NotificationMsgID" Visible="False">                    
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="NotificationMsgUserID" DataType="System.Int32"  Groupable="false" 
                                ReadOnly="True" SortExpression="NotificationMsgUserID" UniqueName="NotificationMsgUserID" Visible="False">   
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="RVNotificationMsgUser" DataType="System.Int32"  Groupable="false" 
                                ReadOnly="True" UniqueName="RVNotificationMsgUser" Visible="False">   
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Topic" HeaderText="Topic" DataType="System.String" Groupable="false" 
                                SortExpression="Topic" UniqueName="Topic">                    
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SendDate" DataType="System.DateTime"  Groupable="false" 
                                HeaderText="Date" SortExpression="SendDate" UniqueName="SendDate">                    
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Sender" DataType="System.String" HeaderText="From"  Groupable="false" 
                                SortExpression="Sender" UniqueName="Sender">
                            <ItemStyle Width="140px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="MessageText" DataType="System.String" HeaderText="Message" Groupable="false" SortExpression="MessageText" 
                                UniqueName="MessageText">                    
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SenderUserLastName" UniqueName="SenderUserLastName" Groupable="false" Visible="False"> 
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SenderUserFirstName" UniqueName="SenderUserFirstName" Groupable="false" Visible="False"> 
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SenderUserMiddleName" UniqueName="SenderUserMiddleName" Groupable="false" Visible="False"> 
                        </telerik:GridBoundColumn>
                    </Columns>     
                    <editformsettings>
                        <popupsettings scrollbars="None" />
                    </editformsettings>
                </telerik:GridTableView>
            </DetailTables>
            
            <editformsettings>
                <popupsettings scrollbars="None" />
            </editformsettings>
            
            <CommandItemTemplate>
                <div style="float:right;text-align:right">
                    <asp:LinkButton ID="LinkButton4" runat="server" CommandName="RebindGrid"
                            SkinID="swGridRefreshLinkButton" Text="Refresh" ToolTip="Refresh"> </asp:LinkButton>
                </div>
            </CommandItemTemplate>
            <RowIndicatorColumn Visible="False">
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn> 
            <ExpandCollapseColumn Visible="true" Resizable="False">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="MessageDescription" HeaderText="Messages" 
                    SortExpression="MessageDescription" UniqueName="MessageDescription" 
                    ItemStyle-Font-Bold="true" Groupable="false">                    
                    <ItemStyle Font-Bold="True" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="CategoryID" UniqueName="CategoryID" HeaderText="" Visible="False">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
        <GroupPanel ID="SystemWorksStandardGridGroupPanel" Text="Notifications">
          <PanelStyle Width="100%" Height="20px" />
        </GroupPanel>
        <ClientSettings AllowColumnsReorder="False" AllowDragToGroup="True" ReorderColumnsOnClient="False">
            <Selecting AllowRowSelect="True" />
            <Scrolling AllowScroll="false" UseStaticHeaders="false" />
        </ClientSettings>
        <PagerStyle Mode="NumericPages"></PagerStyle>
    </telerik:RadGrid>

And here is related some (C#) code 
        protected void RadGridMessages_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            if (!e.IsFromDetailTable)
            {
                LoadParentData();
            }
        }


        private void LoadParentData()
        {
            Category[] cats = new Category[2];

            Category cat1= new Category();
            cat1.MessageTypeID = 1;
            cat1.MessageDescription = "Catorogy 1";
            cats [0] = cat1 ;

            cat1.MessageTypeID = 2;
            cat1.MessageDescription = "Category 2";
            cats[1] = cat1;

            RadGridParent.MasterTableView.DataSource = cats;
        }

        protected void RadGridParent_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)
        {
            childDataSource[] childDS;

            GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
            int catId = Int32.Parse(dataItem.GetDataKeyValue("CategoryID").ToString());

            childDS = GetChildDataSourceByCategory(catId);
            
    e.DetailTableView.DataSource = childDS;
        }

Sebastian
Telerik team
 answered on 08 Jan 2009
2 answers
144 views
I have the following markup. It includes a menu inside of the tabtemplate of a 2nd level tab. When in this structure, the menu's navigateurl does not appear to work. Hovering over the menu item shows the navigateurl in the browser status bar, but clicking on the item does nothing. I have confirmed that the client-side itemclicking event fires. This occurs in IE7 and Firefox as far as I can tell. Anyone know what might be going on?

<telerik:RadTabStrip ID="tsTN"   
                    runat="server"   
                    Skin="Hay"   
                    SelectedIndex="0" 
                    > 
        <Tabs> 
            <telerik:RadTab Text="Default Page" NavigateUrl="~/Home/" runat="server" Selected="True" Value="HH">  
                <Tabs> 
                    <telerik:RadTab runat="server" Selected="True">  
                        <TabTemplate> 
                            <div style="margin-left:-30px;">  
                                <telerik:RadMenu ID="rmHH"   
                                            runat="server"   
                                            Flow="Horizontal"   
                                            Skin="Hay" 
                                > 
                                    <Items> 
                                        <telerik:RadMenuItem Text="Home" NavigateUrl="~/Home/"></telerik:RadMenuItem> 
                                        <telerik:RadMenuItem Text="About" NavigateUrl="~/Home/About/" ></telerik:RadMenuItem> 
                                        <telerik:RadMenuItem Text="Contact Us" NavigateUrl="~/Home/Contact.aspx"></telerik:RadMenuItem> 
                                    </Items> 
                                </telerik:RadMenu> 
                            </div> 
                        </TabTemplate> 
                    </telerik:RadTab> 
                </Tabs> 
            </telerik:RadTab> 
        </Tabs> 
    </telerik:RadTabStrip> 
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 08 Jan 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?