Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
54 views
Hi Everybody,

I am using RadGrid to show the report like structure. Here I am having a problem with expansion of a column. I have a column named Notes where the information contains at least 50 letters. While displaying those 50 letters in Grid where it is assigned to a label is expanding the RadGrid.

Now I need a solution that since I have 50 letters I will just show them 10 letters instead of 50 letters in that cell. for example:

50 letters: Application time search by school Roll Number.

I want to show it as

Application time....

Whenever any person hovers on that cell it must show entire 50 words. By this we can reduce the expansion of RadGrid hopefully.

Help me in achieving this functionality.

Thank you
BRK
Top achievements
Rank 1
 asked on 16 Mar 2011
2 answers
152 views
Hi everybody,
 Hard coded the Treeview in  TreeviewBinding() Event. And we used the control in this way.
 For this there is a master Page and the Treeview code we kept in child page.


<telerik:RadTreeView ID="supview" runat="server" DataFieldID="child_id" DataFieldParentID="parent_id" CheckBoxes="true" >
          <DataBindings>
                    <telerik:RadTreeNodeBinding  Enabled="true"  />
                  </DataBindings>
                  
                  
          </telerik:RadTreeView>

Help me that I activate the events.
Thanking you
BRK
Top achievements
Rank 1
 answered on 16 Mar 2011
1 answer
74 views

In the hierarchy grid the allowrowselect is set to true. How can I tell if the row selected is from the master table view or detail table view on the client side script (rowselected). Please advise.

Thanks
RJ

Princy
Top achievements
Rank 2
 answered on 16 Mar 2011
0 answers
119 views
HI,
I wonder if we can sync the start and end datetime picker in rad scheduler as adding or updating an appointment. For example, as I select a start date time for an appointment, the end datetime picker will be sync, which changes to the same start selected start date time, or a day after that.
Please help!
Kind regards,
Hai Tran
Hai
Top achievements
Rank 1
 asked on 16 Mar 2011
2 answers
217 views
I use RadGrid control with using popup editform.
Now I want after show popup, if press ESC key, call cancel events and close popup.
Please help me, thanks you so much!
Best regards,
Long Vo
Long
Top achievements
Rank 1
 answered on 16 Mar 2011
2 answers
81 views
I'm having very strange problem with RadGrid. When i press the CommandItemTemplate button (btnReserve) strange text appears above the grid like this: 2781|updatePanel|ctl00_content1_IO_ctl00_content1_IO_rgdBannerInventoryPanel| 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>      
        <telerik:AjaxSetting AjaxControlID="rgdBannerInventory">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgdBannerInventory" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<asp:UpdatePanel ID="upIO" runat="server" UpdateMode="Conditional">
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="rgdBannerInventory" EventName="ItemCommand" />
    </Triggers>
    <ContentTemplate>
        
            <telerik:RadTabStrip ID="IoTabStrip" runat="server" Skin="Outlook" MultiPageID="IoMultiPage"
                SelectedIndex="2" OnTabClick="IoTabStrip_OnTabClick">
                <Tabs>
                    <telerik:RadTab runat="server" Text="Campaign View" Selected="True" Value="1">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="Contact Information" Value="2">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="Campaign Information" Value="3">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="Campaign Details" Value="4">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="Readership/History" Value="5">
                    </telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
            <telerik:RadMultiPage ID="IoMultiPage" runat="server" SelectedIndex="0">
                <telerik:RadPageView runat="server" ID="CampaignView">
                    
                </telerik:RadPageView>
                <telerik:RadPageView runat="server" ID="ContactInformation">
                    
                </telerik:RadPageView>
                <telerik:RadPageView runat="server" ID="CampaignInformation">
                     
                </telerik:RadPageView>
                <telerik:RadPageView runat="server" ID="CampaignDetails">
                    <telerik:RadTabStrip ID="CampaignDetailsTabStrip" runat="server" Skin="Outlook" MultiPageID="CampaignDetailsMultiPage"
                        SelectedIndex="2">
                        <Tabs>
                            <telerik:RadTab runat="server" Text="Create Drop" Selected="True" Value="1">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Edit Drop" Value="2">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Notes" Value="3">
                            </telerik:RadTab>
                        </Tabs>
                    </telerik:RadTabStrip>
                    <telerik:RadMultiPage ID="CampaignDetailsMultiPage" runat="server" SelectedIndex="0">
                        <telerik:RadPageView runat="server" ID="CreateDrop">
                            <telerik:RadSplitter ID="Radsplitter5" runat="server" Width="99%" CssClass="AutoHeight"
                                Orientation="Horizontal">
                                <telerik:RadPane ID="Radpane6" runat="server" Scrolling="None" CssClass="AutoHeight">
                                    <telerik:RadSplitter ID="Radsplitter6" runat="server">
                                        <telerik:RadPane ID="Radpane7" runat="server">                                           
                                        </telerik:RadPane>
                                        <telerik:RadSplitBar ID="Radsplitbar6" runat="server" CollapseMode="Both" />
                                        <telerik:RadPane ID="RadPane4" runat="server" Scrolling="none">
                                            <telerik:RadSplitter ID="RadSplitter3" runat="server" Orientation="Horizontal">
                                                <telerik:RadPane ID="Radpane8" runat="server">
                                                    
                                                </telerik:RadPane>
                                                <telerik:RadSplitBar ID="RadSplitbar2" runat="server" Locked="true">
                                                </telerik:RadSplitBar>
                                                <telerik:RadPane ID="Radpane3" runat="server" Height="20" Locked="true">
                                                    
                                                </telerik:RadPane>
                                            </telerik:RadSplitter>
                                        </telerik:RadPane>
                                    </telerik:RadSplitter>
                                </telerik:RadPane>
                                <telerik:RadSplitBar ID="Radsplitbar1" runat="server" CollapseMode="Both" />
                                <telerik:RadPane ID="Radpane1" runat="server" CssClass="AutoHeight">
                                   
                                </telerik:RadPane>
                                <telerik:RadSplitBar ID="Radsplitbar3" runat="server" CollapseMode="None" />
                                <telerik:RadPane ID="rpAvailableInventory" runat="server" Visible="false" CssClass="AutoHeight">
                                    
                                    <telerik:RadGrid GridLines="None" ID="rgdBannerInventory" Style="border: 0" runat="server"
                                        AllowPaging="True" PageSize="20" Width="100%" Height="100px" EnableLinqExpressions="false"
                                        AutoGenerateColumns="false" Visible="false">
                                        <MasterTableView AutoGenerateColumns="False" Width="100%" CommandItemDisplay="Bottom">
                                            <CommandItemTemplate>
                                                <div style="padding: 5px 5px;">
                                                    <asp:LinkButton ID="btnReserve" runat="server" OnClick="btnReserve_Click">
                                                    <img style="border:0px;vertical-align:middle;" alt="" src="../../Images/MediaTree/Add.png" /> Reserve Inventory</asp:LinkButton>
                                                </div>
                                            </CommandItemTemplate>
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="RateCard" DataType="System.String" HeaderText="Rate Card Rate"
                                                    UniqueName="RateCard">
                                                    <ItemStyle Wrap="False" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Available" DataType="System.String" HeaderText="Impressions Available"
                                                    UniqueName="Available">
                                                    <ItemStyle Wrap="False" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridTemplateColumn UniqueName="Value" HeaderText="Desired Inventory Amount">
                                                    <ItemStyle Wrap="False" />
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtValue" Width="150px" runat="server" />
                                                        <ajaxToolkit:FilteredTextBoxExtender ID="ftbe" runat="server" TargetControlID="txtValue"
                                                            ValidChars="1234567890" />
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                            </Columns>
                                        </MasterTableView>
                                        <ClientSettings AllowColumnsReorder="False" AllowKeyboardNavigation="true" EnablePostBackOnRowClick="true">
                                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                                            <Selecting AllowRowSelect="True" />
                                        </ClientSettings>
                                    </telerik:RadGrid>
                                   
                                </telerik:RadPane>
                            </telerik:RadSplitter>
                        </telerik:RadPageView>
                        <telerik:RadPageView runat="server" ID="EditDrop">
                            
                        </telerik:RadPageView>
                        <telerik:RadPageView runat="server" ID="Notes">
                            
                        </telerik:RadPageView>
                    </telerik:RadMultiPage>
                </telerik:RadPageView>
                <telerik:RadPageView runat="server" ID="IoPage5">
                    Readership/History</telerik:RadPageView>
            </telerik:RadMultiPage>
         
    </ContentTemplate>
</asp:UpdatePanel>

protected void btnReserve_Click(object sender, EventArgs e)
{
   // After this button click message shows up
}

Any help would be appreciated.

Igor
Top achievements
Rank 1
 answered on 16 Mar 2011
6 answers
285 views
My Problem is, In Add New Record mode no Scrolling come to grid. But in Edit mode scrolling appear and ok. I want scrolling too in insert mode also.

<telerik:RadPane ID="radPane4" runat="server" Width="65%" Scrolling="None">
    <telerik:RadGrid ID="radGridItems" runat="server" OnNeedDataSource="radGridItems_NeedDataSource"
        OnDeleteCommand="radGridItems_DeleteCommand" Skin="Windows7" GridLines="None"
        ShowStatusBar="True" OnInsertCommand="radGridItems_InsertCommand" OnUpdateCommand="radGridItems_UpdateCommand"
        AutoGenerateColumns="False" OnItemCreated="radGridItems_ItemCreated" OnItemDataBound="radGridItems_ItemDataBound"
        Width="100%" Height="100%">
        <MasterTableView DataKeyNames="autoIdItems" CommandItemDisplay="TOP"  EditMode="EditForms"
            ShowFooter="true" Name="ContractActivityItems" NoMasterRecordsText="Select Contract Activity To View And Add Activity Items">
            <Columns>
                <telerik:.
                         .
                          dBoundColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings>
            <Scrolling UseStaticHeaders="True" AllowScroll="true"/>
        </ClientSettings>
    </telerik:RadGrid>
</telerik:RadPane>
Steele
Top achievements
Rank 1
 answered on 16 Mar 2011
1 answer
96 views
I am sure this is pretty simple but I can't seem to find the answer on here.

I have a stored procedure that returns 3 columns (MonthID, MonthLabel, Totals), I have bound this using a dataset to a RadChart in the code behind but it renders all the values.

My stored procedure returns:
MonthID        MonthLabel        Totals
1                    Jan                     2
2                    Feb                    9
etc, etc


How can I configure the control to show Totals(Y axis) and MonthLabel(X axis)

Many thanks
Martin
Top achievements
Rank 1
 answered on 15 Mar 2011
7 answers
98 views
Hello,
We have built some (content templates) within our MOSS site. In order to help our colleagues to create a new article easily and in one corporate style. When creating an article you can choose between these. For example one has a header with a certain size and a table, another une only headers and text. 

Our problem: When editing and saving an article we get  space within the content because paragraphs are added and HTML tags are not closed correrctly so the size within content is differnt. I cleaned the conten templates with the editor but the problems are coming again.  What can we do?

Thanx for your help!
Brian Ho
Top achievements
Rank 1
 answered on 15 Mar 2011
1 answer
125 views
I'm using the RadComboBox as a mutli select with checkboxes.  The template looks like the following:

<ItemTemplate>
    <div onclick="StopPropagation(event)" class="combo-item-template">
        <asp:CheckBox runat="server" ID="chk1" onclick="onCheckBoxClick(this)"/>
        <asp:Label runat="server" ID="Label1" AssociatedControlID="chk1"><%# Eval("Value")%>
        </asp:Label>
    </div>
</ItemTemplate>

This is working great, however, there are some issues when clicking on html elements that are not the checkbox or label.  When clicking on other HTML elements like the DIV or the LI that is created by the radcombobox control the drop down menu with the items closes and updates the text of the combo box with the item that is contained in the DIV or LI wither it is checked or not.

An example of this would be to click the drop down button of the combo box, put the mouse cursor to the far left passing the checkbox control and clicking.  The drop down list will close and the item name will appear in the text of the control, HOWEVER, the item will not have been checked, because the checkbox control was never clicked.

I have controlled this unwanted behavior for the div by adding a method to the onclick attribute.

function StopPropagation(e)
{
    //cancel bubbling
    e.cancelBubble = true;
    if (e.stopPropagation)
    {
        e.stopPropagation();
    }
}

This fixes the issue with the div and when the div is clicked nothing happens as desired.  HOWEVER, how do I do this same thing for the LI that is created and controlled by the RadComboBox?  It has its own custom style that gives it padding and therefore increases its ability to be clicked.  I need to stop the click propagation of the List Item as it is giving me this broken behavior, its acting like it is a regular non templated combo box and the item has been selected.

Thanks,
Tyler
Simon
Telerik team
 answered on 15 Mar 2011
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?