Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
314 views
I'm using Q2 2010.

In a grid with client-side row selection enabled by setting the clientsettings-selecting-allowrowselect property to true and adding a gridclientselectcolumn, the row selection is not working .
The style is not applied to the selected rows, on the server-side i can't see any rows as selected, and when checking the header checkbox that selects all rows, i get a javascript error 'Uncaught TypeError: Cannot call method '_selectAllRows' of null'.

The grid is inside a RadPageView, and the radmultipage is ajaxified using a RadAjaxManager. This is all placed in a .ascx file which is placed inside a sitefinity page. The master page references jquery 1.4.1, and has a RadScriptManager.

Another error i'm getting, which i don't know if is connected to this, is that each time an AJAX call is started, a resource fails to load (the url of the resource is [url of webpage]?rnd=[a date]. It might count that i'm using a custom skin built with the Visual StyleBuilder.

Any ideas about this particular problem?

Update:

I've managed to localize the problem some more. The problem is that the $find method called by the checkbox to return the grid returns null.
Now, the grid is on the third page of the RadMultiPage. I pass from one page to the other by AJAX calls, using a RadAjaxManager and a RadAjaxLoadingPanel. If i call the $find method the first time the page is loaded, it returns the right DOM object. However, if i call the same method with the same parameter (the id of the grid) after an AJAX call that updates the RadMultiPage, the $find method returns null. Note that this was working when i was using a .aspx page to hold all the content, but i wanted to add it to a Sitefinity page so i had to use a .ascx file.

Thanks

Veli
Telerik team
 answered on 13 Sep 2011
1 answer
102 views
Noticed a bug in our software, but then was able to recreate it on the telerik demos... any assistance you can give in trying to repair this would be appreciated.. Please see the following link for a better understanding of what i'm talking about.

http://www.youtube.com/watch?v=pTWHAxaFfvI

Niko
Telerik team
 answered on 13 Sep 2011
1 answer
175 views
I have a RadGrid with a NestedViewTemplate that has another RadGrid in a RadPageView, when I update the RadGrid in the RadPageView I need to rebind the Parent Grid and keep the Parent RadGrid item expanded and RadPageView displayed.

Any suggestions?
Shinu
Top achievements
Rank 2
 answered on 13 Sep 2011
1 answer
269 views

Hi:
  I have a RadListView with some items. When one of the item is clicked a tooltip will appear corresponding to the item's position with detail info from an usercontrol (the tooltip's content is an usercontrol). This requires setting the "TargetControlID" when the listview item is clicked. Because the listview item is in a template, to distinquish each item when many items show at the same time can be done by including the item inside a div html element. And the selected item div can be obtained by onmouseDown event target. Since the content of tooltip is an usercontrol, and is a update target of ajaxmanager triggered by listview, I have to load it from server side. It ends up with setting TargetControlID on client side with set_targetControlID and show Tooltip on server side as demonstrated in the attached program fragment. I checked value of TargetControlID from client side in debug, value set accordingly, but tooltip displayed in wrong position. I checked  TargetControlID from server side right before SHOW(), found out the value has not changed. I made sure set_targetControlID() happend before SHOW(). I even try to use set_title("test title") just for testing purpose, not thing happened on the server side. Some one please help. Thanks.
This is the RadToolTip declaration:  
              <telerik:RadToolTip ID="RadToolTip1" runat="server" Animation="FlyIn"
                EnableShadow="True" HideEvent="ManualClose"
                ManualCloseButtonText="关闭" ShowEvent="FromCode" Width="268px" IsClientID="True">
                <asp:PlaceHolder ID="PlaceHolder1" runat="server" />
                <br />
            </telerik:RadToolTip>

This is the client script:

        function SetTooltipControlID() {
            var radToolTip = $find("<%= RadToolTip1.ClientID %>");
            radToolTip.set_targetControlID("");
            radToolTip.set_targetControlID(curItem.id);
            radToolTip.set_title("this is a title");   //for testing purpose
        }

This is the server code:

        protected void lvwItemPictures_SelectedIndexChanged(object sender, EventArgs e)
        {
            string item = lvwItemPictures.SelectedItems[0].GetDataKeyValue("PLUCODE").ToString();
            string title = lvwItemPictures.SelectedItems[0].GetDataKeyValue("TITLE").ToString();
            CurrentItemCode = item;
            this.RadToolTip1.Show();   // checked RadToolTip1 properties here. Any change made in client code is not reflected.
            LoadUserControl(PlaceHolder1, CurrentControl, true);
 

        }

 

Marin Bratanov
Telerik team
 answered on 13 Sep 2011
5 answers
132 views
Hello,

I am wondering if Telerik ComboBox or other controls could be customized to look similar to Google controls.

For instance, http://translate.google.com/ you can notice the fancy ComboBox, Tooltip, and Buttons.

If not, any idea what google uses from JavaScript/CSS libraries to accomplish and deliver such nice UI controls?

Finally, would it be possible for Telerik, to add a new Theme to the already existing set called "Google UI" ?

Thank you & regards,
Bilal
Dimitar Terziev
Telerik team
 answered on 13 Sep 2011
4 answers
66 views
Hi All.
Could you please help me to find the best way to check availability of GroupBy resources for Scheduler. I have Employee resource (LinqDataSource) and need to cancel GroupBy parameter for scheduler if there is no emploees in the list. All I tried get an error cant change GroupBy during binding process. (or something like this)

Thanks.
Plamen
Telerik team
 answered on 13 Sep 2011
3 answers
157 views
Hi all i need a help. i am new to telerik. I have table which has column menuname and Link.

i want to populate those into a datatable and want to create menus dynamically. i can create this by using RadMenu.

But i can't make clickable of my menus. that is when user clicks on the menus it will navigate to the link which value it gets from the table

please help. i need it urgently

Thanks & Reagrds'

Indranil
Kate
Telerik team
 answered on 13 Sep 2011
1 answer
153 views
Greetings,

I have developed a chat app using RadEditor to type in the messages.
I have also used the text formating capabilities from rad editor to enhance the chat, but now i'm having some technical dificulties. I want the radEditor to preserve the formating settings when i change the cursor position or when i clean/insert HTML content to the RadEditor.

Is there a way to always keep the text formatting setting unless the user changes them?
I'm just using the Italic,Bold,Underline and text-color.

Any kind of help would be useful!
Rumen
Telerik team
 answered on 13 Sep 2011
1 answer
85 views
I have a Hierarchical RadGrid with a details table defined as a nestedViewTamplate which then also contains a RadGrid inside a RadPageView which is assigned to a RadTab.
I cannot get the second RadGrid to appear in the assigned RadTab for some reason.

Here is my source.

<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Centive" EnableEmbeddedSkins="False"
    AutoGenerateColumns="False" CellSpacing="0" GridLines="None" OnNeedDataSource="RadGrid1_NeedDataSource"
    OnItemDataBound="RadGrid1_ItemDataBound" OnDetailTableDataBind="RadGrid1_DetailTableDataBind">
    <MasterTableView DataKeyNames="CompanyId,CentiveId,PlanId" Name="MainMasterTable">
        <DetailTables>
            <telerik:GridTableView DataKeyNames="CompanyId,CentiveId,PlanId,AwardId" Name="AwardDetails">
                <NestedViewTemplate>
                    <telerik:RadTabStrip ID="TabStrip1" runat="server" MultiPageID="MultiPage1" Skin="Centive"
                        EnableEmbeddedSkins="false">
                        <Tabs>
                            <telerik:RadTab runat="server" Text="Transactions" PageViewID="PageView1" Selected="true">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Vestings" PageViewID="PageView2">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Tax" PageViewID="PageView3">
                            </telerik:RadTab>
                        </Tabs>
                    </telerik:RadTabStrip>
                    <telerik:RadMultiPage runat="server" ID="MultiPage1" SelectedIndex="0" RenderSelectedPageOnly="false" SkinID="Centive" EnableEmbeddedBaseStylesheet="true">
                        <telerik:RadPageView runat="server" ID="PageView1">
                            <telerik:RadGrid runat="server" ID="RadGrid2" OnNeedDataSource="RadGrid2_NeedDataSource"
                                AutoGenerateColumns="false" Skin="Centive" EnableEmbeddedSkins="false">
                                <MasterTableView DataKeyNames="CentiveId, CompanyId, PlanId, AwardId" Name="SecondMainMasterTable">
                                    <Columns>
                                        <telerik:GridBoundColumn HeaderText="CentiveId" DataField="CentiveId" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="CompanyId" DataField="CompanyId" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Plan" DataField="PlanId" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Award" DataField="AwardId" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Type" DataField="Type">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Date" DataField="Date" DataFormatString="{0:dd/MM/yyyy}">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Units" HeaderStyle-HorizontalAlign="Right" DataField="Units"
                                            DataFormatString="{0:N0}">
                                            <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Right" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Price" DataField="Price" DataFormatString="{0:N0}"
                                            HeaderStyle-HorizontalAlign="Right">
                                            <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Right" />
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>
                        </telerik:RadPageView>
                    </telerik:RadMultiPage>
                </NestedViewTemplate>
                <Columns>
                    <telerik:GridBoundColumn HeaderText="CentiveId" DataField="CentiveId" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="CompanyId" DataField="CompanyId" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Plan" DataField="PlanId" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Award" DataField="AwardId">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Awarded" HeaderStyle-HorizontalAlign="Right"
                        DataField="Awarded" DataFormatString="{0:N0}">
                        <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Exercised" DataField="Exercises" DataFormatString="{0:N0}"
                        HeaderStyle-HorizontalAlign="Right">
                        <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Transfered" DataField="Transfers" DataFormatString="{0:N0}"
                        HeaderStyle-HorizontalAlign="Right">
                        <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Sold" DataField="Sales" DataFormatString="{0:N0}"
                        HeaderStyle-HorizontalAlign="Right">
                        <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Lapsed" DataField="Lapses" DataFormatString="{0:N0}"
                        HeaderStyle-HorizontalAlign="Right">
                        <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Share Splits" DataField="Share Splits" DataFormatString="{0:N0}"
                        HeaderStyle-HorizontalAlign="Right">
                        <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Rights Issues" DataField="Rights Issues" DataFormatString="{0:N0}"
                        HeaderStyle-HorizontalAlign="Right">
                        <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Outstanding" DataField="Outstanding" DataFormatString="{0:N0}"
                        HeaderStyle-HorizontalAlign="Right">
                        <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Right" />
                    </telerik:GridBoundColumn>
                </Columns>
            </telerik:GridTableView>
        </DetailTables>
        <Columns>
            <telerik:GridBoundColumn HeaderText="" DataField="Approved" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridImageColumn HeaderText="" UniqueName="ApprovedImage">
                <ItemStyle HorizontalAlign="Left" Width="1" />
            </telerik:GridImageColumn>
            <telerik:GridBoundColumn HeaderText="CentiveId" DataField="CentiveId" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="CompanyId" DataField="CompanyId" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Plan" DataField="PlanId">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Awarded" HeaderStyle-HorizontalAlign="Right"
                DataField="Awarded" DataFormatString="{0:N0}">
                <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                <ItemStyle HorizontalAlign="Right" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Exercised" DataField="Exercises" DataFormatString="{0:N0}"
                HeaderStyle-HorizontalAlign="Right">
                <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                <ItemStyle HorizontalAlign="Right" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Transfered" DataField="Transfers" DataFormatString="{0:N0}"
                HeaderStyle-HorizontalAlign="Right">
                <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                <ItemStyle HorizontalAlign="Right" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Sold" DataField="Sales" DataFormatString="{0:N0}"
                HeaderStyle-HorizontalAlign="Right">
                <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                <ItemStyle HorizontalAlign="Right" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Lapsed" DataField="Lapses" DataFormatString="{0:N0}"
                HeaderStyle-HorizontalAlign="Right">
                <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                <ItemStyle HorizontalAlign="Right" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Share Splits" DataField="Share Splits" DataFormatString="{0:N0}"
                HeaderStyle-HorizontalAlign="Right">
                <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                <ItemStyle HorizontalAlign="Right" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Rights Issues" DataField="Rights Issues" DataFormatString="{0:N0}"
                HeaderStyle-HorizontalAlign="Right">
                <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                <ItemStyle HorizontalAlign="Right" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Outstanding" DataField="Outstanding" DataFormatString="{0:N0}"
                HeaderStyle-HorizontalAlign="Right">
                <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
                <ItemStyle HorizontalAlign="Right" />
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
John
Top achievements
Rank 1
 answered on 13 Sep 2011
1 answer
88 views

Hello,

I'm using RadComboBox of version 2010.1.519.35. I'm getting very much strange behaviour or the Autocomplete feature of RadComboBox.  I select multiple items in the radcomobox with seperator ';'. but when i'm trying to select one email address from the selected list and trying to delete it, is not working. when i select single email address entire row is selected and when i press delete entire row gets deleted. so i'm not able to remove the selected single item from the textbox of RadCombobox. Please suggest a solution.
below is the code which i used for radcombobox.

 

<telerik:RadComboBox ID="ddlEmailTo" AutoCompleteSeparator=";" AllowCustomText="True"

 

 

runat="server" Width="505" Height="150" CssClass="rfdRoundedCorners" DataSourceID="sqlDsContactEmail"

 

 

DataTextField="strEmail" MarkFirstMatch="true" ShowToggleImage="False" Filter="StartsWith"

 

 

AccessKey="T">

 

 

</telerik:RadComboBox>

 



Thanks
Sweta
Dimitar Terziev
Telerik team
 answered on 13 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?