Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
246 views
  • Hello,

    I have posted my issue- when I make use of client side item command in radgrid, the server side item command doesn't retrieve item datakey or the index or the item number as well. I wanted to give file download functionality on grid's specified command. So I wanted AJAX to be disabled at certain control's request...Please review the following conversation I had earlier but didn't got the proper answer.

    It would be great if I can see some specific example as well on this

    Thanks,
    Sunny

    _______________________________________________________________________________
    hello

    I need to disable AJAX on RadGrid's one command for file download purpose and so I, first, made use of client settings and there used onCommand client side where I make AJAX disabled which works fine at its part
    So the flow goes first at client side and first enables/disables AJAX and then goes server side on ItemCommand event where I can not access e.Item's values and even data key value

    Please refer to my code snippet for server side event-ItemCommand:

    GridEditableItem editedItem = e.Item as GridEditableItem; 
    Hashtable newValues = new Hashtable(); 
    editedItem.ExtractValues(newValues); 

    Edit your postReply

  • Telerik Adminadmin's avatar

    Posted on May 24, 2010 (permalink)

    Hi Sunny,

    One possible option in this case would be to not use the onCommand client side handler, but rather use the onrequest start client side event for the ajax control

    http://www.telerik.com/help/aspnet-ajax/ajxonrequeststart.html

    Give this suggestion a try and let me know how it goes.

    Greetings,
    Yavor 
    the Telerik team
  • Could you please give me a proper example of ragdrid having Item Command and onStartRequest integrated?
Eyup
Telerik team
 answered on 03 May 2013
1 answer
96 views
I'm seeing inconsistent results from my radgrid and find myself constantly tweaking the width & height property trying to get it jsut right.
I'm not sure how to solve this problem, but I've attached some screen shots to explain what I mean.

Figure 1 (emptygrid.png)
Shows that the empty radgrid does not fill the panel width and height

Figure 2 (gridoverflow.png)
Shows that a full grid that requires scrolling overflows past the height of the grid for some reason? You'd think it would start scrolling at where the grid's bottom border is but as you can see it looks like it's just overflowing on it's own?
Vasil
Telerik team
 answered on 03 May 2013
1 answer
54 views
HI all so basically the major problems thjat i have with telerik radgrid are:

1 - Cant fill the containerwith the grid .
2 - When i can do something similar with it the filters are cuted.
3 - Cant put a width on the columns(î need radgrid to be created automatic).
4 - some times the lines are not align with the head.
5 - How can i block the heigth?

Can anybody help with this.

Best Regards
 
Eyup
Telerik team
 answered on 03 May 2013
1 answer
113 views
how to disable click event in telerik radlistbox for asp.net and how to remove padding of telerik radlistbox ?
Shinu
Top achievements
Rank 2
 answered on 03 May 2013
4 answers
216 views
Hi,

Firstly there does not appear to be a forum for the RadInputManager specifically - I hope posting here is OK?

It appears to me that the RadInputManager is missing some features/has some issues for me.

 

  1. The RadInputManager needs a MaxLength setting for the TextBoxSetting
    [Actually no it doesn't there is one on the asp:TextBox]
  2. The Input Manager has an attribute of SelectoOnFocus, however none of the options seems to offer an option to work the normal way an asp:TextBox works when it gets the focus. I find that to position the caret at a specific place in the text, I have to click twice, once to get the focus into the box and then again to position the caret.
  3. Whilst the RadDateInput is great, I usually end up using the RadDatePicker since it seems to have more user convenience built in (basically one can use a calendar to pick a date). 

    But sadly the RadInputManager only provides RadDateInput type functionality when DateInputSettings are used  - which reduces the benefits a little.

    Any chance that you could add DatePickerInputSettings?

    I also note that the RadDateInput has a natty feature whereby the elements of the date can be incremented and decremented using the mouse wheel - harldy a major issue, but very nice. The RadInputManager with DateInputSettings dones ot reproduce this effect - which would be nice to make the Input Manager a replacement for the individual controls.
  4. In addition to RegExpTextBoxSetting, would it be possible to get a Masked version?
  5. The various behaviours that can be added provide handy validation - but it seems that there can only be one error message, and that message only appears inside the control (so limited space to explain).

    Would it be possible to arrange that a click on the Error symbol results in a popup box with a longer error message and/or that there were alternative error messages for each error and/or that hovering on the box when it is in the error state changes the tooltip to the error message text so that a longer message can be displayed?
  6. I am in the habit of trying to make some elements of some of my forms grow when the available window space grows. It is possible to build a form wiht an outermost splitter which is 100% x 100% (and hence changes shape with the window), and then within this using judicious tables and so on items like text boxes can be arranged to grow horizontally, an multi-line text boxes grow vertically so that what window space is available gets used. However adding a form decorator to the form mucks all this up - the relevant controls no longer grow.

    This sort of issue arises in several places with the Telerik controls (the ajaxified grid is one (which has a work around), the directory browser is another (which has no offered workaround). So again I am asking whether it would be possible to fit into your schedule some modifications to the controls to sort these out, I am pretty sure that in many cases it is just a matter of allowing the sizing to flow through the various divs and so on. You have made all the effort to allow a Splitter to fill the area of the window, then the Panes can shrink and grow as either the window is re-sized or the split bars are moved about. To then be able to slip say a multi-line text box into one of the panes and have it shrink and grow is excellent - and then right at the end, the form decorator undoes all that excellent work.

    Yes - one can exclude the specific text box from decoration - but that is a nuisance and the text box no longer style with the rest fothe form which undermines the, again, excellent styling introduced by the decorator.
Vasil
Telerik team
 answered on 03 May 2013
8 answers
253 views
I am wondering if there is a way to display recurrence and reminder icons when using custom Appointment Templates? Thanks
Plamen
Telerik team
 answered on 03 May 2013
2 answers
215 views

I have try group telerik grid using drop down list

grouping method source code is bellow

 try
        {

            this.grd.MasterTableView.GroupByExpressions.Clear();//clear all group expressions
            grd.MasterTableView.GroupsDefaultExpanded = false;

            GridGroupByExpression expression = new GridGroupByExpression();
            GridGroupByField gridGroupByField = new GridGroupByField();
            gridGroupByField = new GridGroupByField();
            if (cboGroupByItem1.SelectedValue != "0")
            {
                gridGroupByField.FieldName = cboGroupByItem1.SelectedValue;
                gridGroupByField.HeaderText = cboGroupByItem1.SelectedItem.Text;
                expression.SelectFields.Add(gridGroupByField);
            }

            if (cboGroupByItem2.SelectedValue != "0")
            {
                gridGroupByField.FieldName = cboGroupByItem2.SelectedValue;
                gridGroupByField.HeaderText = cboGroupByItem2.SelectedItem.Text;
                expression.SelectFields.Add(gridGroupByField);
            }

            grd.MasterTableView.GroupByExpressions.Add(expression);


        }
        catch (Exception ex)
        {
            label1.Text = ex.ToString();
        }
        finally
        {
            grd.Rebind();
        }

when grid rebind method it will generate bellow error

An error occured adding a relation to DataRelationCollection. Please, make sure you have configured the expressions properly - both GroupByFields and SelectFields are required!

How i solve this question please help me

Wella
Top achievements
Rank 1
 answered on 03 May 2013
5 answers
129 views
I need to group rad grid according  to asp drop down list change event according to drop down change
Princy
Top achievements
Rank 2
 answered on 03 May 2013
1 answer
143 views
Hi,
I have used parent child hierarchical Telerik Grid with client side binding. My requirement is rad grid without paging and page size should be 365. But it is accepting only 110. If we give more than 110, it's throwing Exception as "Exception of type 'System.OutOfMemoryException'.

Below is the code 


<telerik:RadGrid ID="grdDepositReconciliation" runat="server" Skin="eMod" Width="700px"
    GridLines="None" AllowFilteringByColumn="false" AllowCustomPaging="false" PageSize="110"
    EnableEmbeddedSkins="false" AllowPaging="false" AllowSorting="false">
    <ClientSettings>
        <ClientEvents OnDataBinding="beforeLoad" OnDataBound="afterLoad" OnDataBindingFailed="LoadFailed" OnRowDataBound="grdDepositReconciliation_RowDataBound"
            OnCommand="grdDepositReconciliation_Command" OnHierarchyExpanding="grdDepositReconciliation_HierarchyExpanding"
            OnHierarchyCollapsing="grdDepositReconciliation_HierarchyCollapsing"/>
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
    </ClientSettings>
    <MasterTableView AutoGenerateColumns="false" TableLayout="Fixed" CssClass="wd" Width="100%" HierarchyLoadMode="Client" ClientDataKeyNames="TransactionDate, AMCount, VMCount, CKCount,AMTotalCount,VMTotalCount,CKTotalCount">
        <Columns>
            <telerik:GridBoundColumn DataField="TransactionDate" HeaderText="Date" UniqueName="TransactionDate" HeaderStyle-Width="60"
                ShowFilterIcon="false" AllowFiltering="false" DataType="System.DateTime"/>
            <telerik:GridTemplateColumn  DataField="pAMEX" HeaderText="Amex" HeaderStyle-HorizontalAlign="Center"
                AllowFiltering="false" HeaderStyle-Width="60">
                <ItemTemplate>
                    <asp:CheckBox ID="chkpAMEX" runat="server"/>
                    <%--<input type="checkbox" id="chkpAMEX" runat="server"/>--%>
                    <asp:label id="lblpAMEX" runat="server"/>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn  DataField="pVISAMASTER" HeaderText="Visa/MC" HeaderStyle-HorizontalAlign="Center"
                AllowFiltering="false" HeaderStyle-Width="60">
                <ItemTemplate>
                    <asp:CheckBox ID="chkpVISAMASTER" runat="server"/>
                    <%--<input type="checkbox" id="chkpVISAMASTER" />--%>
                    <asp:label id="lblpVISAMASTER" runat="server"/>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn  DataField="pCHECK" HeaderText="Checks" HeaderStyle-HorizontalAlign="Center"
                AllowFiltering="false" HeaderStyle-Width="60">
                <ItemTemplate>
                    <asp:CheckBox ID="chkpCHECK" runat="server" />
                    <asp:label id="lblpCHECK" runat="server"/>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <%--<telerik:GridBoundColumn DataField="DepositReconciliationId" HeaderText="DepositReconciliationId" Visible="false" />--%>
             
        </Columns>  
        <NestedViewTemplate>
             <telerik:RadGrid ID="grdDepositReconciliationDetails" runat="server" GridLines="None"
                Skin="eMod" EnableEmbeddedSkins="false" AllowSorting="false" PageSize="50" AutoGenerateColumns="false" Width="650px"
                CellSpacing="0">
                <ClientSettings>
                    <ClientEvents OnCommand="grdDepositReconciliationDetails_Command" OnRowDataBound="grdDepositReconciliationDetails_RowDataBound"
                         OnDataBinding="beforeLoad" OnDataBound="afterLoad" OnDataBindingFailed="LoadFailed" />
                </ClientSettings>
                <MasterTableView Width="650px" HierarchyLoadMode="Client" ShowHeader="false" ClientDataKeyNames= "AMTransactionID,VMTransactionID,CKTransactionID, AMDRID, VMDRID, CKDRID">                               
                    <Columns>
                        <telerik:GridBoundColumn DataField="PaymentDate" HeaderText="Date" HeaderStyle-Width="70"/>
                        <%--<telerik:GridBoundColumn DataField="AM" HeaderText="AMEX" />--%>
 
                        <telerik:GridTemplateColumn  DataField="cAMEX" HeaderText="AMEX" HeaderStyle-HorizontalAlign="Center"
                        AllowFiltering="false" HeaderStyle-Width="70">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkcAMEX" runat="server" />
                                <asp:label id="lblcAMEX" runat="server"/>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn  DataField="cVISAMASTER" HeaderText="Visa/MC" HeaderStyle-HorizontalAlign="Center"
                        AllowFiltering="false" HeaderStyle-Width="70">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkcVISAMASTER" runat="server" />
                                <asp:label id="lblcVISAMASTER" runat="server"/>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn  DataField="cCHECK" HeaderText="Checks" HeaderStyle-HorizontalAlign="Center"
                        AllowFiltering="false" HeaderStyle-Width="72">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkcCHECK" runat="server" />
                                <asp:label id="lblcCHECK" runat="server"/>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </NestedViewTemplate>
        <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" ShowExportToExcelButton="false" />
    </MasterTableView>
    <ClientSettings AllowDragToGroup="true" Scrolling-AllowScroll="true" Scrolling-UseStaticHeaders="true" />
</telerik:RadGrid>

Thanks in advance.
Eyup
Telerik team
 answered on 03 May 2013
4 answers
280 views
I have a gridview with a command field. at selected index change I set the gridviews row content to some textboxes.
I want to open a radwindow with selected indexchanged of gridview but I couldn't do that.
my code for radwindow at aspx file is:
<telerik:RadWindow ID="RadWindow1" runat="server" Width="800px" Height="600px" Modal="true"  OpenerElementID="showDialog" OnClientClose="clientClose" OnClientShow="clientShow" ReloadOnShow="true">
       
      <ContentTemplate>
      <asp:TextBox ID="TxtTitle" runat="server"></asp:TextBox>
      <br />
      <asp:TextBox ID="TxtDetail" runat="server"></asp:TextBox>
      <br />
      <asp:TextBox ID="TxtDate" runat="server"></asp:TextBox>
      <br />
       
 
      <telerik:RadEditor ID="RadEditor1" runat="server"  ImageManager-ViewPaths="~/Images"
  ImageManager-UploadPaths="~/Images"
  ImageManager-DeletePaths="~/Images">
      </telerik:RadEditor>
 
      <br />
 
 
      <asp:FileUpload ID="FileUpload1" runat="server" />
      <br />
      <asp:CheckBox ID="ChkActive" runat="server" />
      <br />
      <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="save" />
      <br />
 
      </ContentTemplate>
      </telerik:RadWindow>
and the code behind for selectedindexchanged:
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
   {
        
       int index = GridView1.SelectedIndex;
       TextBox txttitle = (TextBox)(GridView1.Rows[index].FindControl("TxtTitle"));
       TxtTitle.Text = txttitle.Text;
 
       TextBox tx = (TextBox)(GridView1.Rows[index].FindControl("TxtDetail"));
       TxtDetail.Text = tx.Text;
       TextBox descttext = (TextBox)(GridView1.Rows[index].FindControl("TxtDesc"));
       RadEditor1.Content = descttext.Text;
       CheckBox chk = ((CheckBox)GridView1.Rows[index].FindControl("Chactive"));
       ChkActive.Checked = chk.Checked;
 
   }
Somy
Top achievements
Rank 1
 answered on 03 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?