Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
501 views
Hi,

I am using Gridclientselectcoiumn in my radgrid. I have a label in my commanditemtemplate.  When user checks checkbox i just want to show number of checkboxes selected in that label. Suppose If user selects 4 checkboxes i just want to show like Selected Records: 4.  Here is my code for that......

Grid client select column....
<telerik:GridClientSelectColumn UniqueName="ClientSelectColumn"  HeaderStyle-Width="3%"  ItemStyle-Width="3%">
 <HeaderStyle Width="3%"></HeaderStyle>
 <ItemStyle Width="3%"></ItemStyle>
</telerik:GridClientSelectColumn>

commanditemtemplate

<CommandItemTemplate>
   <td align="right" style="width: 20%">
Selected Records:<asp:Label ID="lblselTsks" Width="20px" Font-Size="10pt" Font-Bold="true" runat="server" Text="0"></asp:Label>
   </td>
</CommandItemTemplate>


codebehind and JS

protected void rg200_DataBound(object sender, EventArgs e)
    {
        foreach (GridDataItem item in rg200.MasterTableView.Items)
        {
            CheckBox chkBoxOne = (CheckBox)item.FindControl("ClientSelectColumn");
            if (chkBoxOne != null)
                chkBoxOne.Attributes.Add("onclick", "javascript:return SelectOne('" + chkBoxOne.ClientID + "')");
        }
    }
 
 
JS
 
 
function SelectOne(id) {
                var count = 0;
                count = Number(document.getElementById('ctl00_PagePlaceholder_rg200_ctl00_ctl02_ctl00_lblselTsks').innerHTML);
                if (document.getElementById(id).checked == true) {
                    if (!document.getElementById(id).disabled) {
                        count = count + 1;
                    }
                }
                else if (document.getElementById(id).checked == false) {
                    if (!document.getElementById(id).disabled) {
                        count = count - 1;
                    }
                }
                document.getElementById('ctl00_PagePlaceholder_rg200_ctl00_ctl02_ctl00_lblselTsks').innerHTML = count;
            }


The problem is when i select checkbox  like 1 or more, the selected checkboxes count is not displaying. Its always showing Selected Records: 0.( See the image). Where am i doing wrong? How to resolve this issue. Any help should be appreciated.
Princy
Top achievements
Rank 2
 answered on 14 Jul 2010
1 answer
139 views
Hi, I have a grid wrapped with Ajax Panel.
The grid has links to open radwindow.

After open and close a few radwindows, I get JS error as screen cap.
http://img534.imageshack.us/img534/8503/permissiondeniedtelerik.png

What could be the cause?

Thanks.
Georgi Tunev
Telerik team
 answered on 14 Jul 2010
7 answers
317 views
Hi,

I have a Radgrid which has an edit button. On click this opens a RadWindow which has a seperate aspx page.
To open this RadWindow, I have been the below mentioned code to show data in the RadWindow:

function ShowEditForm(id, rowIndex) {
var grid = $find("<%= grdStoryList.ClientID %>");

var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
grid.get_masterTableView().selectItem(rowControl, true);

window.radopen("StoryObservedTypePopup.aspx?Id=" + id, "UserListDialog");
return false;
}

I would like like multiple query string via:
window.radopen("StoryObservedTypePopup.aspx?Id=" + id, "UserListDialog");

These new query string parameters are columns in the radgrid itself.

Can any one please suggest?

Thanks

Georgi Tunev
Telerik team
 answered on 14 Jul 2010
1 answer
209 views
Hi,

 Is there any way to hide the status bar message (not status bar) that will be showing the address of the page in RadWindow.
 
I cam to know there is an option to hide the status bar itself, but how can we manipulate the messages inside that ? 


Thank in Adv.
-- Omm --
Georgi Tunev
Telerik team
 answered on 14 Jul 2010
3 answers
164 views
Hi,

I am using 2 RadGrids (master/detail) and RadAjaxManager to Ajaxify master detail loading and editing.

To edit the rows in the detail grid I use template columns with asp:Link controls for three different scenarios.

1> Edit (this opens a RadWindow with an edit form)
2> Deactivate/Activate (this opens a different RadWindow for confirmation) - Status column
3> Show/Hide (this also opens a RadWindow for confirmation) - Status column

There is also a Deactivate/Reactivate all link in the filteritem for a Status column (along with a RadComboBox for filtering).

All this functionality is working as desired with the details grid updated using Ajax on row select from the master grid and the filter combobox and various other buttons on the page updating the details grid correctly.

On closing the various Edit/Confirm windows I use a client-side AjaxRequest("Rebind") and handle the ajax request server-side with the ajax manager's OnAjaxRequest event handler (as demonstrated in various Telerik demos).

My one remaining issue is due to the fact that when returning from the "Edit" window I need to update the master grid as well as the detail grid to update various aggregate columns for the master grid. For all the "Confirm" windows, only the details grid needs to be updated.

<telerik:RadAjaxManager runat="server" ID="ramResourceManagement" OnAjaxRequest="ramResourceManagement_AjaxRequest">
    <AjaxSettings>
...
        <telerik:AjaxSetting AjaxControlID="ramResourceManagement">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="gridUnits" LoadingPanelID="ralpResourceManager" />
                <telerik:AjaxUpdatedControl ControlID="gridResources" LoadingPanelID="ralpResourceManager" />
                <telerik:AjaxUpdatedControl ControlID="headerPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
...
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="ralpResourceManager" runat="server" EnableEmbeddedSkins="false" />

Using the above code for the radajaxmanager settings I update the controls correctly when a detail row (resource) is edited. But, of course, when a resource is deactivated or hidden etc. the master (unit) grid is also retrieved with the Ajax update (not updated but still adding large size to the response)

 I have used RadAjaxWithTarget to update only the resource grid from other controls on the page (asp buttons with onclientclick and onclick event handlers and relevant radajaxmanager settings for the button controls) but when attempting to do this on return from window close I am unsure of what target to use or what arguments.

I attempted to add a "refresh grid" button with Visible="false" and use this as the target then perform the grid refresh in it's onclick event handler as follows:

Script called on window close:
function RefreshResourceGrid()
{               
    $find("<%=ramResourceManagement.ClientID %>").ajaxRequestWithTarget("<%= btn_refreshGrid.UniqueID %>", "");
}

Relevant RadAjaxManager Settings and button control:
        <telerik:AjaxSetting AjaxControlID="btn_refreshGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="gridResources" LoadingPanelID="ralpResourceManager" />
            </UpdatedControls>
        </telerik:AjaxSetting>
 
<asp:Button runat="server" ID="btn_refreshGrid" OnClick="btn_refreshGrid_Click" CausesValidation="false" Visible="false"/>

Code behind:
protected void btn_refreshGrid_Click(object sender, EventArgs e)
{
    BindResources();
}

Unfortunately this causes a full postback despite the ajax settings suggesting an ajax update on only the resources grid should be performed.

Any ideas?

Jason
Top achievements
Rank 1
 answered on 14 Jul 2010
2 answers
170 views
Hi Telerik,

Am using the old Q42006 controls. Am facing the issue that the alignment o ftext in the telerik TreeView Controls.

The text always aligning at top, Am binding image and text. so the text always align at top it looks not nice. could you please let me know where to set the property of alignment node text to middle?

Please help me.....
Padmaja
Top achievements
Rank 1
 answered on 14 Jul 2010
2 answers
117 views
Hi,

I have Implemented RAD Menu Control With Multi Column Fly out. It is working with Firefox and Chrome but it s not Working within IE(7.0).
I have also notice that it working fine in case of .ASPX page but it s only issue with .ASCX

Can any one help me with Such Issue ?
It s a static control so there s no code behind associated with that user control.

Thanks,
Keyur
Keyur
Top achievements
Rank 1
 answered on 13 Jul 2010
1 answer
116 views
Is there a way to have a scheduler open with the Advanced Form visible? 

This is the situation I am actually trying to solve:

Some appointments may be "locked" when a user attempts to edit it. I want to prompt them to unlock the event, then send them on to edit it. I can do this either with a modal window (which I have not had time to look into), or by sending them to an intermediary page. I have implemented the intermediary page without a problem, but the only thing I can do right now is redirect them to the full calendar. Is there a way to redirect them such that the advanced form will open with the proper appointment open?
lordscarlet
Top achievements
Rank 1
 answered on 13 Jul 2010
2 answers
106 views
Hi

I have a problem how can i select multiples rows without ctlr+click, i need to select distint rows with a simple click, without

GridClientSelectColumn

RRORRO
Top achievements
Rank 1
 answered on 13 Jul 2010
1 answer
310 views
For the RadComboBox, is there any way to control the delay before a callback is made?  For slow typists, there could easily be a callback between each letter, which is causing quite a bit of thrash in the display of the results, especially if a spelling error is made and corrected.
Kalina
Telerik team
 answered on 13 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?