Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
134 views
I want to handle a click event, and prompt the user with a message saying that a tab is disabled (when it is disabled)...

Doable out of the box, or should I wire up a jQuery click event of my own?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 10 Dec 2010
2 answers
117 views
When I have pagersytle mode set to NextPrevNumericAndAdvanced and I am unable to PageSizeLabelText.
but if I change the mode to NextPrevAndNumeric then my custom PageSizeLabelText takes effect.

Is this a known issue?

This works
<PagerStyle AlwaysVisible="True" PageSizeLabelText="# Per Page" ShowPagerText="True" Mode="NextPrevAndNumeric" />

This does not work
<PagerStyle AlwaysVisible="True" PageSizeLabelText="# Per Page" ShowPagerText="True" Mode="NextPrevNumericAndAdvanced" />

Thanks
smdk
Top achievements
Rank 1
 answered on 10 Dec 2010
1 answer
179 views
Hello,
I want to access GridDropDownColumn of RADGRID using Javascript. I know how to create function on ItemDataBound and access the GridDropDownColumn from there. But my javascript function is being called from the other page. And from the other page I want to access the GridDropDownColumn which has Dropdown in the EDIT mode in the RADGRID.
I want to set the value passed from the other page to set the GridDropDownColumn's dropdown's value.
Please help me fresolving this problem.
Telerik contols have problem accessing from javascript without using the server side code. Please put attention to my POST and reply me ASAP.

Thanks,
Deepa
Iana Tsolova
Telerik team
 answered on 10 Dec 2010
3 answers
146 views
- The RadXmlHttpPanel currently contains a RadTreeView, which has a context menu defined using RadTreeViewContextMenu.
- The EnableClientScriptEvaluation property of RadXmlHttpPanel has been set to true, but the client side event 'OnClientContextMenuItemClicking' of the RadTreeView doesn't seem to fire while 'OnClientContextMenuShowing' event fires.
- Have also tried by setting RegisterWithScriptManager property of RadTreeView to false, this still doesn't help

Snippet:
----------
<telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" runat="server" OnServiceRequest="XmlHttpPanel_ServiceRequest" OnClientResponseEnded="XmlHttpPanel_ResponseEnded"
EnableClientScriptEvaluation="true" RenderMode="Block">
<telerik:RadTreeView ID="treeView1" runat="server" OnNodeDataBound="treeView1_NodeDataBound"
EnableViewState="false" OnClientContextMenuItemClicking="onClientContextMenuItemClicking" OnClientContextMenuShowing=”onClientContextMenuShowing”
Height="99%" RegisterWithScriptManger="false">
<ContextMenus>
<telerik:RadTreeViewContextMenu ID="MainContextMenu" runat="server">
<Items>
<telerik:RadMenuItem Value="menuItem1" Text=" menuItem1" AccessKey="M">
</telerik:RadMenuItem>
<telerik:RadMenuItem Value="menuItem2" Text=" menuItem2" AccessKey="U">
</telerik:RadMenuItem>
</Items>
<CollapseAnimation Type="none" />
</telerik:RadTreeViewContextMenu>
</ContextMenus>
<NodeTemplate>
<asp:CheckBox ID="NodeCheckBox" runat="server"></asp:CheckBox>
<asp:RadioButton ID="NodeRadioButton" runat="server"></asp:RadioButton>
</NodeTemplate>
</telerik:RadTreeView>
</telerik:RadXmlHttpPanel>


Here, onClientContextMenuItemClicking doesn’t get hit, while onClientContextMenuShowing is hit.
Nikolay Tsenkov
Telerik team
 answered on 10 Dec 2010
10 answers
493 views
Hi,

I am binding PIE chart programmatically. Kindly tell me how to change the series item color? And how to change the background color of the chart as white? Because when I set <FillStyle MainColor="#FFFFFF"  /> is not working. 

Regards,
Jones
Vladimir Milev
Telerik team
 answered on 10 Dec 2010
2 answers
289 views
i have a radgrid - i want to access the cell values and put to a textbox. when i click on the row (and fire the ItemCommand event), the cell values are &nbsp;
please help. thanks.

<telerik:RadGrid  ID="rgShip" runat="server" AutoGenerateColumns="false" Skin="Windows7"
 AllowMultiRowSelection="false" OnNeedDataSource="LoadMethods">
      <MasterTableView DataKeyNames="ship_meth_id" >
        <Columns>
            <telerik:GridButtonColumn DataTextField="ship_meth_desc" CommandName="Select" ItemStyle-HorizontalAlign="Left" 
            HeaderText="Shipping Method" UniqueName="shipmethdesc"></telerik:GridButtonColumn>
                                 
        </Columns>
      </MasterTableView>
</telerik:RadGrid>

code behind:
Protected Sub LoadMethods()
        Try
            Dim ds As dataset
            ds = DBSvc.GetDataset, "sp_Ship_Meth_SEL")
  
            Dim dv As DataView
            dv = ds.Tables(0).DefaultView
            dv.Sort = "ship_meth_desc"
  
            rgShip.DataSource = dv
  
  
    Protected Sub rgShip_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgShip.ItemCommand
        Try
            If e.CommandName = "Select" Then
                Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem)
                txtMethod.Text = dataItem("shipmethdesc").Text

TXTMETHOD.TEXT IS &NBSP;  i cannot get the values of the cell text's. the grid displays fine with the correct entries but i cannot get to the cell text to move to a textbox.

MVeranis
Top achievements
Rank 1
 answered on 10 Dec 2010
8 answers
132 views
Hi All,

       How can we use .aspx page (with querystring) inside raddoc?
I am referring foll. example - "http://demos.telerik.com/aspnet-ajax/dock/examples/myportal/defaultcs.aspx"

Please help..Waiting for your reply
Abhi Shinde
Top achievements
Rank 1
 answered on 10 Dec 2010
1 answer
72 views
Want to make sure I understand how this is supposed to work.

When my RadTreeView is not configured to use TSCB, on postback, in the NodeCheck  event handler, e.Node.Checked returns the new value of the check state (true if checked, false otherwise).   If true == e.Node.Checked, I check all child nodes;  if not checked, I uncheck all child nodes.

However, when I enable TSCB, on postback, in the NodeCheck event handler, e.Node.Checked is always true, even if the node was already checked and the event fired because I unchecked it.

What am I missing?

Thanks
Nikolay Tsenkov
Telerik team
 answered on 10 Dec 2010
3 answers
504 views

Hello,

I would like to handle multiselection in RadGrid on server side, but not by storing the selected item during every selection/deselection like in the sample http://www.telerik.com/help/aspnet-ajax/grdpersistselectedrowsonsorting.html, but storing them only during sorting, paging, filtering and some custom commands. I have added a GridClientSelectColumn to my MasterTableView columns, so the graphical handling of the multiselection on one page works fine. But if I would like to get in the OnItemCommand handler of the grid(after paging, sorting or RadGrid.DeleteSelectedCommandName), whether the checkbox of a row(DataItem) is checked or not, I can not get this information. The returned states of the checkboxes are always false. Could you suggest a way, how can I get/set the selected state of a row in this case?

I don’t want to have callbacks by every (de)selection, although no EnablePostBackOnRowClick=true and RadGrid.SelectCommandName/RadGrid.DeselectCommandName or GridTemplateColumn with AutoPostBack=true. I could not solve the problem with GridTemplateColumn and AutoPostBack=false and another problem of this case, that the graphical part of the selection is not automatically solved.

Thanks:

Zoltán

My checkbox is in the third column. I get the state of the checkbox with the following:

bool selected = (dataItem.Cells[2].Controls[0] as CheckBox).Checked;

 

My RadGrid definition:

 

    <telerik:RadGrid ID="RadGridFiltered" runat="server" Skin="WebBlue"

                    AllowSorting="true" AllowPaging="true" AllowMultiRowSelection="true" PageSize = 10

                    OnItemCommand="RadGridFiltered_OnItemCommand" OnPreRender="RadGridFiltered_PreRender">

         <MasterTableView DataKeyNames="RETURN_ID" AutoGenerateColumns="true" CommandItemDisplay="Top" >

                <CommandItemTemplate>

                    <div style="padding: 5px 5px;">

                        <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# RadGridFiltered.EditIndexes.Count == 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" />Kijelölt módosítása</asp:LinkButton>&nbsp;&nbsp;

                    </div>

                </CommandItemTemplate>

                <Columns>                                  

                    <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" />                   

                </Columns>

        </MasterTableView>

        <ClientSettings EnableRowHoverStyle="true">

            <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />

       </ClientSettings>

    </telerik:RadGrid>

 

 

My selection store handler:

    public void RadGridFiltered_OnItemCommand(object sender, GridCommandEventArgs args)
    {
        StoreSelectedItems();

       .........

    }


    const string SessionSelectedItems = "SelectedItems";

    const string KeyName = "RETURN_ID";


    protected void StoreSelectedItems()

    {

        ArrayList selectedItems = (Session[SessionSelectedItems] != null) ? (ArrayList)(Session[SessionSelectedItems]) : new ArrayList();


        foreach (GridDataItem dataItem in RadGridFiltered.MasterTableView.Items)

        {

            bool selected = (dataItem.Cells[2].Controls[0] as CheckBox).Checked;     //  ALWAYS FALSE !!!

            dataItem.Selected = selected;

            string id = dataItem.OwnerTableView.DataKeyValues[dataItem.ItemIndex][KeyName].ToString();

 

            if (selected && !selectedItems.Contains(id))

                selectedItems.Add(id);

            else if (!selected && selectedItems.Contains(id))

                selectedItems.Remove(id);

        }

 

        Session[SessionSelectedItems] = selectedItems;

    }

Tsvetina
Telerik team
 answered on 10 Dec 2010
7 answers
130 views
I am testing Rad Editor on Mac computer and I found I cant upload files to the editor (like images , etc )   , is there problem with using Mac computers


any suggestions to make it work

thanks

Dobromir
Telerik team
 answered on 10 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?