Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
I have a question, of how to save multiple rows in a RadGrid.
Example.
This loops through the entire RadGrid editable mode and assigned to all fields.

foreach (GridDataItem item in RadGrid1.Items)
        {
            item.Edit = true;
        }
        RadGrid1.MasterTableView.Rebind();  

I want to achieve something similar but obviously making a save in the datatable I give it as source.


Thanks

Jayesh Goyani
Top achievements
Rank 2
 answered on 20 Sep 2012
3 answers
109 views
Hi,

I have rad grid in my page and have running functionality of export to pdf also. Now I want to email that exported pdf to multiple persons, from code behind. I have context menu in grid and with option "Send Email" so when user click this option email should be generated automatically so that I can send it using SMTP.

Can you please help me in this? It's urgent for me.

Thanks,
Vatsal
Jayesh Goyani
Top achievements
Rank 2
 answered on 20 Sep 2012
1 answer
115 views
Hi there,

I have been trying different Telerik controls to get the functionality that I want but I've not been successful in getting it.  The functionality I want is pretty single.  I have a list of items (in a vertical list).  The list contains text, dropdowns, buttons, etc.  I would like the user to be able to drag and drop to re-order and list, and also add/remove rows.

The closet I've gotten was using RadDocks in a RadDockZone, however, I ran into a problem where I was not allowed to have a repeater inside the RadDockZone to repeat through my list and create RadDocks based on a set template.

I've tried a RadGrid, although I got the drag and drop to work, I did not want a grid like display.  It is possible to 

1) only have 1 column
2) customize that column depending on a template

Thanks
John
Eyup
Telerik team
 answered on 20 Sep 2012
3 answers
86 views
Is it possible to have a fixed row in the radgrid? That is, I'd liked a particular row to always be the first row in the grid, regardless of sorting criteria, etc.
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 20 Sep 2012
9 answers
195 views
Hi.

This morning I migrated from the old 2010 Q1 version of ASP.NET AJAX to the just released 2012 Q2. All seems it's working fine, faster I think, but I have the following visualization trouble with RadDatePicker using the same stylesheets as 2010 Q1, I don't change anything.

I don't use embedded stylesheets, it was the same stylesheets unembedder because we'd like to change some things, but in other controls.

Regards.

Galin
Telerik team
 answered on 20 Sep 2012
2 answers
57 views
Here I am attaching the way and final out while we drag an drop the image button inside teaxtbox.
Slav
Telerik team
 answered on 20 Sep 2012
10 answers
192 views
Hi,

I'm trying to do footer validation where if the footer values in column a, b and c does not equal d, then update fails. Can you take a look at my code. Thanks. 

protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)
   {
       GridEditableItem editItem = (GridEditableItem)e.Item;
       GridFooterItem footerItem = RadGrid1.MasterTableView.GetItems(GridItemType.Footer)[0] as GridFooterItem;
       string column1 = footerItem["WEEKENDS_MTD"].Text;
       string column2 = footerItem["HOLIDAYS_MTD"].Text;
       string column3 = footerItem["BUSINESS_DAYS_MTD"].Text;
       string total = footerItem["CALENDAR_DAYS_MTD"].Text;
 
       int footervalue1;
       int footervalue2;
       int footervalue3;
       int footervalue4;
       int.TryParse(column1, out footervalue1);
       int.TryParse(column2, out footervalue2);
       int.TryParse(column3, out footervalue3);
       int.TryParse(total, out footervalue4);
 
 
 
 
 
       if (footervalue1 + footervalue2 + footervalue3 != footervalue4)
       {
           e.Canceled = true; // Cancel Update
           Response.Write("Cancelled");
            
       }
 
      
   }
Elton
Top achievements
Rank 1
 answered on 20 Sep 2012
1 answer
42 views
Hi,
Is it possible to set the appointment End time depending on the selected value of an attribute (which is a combobox)? Can this be acheived in codebehind or javascript?
Thanks.
Ivana
Telerik team
 answered on 20 Sep 2012
4 answers
115 views
I have a custom ascx control that has a radComboBox. This is my code for the combo box and javascript code:
<telerik:RadComboBox ID="radWQStatus" runat="server" AllowCustomText="false" Width="300px"
    DropDownWidth="350px" MaxHeight="300px" NoWrap="true" HighlightTemplatedItems="true"
    ExpandDirection="Down" ExpandDelay="0" CollapseDelay="0" CheckBoxes="true" EnableCheckAllItemsCheckBox="false"
    AutoPostBack="true" OnClientDropDownClosing="OnClientDropDownClosingWQS">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="Value1" Value="1" />
        <telerik:RadComboBoxItem runat="server" Text="Value2" Value="2" />
        <telerik:RadComboBoxItem runat="server" Text="Value3" Value="3" />
    </Items>
</telerik:RadComboBox>


<script type="text/javascript" language="javascript">
    function OnClientDropDownClosingWQS(sender, args)
        {
            if (args.get_domEvent().target == sender.get_imageDomElement()) {
                args.set_cancel(false);
            }
            else {
                args.set_cancel(true);
            }
        }
</script>

The problem I am having is the combo box keeps closing after each single selection. If I place this same code on a aspx page it works as expected, I can check multiple items before the box closes. What do I have to do to keep the combo box from closing when used in an ascx control place on an aspx page.
dhuss
Top achievements
Rank 1
 answered on 20 Sep 2012
5 answers
159 views
We use .Net2.0 and the latest version of RadControls for ASP.NET AJAX. If there is only one combobox on the page then a selection of another option from this combobox causes a javascript error
document.createEventObject is not a function 
set_text()("1 Year")Telerik....a38ec41c0 (line 4317) 
_select()(Object rawEvent=Event click altKey=false button=0)Telerik....a38ec41c0 (line 5161) 
_performSelect()(Object _element=li.rcbItem _parent=Object _text=1 Year, Object rawEvent=Event click altKey=false button=0)Telerik....a38ec41c0 (line 4279) 
_onDropDownClick()(Object rawEvent=Event click altKey=false button=0)Telerik....a38ec41c0 (line 3908) 
(?)()()ScriptRe...066005795 (line 50) 
browserHandler()(click clientX=25, clientY=-103)ScriptRe...066005795 (line 3034) 
[Break on this error] var _99=document.createEventObject(); 
and as a result the value is not changed on server. If there are more than one combobox then at first following js-error occurs
Sys.ArgumentException: Value must not be null for Controls and Behaviors. Parameter name: element 
_getAbbrMonthIndex()("")Telerik....a38ec41c0 (line 799) 
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2008.1.619.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a16ee7c61-0c72-4885-ba3b-3c21a3307fa9%3a393f5085%3a9703c1f0%3aa3f85c94%3a665c7bcf%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3a9ea3f0e2%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3ae2e86ef9%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3ac7c04611%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3a1df13a87%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3acd120801%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3ac4c00916%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3a3858419b%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3a96741c43%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3a38ec41c0()()Telerik....a38ec41c0 (line 5803) 
[Break on this error] this._upperAbbrMonths=this._toUpperArray...s.dateTimeFormat.AbbreviatedMonthNames); 
, because of this error all but one comboboxes are disabled and the one working combobox causes the previous error.

Nencho
Telerik team
 answered on 20 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?