Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
773 views
hi

i use the following Method for retreiving the fields from the edit form (Which is Auto Generated)

 

void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)  
{  
GridEditFormItem Data = (GridEditFormItem)e.Item;  
Hashtable ht = new Hashtable();  
Data.ExtractValues(ht);  

the problem i am having is that i have several readonly/hidden fields in the grid , but this method does not return those fields , only the ones visible to the user ,

currently there are 5 fields on the screen that the user can edit , and about 3-4 that are non editable , but i need the values from them to be able to do the update on the database.

the above method will only return the visible items.

what method can be used to get the edited items as well as the readonly items from the row etc.

many thanks

Peter.

Vasil
Telerik team
 answered on 28 Dec 2012
9 answers
137 views
Hi 

Creating a new thread for my problem as the earlier thread might have been closed. Please review me and let me know if you come up with any suitable solution for me.
http://www.telerik.com/community/forums/aspnet-ajax/menu/context-menu-on-mobile-devices.aspx#2305882 

Thanks
Ivan Zhekov
Telerik team
 answered on 28 Dec 2012
1 answer
129 views
Hi,
How do we load some specific PDF/doc files from server into FileExplorer and user can download into their machine?

and i could not load files from shared folder on  the server.
my server path is "\\srvname\Z_Drive\docs"
           
string[] paths = new string[] {@"\\srvname\Z_Drive\docs" };   
 RadFileExplorer1.Configuration.ViewPaths = paths;


but nothing show up on the FileExplorer 

here is what i am trying to implement using FileExplorer .
i want to show some list of PDF/DOC/XLS files from server into FileExplorer and user able to download all the files or some of the files into their local machine(no upload, no delete, no view nothing).  Just download the files from the server.

how could achieve this one? (if not possible using FileExplorer please suggest me some other telerik control)

thanks
Vessy
Telerik team
 answered on 28 Dec 2012
8 answers
139 views

We have developed the application on Windows 7 and it comes by default with IE 8. We tested the application first time on IE 7 and all the look and feel changed completely.

 The grid is not being displayed properly, it's all distorted

Please advise asap

erwin
Top achievements
Rank 1
Veteran
Iron
 answered on 28 Dec 2012
5 answers
86 views
Hi
I add a RadSiteMap to page and set it's 'dir' attribute to 'rtl'. it cause 'RadSiteMap_rtl' class gets added to the rendered html.
But it seem that 'Telerik.Web.UI.WebResource.axd?...' do not return any _rtl css classes for RadSiteMap and
.RadSiteMap .rsmColumn {
    floatleft;
} affect all 'ul' tags to float left.It can get fixed by a simple css class ,But I just want you to know and if I'm right make your wonderful package better. Thank you
Ivan Zhekov
Telerik team
 answered on 28 Dec 2012
1 answer
151 views

I have the AutoCompletBox working on a form, but I want to make sure that I'm doing this right and that there isn't a more efficient way to use this control.

It appears that we have to have this code block below in the postback section of the webpage in order for the AutoCompleteBox to work properly.  We are setting the DataSource to a datatable.  This datatable will end up having over 10,000 rows.  Since this has to be in the postback section to work, everytime the form does a post back it has to retrieve all of those rows whether the user is typing in the AutoCompleteBox or not.  And it will retrieve all 10,000 rows and then filter them down with every 3 second pause in the typing of the AutoCompleteBox.

I assume that there is a better way to do this.  I suppose that we could use a webservice, but doesn't it still require all 10,000 rows to be pulled in each time even after the user has typed a few letters?  Am I correct that this tool always wants the full list and then it filters the rows down afterward?  Does it require this list of rows to be retrieved with each postback?

Code block in postback:

ACInSite.DataSource = SQLRowToDt(ConnStr, "Select siteName, siteID From site")
                    ACInSite.DataTextField = "siteName"
                    ACInSite.DataValueField = "siteID"
                    ACInSite.DataBind()


Princy
Top achievements
Rank 2
 answered on 28 Dec 2012
5 answers
683 views
Hi
i have a column called image in my grid and this images i am binding from database and it's displaying in the radgrid but this image is not exporting to excel using Exporttoexcel command name.

what is the code/properties to export grid data with images into excel.



Thanks
Santosh
Shinu
Top achievements
Rank 2
 answered on 28 Dec 2012
1 answer
748 views
Hi,
I have added a dropdown in InsertItemTemplate as below:

<InsertItemTemplate>
<asp:DropDownList ID="ddlGender" runat="server">
 <asp:ListItem Text="Male" Value="Male"></asp:ListItem>
 <asp:ListItem Text="Female" Value="Female"></asp:ListItem>
</asp:DropDownList>
</InsertItemTemplate>

How to add the dropdown in ItemTemplate as well as the EditItemTemplate of the RAD Grid.

How to set the selectedValue in the ItemTemplate and EditItemTemplate?

Thanks
Princy
Top achievements
Rank 2
 answered on 28 Dec 2012
0 answers
56 views
Hi,
I am inserting data in grid but i want to keep grid in edit mode if validation false. For that i am using e.canceled=true in else part.
But after that cancel is not working in one time i have to click it two times. Please help
 
 protected void rgBankAccount_UpdateCommand(object source, GridCommandEventArgs e)
        {
            if (ViewState["CommandName"] != null)
                strCommandName = ViewState["CommandName"].ToString();
            if (e.Item.OwnerTableView.Name == "Master")
            {
                UserControl ParentUserControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);
                TextBox txtAccount = ParentUserControl.FindControl("txtAccount") as TextBox;
               //Label lblError = ParentUserControl.FindControl("lblError") as Label;
                RadDatePicker rdpAsof = ParentUserControl.FindControl("rdpAsof") as RadDatePicker;
                RadNumericTextBox RNTXTAccountNumber = ParentUserControl.FindControl("RNTXTAccountNumber") as RadNumericTextBox;
                RadNumericTextBox RNTXTBeginningBalance = ParentUserControl.FindControl("RNTXTBeginningBalance") as RadNumericTextBox;
                if (strCommandName == "Update")
                {
                    int AccountID = 0;
                    if (ViewState["AccountID"] != null)
                        AccountID = Convert.ToInt32(ViewState["AccountID"].ToString());
                    int AccountCount = objGetData.GetAccountExist(txtAccount.Text, AccountID, GroupID);
                    if (AccountCount == 0)
                    {
                        objUpdateData.UpdateBankAccount(AccountID, rdpAsof.SelectedDate.ToString(), txtAccount.Text,                        RNTXTAccountNumber.Text, Convert.ToDouble(RNTXTBeginningBalance.Text));
                        ViewState["AccountID"] = null;
                        lblError.Visible = false;
                     
                    }
                    else
                    {
                        lblError.Visible = true;
                        lblError.Text = "Please select another name";
                                             e.Canceled = true; *********************************** //// I have used it here
                    }
                }
                else
                {
                    int AccountCount = objGetData.GetAccountExist(txtAccount.Text, 0, GroupID);
                    if (AccountCount == 0)
                    {
                    objAddData.AddBankAccount(rdpAsof.SelectedDate.ToString(), txtAccount.Text, RNTXTAccountNumber.Text, Convert.ToDouble(RNTXTBeginningBalance.Text), GroupID);
                    lblError.Visible = false;
                    }
                    else
                    {
                        lblError.Visible = true;
                        lblError.Text = "Please select another name";
                       e.Canceled = true; *********************************** //// I have used it here
                    }
                }
            }
        }

Thanks
Manish
Manish
Top achievements
Rank 2
 asked on 28 Dec 2012
3 answers
264 views
Hi,

I am adding TreeListSelectColumn programatically:

 

 

Dim selectColmn As New TreeListSelectColumn()

 

selectColmn =

 

New TreeListSelectColumn()

 

selectColmn.HeaderText =

 

"select"

 

selectColmn.UniqueName =

 

"select"

 

RadTreeList1.Columns.Add(selectColmn)


and I have a template column for displaying Invoice # but column value is 'inv_id'

templateColumn =

 

New TreeListTemplateColumn()

 

templateColumn.HeaderText =

 

"Invoice #"

 

 

 

templateColumn.UniqueName = "inv_id"

 

templateColumn.ItemTemplate =

 

New InvTemplColumn(templateColumn.DataField)

 

RadTreeList1.Columns.Add(templateColumn)

After selecting few invoices I want to perform some actions like- export,print, for which I need inv_id of selected rows(inv_id is not visible in treelist), but I am not able to get inv_id of selected rows.Is there any option using which I can bind value to selectcolumn. Please let me know if you have any solution. It's very urgent.
Thanks in advance.

Shinu
Top achievements
Rank 2
 answered on 28 Dec 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?