Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
56 views
hii,
I have a rad tree list with client select column,I tried to select the raw but select command is not firing on selecting the raw using client select column.
can you help me?

regards
Pavlina
Telerik team
 answered on 30 Aug 2012
1 answer
106 views
I have a form with a splitter and 3 panes on it. The first pane loads another page, using contenturl. This child page has a splitter and two more panes.  One of these panes has a radpanelbar in it.  I want to set the contenturl of the 2nd pane in the parent page when the user clicks on an item in the panelbar of the child page.


Let me know if what I'm asking isn't clear enough.

Thanks for the help!
Vessy
Telerik team
 answered on 30 Aug 2012
1 answer
43 views

Hi,

We were using Telerik Controls of version 2008.2.1001.35 earlier.  Now, we are using Telerik Controls of version 2012.1.215.35. 

Our TFS build engine server is in IST timezone and our deployment server is in CST timezone.

When we had a build with 2012 version Telerik Controls, Telerik dlls modified date and time will be 1:00PM. 
If we deploy this build to our deployment server which is of CST timezone (2:30AM), then we were getting awkward user interface for the deployed application.
Earlier, we were not getting awkward user interface by previous version (2008.2.1001.35) for this time difference. 

Please clarify.

Dobromir
Telerik team
 answered on 30 Aug 2012
1 answer
110 views
Hi,

We have an issue with the latest Telerik DLLs version 2012.1.215.35 when deploying a generated build on a server situated in a past time zone.  For example, our TFS build engine server is in IST Timezone and our deployment server is in Eastern Timezone.  The last modified date and time will be Aug 28 1:00 PM.  If these DLLs are deployed on our deployment server which is Aug 28 2:30 AM then we are experiencing a user interface issue (see attached screenshot).

Previously, this issue did not occur for the previous Telerik version 2008.2.1001.35 for the same scenario.

Would you kindly clarify why this problem is occuring?

Thanks,

Andre
Dobromir
Telerik team
 answered on 30 Aug 2012
6 answers
222 views

Team,

I have added attribute to RadDatePicker control while dynamically creating it.
This attribute contains the date time of the control creation(DateTime.Now.ToString()).
I have retrieved attribute value from in client side.
But I am not able to set Raddatepickers value to that attribute value in client side .
Please let me know  how I can achieve this task?

Any help will be appreciable. 

Regards,
Sampada 


Eyup
Telerik team
 answered on 30 Aug 2012
2 answers
136 views
Hi,

I have a RadPanelBar, when panel bar item was clicked it was causing postback:

<telerik:RadPanelBar runat="server" ID="pnlPageComponents" Width="100%" OnClientLoad="componentsPanelClientLoad" onitemclick="pnlAdditionalPageEntities_ItemClick"
    OnClientItemClicked="componentsPanelClientClicked">
    <CollapseAnimation Type="None"></CollapseAnimation>
    <ExpandAnimation Type="None"></ExpandAnimation>
    <Items>
        <telerik:RadPanelItem Height="29px" Text="Components" Value="Components" CssClass="rpHeader1">
            <HeaderTemplate>
                <span class="rpOut rpNavigation" style="cursor:pointer; border-left:1px solid #cccccc; border-right:1px solid #cccccc;">
                    <span class="panelExpandIcon"></span>
                    <span class="rpText">
                        <asp:Label ID="lblHeader0Components" runat="server"></asp:Label>
                        <asp:Label ID="lblItemStatus0Components" CssClass="pageContentComponentsEditorHeaderDescriptionBlue" runat="server"></asp:Label>
                    </span>
                </span>
            </HeaderTemplate>
            <ContentTemplate>
                <asp:UpdatePanel ID="UpdatePanelComponents" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <uc4:Components ID="pageComponentsList" runat="server" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </ContentTemplate>
        </telerik:RadPanelItem>
    </Items>
</telerik:RadPanelBar>

in onclick event:
bool shouldRender = e.Item.Expanded = !e.Item.Expanded;
e.Item.PostBack = false; // yes, I don't want it to cause postback on consequent clicks

as you can see I was expanding it manually and depending on shouldRender variable I was doing databinding. This has been around for over 6 month and I was updating your controls regularly for this project. Today I got Q2 2012 and now this logic doesn't work anymore. What happens is that I can see that RadPanelBar first expands itself and then causes a postback, so first I see inner control's unbound view and then when postback completes - I see the data. I had to make a change to onclick event:
bool shouldRender = e.Item.Expanded;// = !e.Item.Expanded; <-- manually setting it *now* was collapsing, cause item was already expanded.

So my question is how to get back to original behavior when I don't want to item to expand itself on client side, but just cause a postback in collapsed state, I will do my stuff on server-side callback and set "expanded" property myself (as I was doing previously)?

Thank you!

P.S.: please check release notes for RadPanelBar for Q2 2012 - this should give you some hints in the "fixed" section.
Shukhrat Nekbaev
Top achievements
Rank 1
 answered on 30 Aug 2012
3 answers
74 views
I can't seem to get the pager text of a RadGrid to render.
We're not doing anything special, am I not seeing something?

ASPX:
<rad:RadGrid ID="rgBestellingen" runat="server" AllowPaging="True" runat="server" GridLines="None" Width="90%">
    <MasterTableView>
        <PagerStyle Mode="NextPrevAndNumeric" HorizontalAlign="Right"></PagerStyle>
    </MasterTableView>
</rad:RadGrid>

CS:
public partial class Test : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        List<string[]> items = new List<string[]>(50);
        for (int i=0;i<50;i++)
            items.Add(new string[3] { "1", "2", "3" });
 
        rgBestellingen.DataSource = items;
        rgBestellingen.VirtualItemCount = items.Count;
        rgBestellingen.Rebind();
    }
}

But the grid always renders as in the screenshot. Can anyone help?

John
Eyup
Telerik team
 answered on 30 Aug 2012
1 answer
58 views
Hi,

We would like to be able to do the following in our RadEditor:
 - Set ImageManager-ViewPaths to point to a common folder PLUS a unique folder for each customer
 - Set ImageManager-UploadPaths and ImageManager-DeletePaths to ONLY point at the unique folder

This way we can offer the customer a variety of images that we provide, plus any they want to add themselves, but they can only upload or delete from their own unique folder.

I tried the following without success:

protected void edtQuestRichText_PreRender(object sender, EventArgs e)
    {
        RadEditor edtQuestRichText = (sender as RadEditor);
        edtQuestRichText.ImageManager.ViewPaths = new String[] { "~/CommonImages", Session["currentCustomerImagesFolder"].ToString() };
    }

Any suggestions?

Thanks in advance

Jim
Rumen
Telerik team
 answered on 30 Aug 2012
3 answers
96 views
Hi Telerik,
I have a RadGrid, that I have set up to allow me to select rows by clicking on them
<telerik:RadGrid ID="RadGrid1" runat="server"
            AutoGenerateSelectColumn="True"
            CellSpacing="0" GridLines="Horizontal" AutoGenerateColumns="False" OnClientClick="RadGrid1_SelectedIndexChanged">
            <ClientSettings EnablePostBackOnRowClick="true">
            <Selecting AllowRowSelect="true" />
            </ClientSettings>
<MasterTableView>
 
<Columns>
                    <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="TemplateEditColumn">
                        <ItemTemplate>
                            <asp:HyperLink ID="EditLink" runat="server" Text="Edit"></asp:HyperLink>
                        </ItemTemplate>
                        <FooterStyle Width="32px" />
                        <HeaderStyle Width="32px" />
                        <ItemStyle Width="32px" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="UniqueID" HeaderText="Unique ID" UniqueName="UniqueID"  FooterStyle-Width="1px" HeaderStyle-Width="1px" ItemStyle-Width="1px" Visible="false"/>
                    <telerik:GridBoundColumn DataField="Telephone" HeaderText="Telephone" UniqueName="Telephone"  FooterStyle-Width="1px" HeaderStyle-Width="1px" ItemStyle-Width="1px" Visible="false"/>
                    <telerik:GridBoundColumn DataField="StatusID" HeaderText="StatusID" UniqueName="StatusID"  FooterStyle-Width="1px" HeaderStyle-Width="1px" ItemStyle-Width="1px" Visible="false"/>
                    <telerik:GridBoundColumn DataField="Customer" HeaderText="Customer" UniqueName="Customer"  FooterStyle-Width="1px" HeaderStyle-Width="1px" ItemStyle-Width="1px" />
                    <telerik:GridBoundColumn DataField="From" HeaderText="From" UniqueName="From"  FooterStyle-Width="100px" HeaderStyle-Width="100px" ItemStyle-Width="100px" Visible="false"/>
                    <telerik:GridBoundColumn DataField="Subject" HeaderText="Subject" UniqueName="Subject"  FooterStyle-Width="100px" HeaderStyle-Width="100px" ItemStyle-Width="100px" />
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Taken By" UniqueName="Name"  FooterStyle-Width="100px" HeaderStyle-Width="100px" ItemStyle-Width="100px" />
                    <telerik:GridBoundColumn DataField="TakenOn" HeaderText="Taken On" UniqueName="TakenOn"  FooterStyle-Width="100px" HeaderStyle-Width="100px" ItemStyle-Width="100px" />
                    <telerik:GridBoundColumn DataField="Urgent" HeaderText="Urgent" UniqueName="Urgent"  FooterStyle-Width="1px" HeaderStyle-Width="1px" ItemStyle-Width="1px" />
                    <telerik:GridBoundColumn DataField="StatusNew" HeaderText="Status" UniqueName="StatusNew"  FooterStyle-Width="100px" HeaderStyle-Width="100px" ItemStyle-Width="100px" />
</Columns>
 
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="5px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="5px"></HeaderStyle>
</ExpandCollapseColumn>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>

From here I would like to retrieve the uniqueID by using the allowrowselect feature
How would i retrieve the data in the uniqueID column, on my selected row. I'm working in VB, however an answer in c# is fine.

Your help is greatly appreciated!
Ryan


Also when i use

Dim item As GridDataItem = TryCast(RadGrid1.SelectedItems(0), GridDataItem)

I get an argument out of range exception
Saying my index was out of range. must be non-negative and less than the size of the collection

Jayesh Goyani
Top achievements
Rank 2
 answered on 30 Aug 2012
1 answer
72 views
I have a Radgrid with multiselect , but i cant seems to find out how to get the list of column values that are selected.
Can someone help me out ? Ill attached my code.
                    <telerik:RadGrid ID="ClientenGrid" runat="server" AllowMultiRowSelection="True"
                        CellSpacing="0" GridLines="None"
                        OnNeedDataSource="ClientenGrid_NeedDataSource"
                         AllowPaging="True" PageSize="7" DataMember="ID">
                         
                        <ClientSettings>
                            <Selecting AllowRowSelect="True" />
                            <ClientEvents OnCellSelecting="ClientenGrid_OnCellSelecting" />
                        </ClientSettings>
                         
                        <MasterTableView DataMember="ID">
                            <CommandItemSettings ExportToPdfText="Export to PDF" />
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"
                                Visible="True">
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
                                Visible="True">
                            </ExpandCollapseColumn>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                        <FilterMenu EnableImageSprites="False">
                        </FilterMenu>
                    </telerik:RadGrid>
                    <br/>
                    <table style="float: left;">
                        <tr>
                            <td>
                                <asp:Label ID="AantalClienten" runat="server" Text="Aantal cliënten geslectecteerd: "></asp:Label><asp:Label
                                    ID="Aantal" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <table style="float: right;">
                        <tr>
                            <td>
                                <dx:ASPxButton ID="OKBtn" runat="server" Text="Ok" AutoPostBack="False">
                                    <ClientSideEvents Click="function(s, e) {
    ClientenPicker.Hide();
}" />
                                </dx:ASPxButton>
                            </td>
                            <td>
                                <dx:ASPxButton ID="CancelBtn" runat="server" Text="Cancel" AutoPostBack="False">
                                    <ClientSideEvents Click="function(s, e) {
    ClientenPicker.Hide();
}" />
                                </dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
Eyup
Telerik team
 answered on 30 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?