Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
99 views
Hi,
I have used RadAsyncUpload control to upload file But now i want  to show the link of of uploaded file at the time of Editing the record. but unable to thing in that direction from where I can get the file name which I have uploaded as Ihave not stored it in the DB.


Thanks 
Santosh
Top achievements
Rank 1
 asked on 29 Aug 2012
3 answers
169 views
I would like the input to originally appear empty, and only show the mask if the user begins entering a value.  If the user removes the value, the mask will again disappear.

Is this functionality possible with this control?
Vasil
Telerik team
 answered on 29 Aug 2012
1 answer
53 views
Hi all i have written a code to set selected row to edit mode when user selects yes from the radwindow. Here is my code

protected void rdbtnYes_Click(object sender, EventArgs e)
    {
        foreach (GridDataItem item in RadGrid2.MasterTableView.Items)
        {
            if (item.IsInEditMode && item is GridEditableItem)
            {
                if (item.OwnerTableView.IsItemInserted)
                {
                    item.Edit = true;
                }
            }
            //item.Edit = true;
        }
        RadGrid2.Rebind();
        rdwmdw1.Windows[0].VisibleOnPageLoad = false;
    }

This is my code for ItemDatabound event where I will show radiwnodw when necessary

protected void RadGrid2_ItemDataBound(object sender, GridItemEventArgs e)
    {
        int iPagecount = RadGrid2.MasterTableView.CurrentPageIndex;
        if (e.Item is GridDataItem)
        {
            if (iPagecount == 0)
            {
                if (e.Item.ItemIndex != 0)
                {
                    GridDataItem item = (GridDataItem)e.Item;
                    ImageButton imageButton = (ImageButton)item["imgEdit"].Controls[0];
                    imageButton.Visible = false;
                    //imageButton.ImageUrl = "images/MailOk.png";
                }
                else
                {
                    GridDataItem item = (GridDataItem)e.Item;
                    ImageButton imageButton = (ImageButton)item["imgEdit"].Controls[0];
                    imageButton.Visible = true;
                }
            }
            else
            {
                GridDataItem item = (GridDataItem)e.Item;
                ImageButton imageButton = (ImageButton)item["imgEdit"].Controls[0];
                imageButton.Visible = false;
 
            }
        }
 
        if (e.Item is GridEditableItem && e.Item.IsInEditMode)
        {
            GridEditableItem item = e.Item as GridEditableItem;
            mlocal_strStoredProcName = StoredProcNames.Gender_uspGenderGetList;
            oEmployeePersonalData.Select(out mlocal_ds, mlocal_strStoredProcName);
            Label lblStatus = (Label)item.FindControl("lblApprovalStatus1");
            if (lblStatus.Text == "Y")
            {
                if (!e.Item.OwnerTableView.IsItemInserted)
                {
                    Label LBL1 = (Label)item.FindControl("lblMaritalStatus");
                    RadComboBox rdcmbGender = (RadComboBox)item.FindControl("rdcbGender");
                    rdcmbGender.DataSource = mlocal_ds;
                    rdcmbGender.DataTextField = TablesAndColumns.tblGender_GenderDesc;
                    rdcmbGender.DataValueField = TablesAndColumns.tblGender_GenderTypeID;
                    rdcmbGender.SelectedValue = (string)DataBinder.Eval(e.Item.DataItem, "MaritalTypeID").ToString();
                    //rdcmbGender.SelectedValue = LBL1.Text;
                    rdcmbGender.DataBind();
 
                    mlocal_strStoredProcName = USADAO.StoredProcNames.PayFrequency_uspPayFrequencySelect;
                    oEmployee.FedTaxID = Session["FedTaxID"].ToString();
                    oEmployee.Select(out mlocal_ds, mlocal_strStoredProcName);
                    RadComboBox ddlPayFrequencytype = (RadComboBox)item.FindControl("rdcbPayFrequency");
                    ddlPayFrequencytype.DataSource = mlocal_ds;
                    ddlPayFrequencytype.DataTextField = "PayFrequencyDesc";
                    ddlPayFrequencytype.DataValueField = "PayFrequencyType";
                    ddlPayFrequencytype.DataBind();
                    ddlPayFrequencytype.Enabled = false;
                    mlocal_ds.Clear();
                    RadDatePicker radDtStartDate = item.FindControl("radDtStartDate") as RadDatePicker;
                    RadDatePicker radDtEndDate = item.FindControl("radDtEndDate") as RadDatePicker;
 
                    strDate = radDtStartDate.SelectedDate.Value;
                    EndDt = radDtEndDate.SelectedDate.Value;
                }
            }
            else
            {
                e.Item.Edit = false;
                rdwmdw1.Windows[0].VisibleOnPageLoad = true;
            }
        }
    }
Eyup
Telerik team
 answered on 29 Aug 2012
2 answers
79 views
We have been working to integrate with our client's Team Foundation Server source control. I am not familiar with this process but they believed that there should be a way to build the projects for deployment on a build machine without having to own a license themselves since they do not do the development. Is this possible?
Vasil
Telerik team
 answered on 29 Aug 2012
1 answer
83 views
hi,

I have rad time picker, and I have normal link button click event,
in this click event, I am trying to use $find method to select rad time picker, but always find method return null value, here is my test project link

(the link has been removed)
Vasil
Telerik team
 answered on 29 Aug 2012
11 answers
244 views
ASP.Net AJAX: Upload is rapidly becoming obsolete.

I have stopped recommending this product to clients and for our own internal projects.

Unless there are plans (real serious plans) to add Web Farm and Load Balancing support to ASP.Net AJAX: Upload by enabling a database or shared file system location for buffering and progress management, I will be abandoning ASP.Net AJAX: Upload.

I have spoken to a number of other users who are in the same boat.  The long-term problem we face is what to do with our Telerik subscriptions after we have stopped using the primary components. 

Replacing things like drop-downs with Open Source and paying for a one-component (but high quality) Upload widget seems like a better option.

Thoughts?  Does Telerik have enough resources to produce high quality individual control feature sets?  Or is the goal many pretty components with so-so features?
Genady Sergeev
Telerik team
 answered on 29 Aug 2012
1 answer
44 views
Hi,

For convenient, I always add every Bound Column's UniqueName to List of DataKeysNames. I wonder if,  under this scenario, will it ever cause any exception in anyway?
For example, my grid bind to a DataTable with Columns: FirstName, LastName, Age. Then I'll set the DataKeyNames property as FirstName, LastName, Age.

The reason I ask this is because somehow I got some strange exception and I'm not sure if it is related to the fact that I add every Bound Columns to DataKeyNames.

I heard that it may cause exception in the table has two or more identical rows, but I've tested and it didn't cause exception at all.

Thanks

Lamk.
Jayesh Goyani
Top achievements
Rank 2
 answered on 29 Aug 2012
3 answers
152 views

Hi there I'm having trouble with the following:

I have a web form that has a RadTabStrip and when you click on a tab a webusercontrol gets loaded dynamically. Inside this webusercontrol I have a read-only RadGrid. When I click on a row on this RadGrid another webusercontrol (a 2nd) gets loaded dynamically as well. But this time, this 2nd webusercontrol has an editable RadGrid in it.

PROBLEM:
The problem lies in this 2nd webusercontrol

When I click on the Insert linkbutton, the ItemCommand event fires (e.Command = InitInsert). The RadGrid enters into edit-form. Everything's OK. But when I click on the Update linkbutton, the ItemCommand event doesn't fire! (e.Command = PerformInsert).

Please can someone help me with this issue asap? or shed some light?

Felix

Radoslav
Telerik team
 answered on 29 Aug 2012
4 answers
509 views
I want to remove the window icon in my custom skin. I can hide the icon in the style sheet but i also need to left align the title text, but there appears to be a table cell (where the icon was?). Is there a way to do this?
Thein
Top achievements
Rank 1
 answered on 29 Aug 2012
5 answers
212 views
hello Telerik supporter i have a issue i've been a week working on it but i couldn't find a proper solution for it and i hope if you can help me with a proper solution for it i am using RadAsyncUpload to upload my client files and i am using the OnClientValidationFailed to display a message for the user but my problem is the invalid uploaded file is displayed in the <li>..</li> with the message how can prevent this from happening ? in other word how can i display only the message without letting the user see the unvalid file and let him click the remove button please show me some code if available and thank you 
Peter Filipov
Telerik team
 answered on 29 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?