Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
78 views
I have replaced Telerik 2009 to 2011 version in my project. I am using RadGrid control instead of Telerik 2009 gridview control. I am binding data to the grid but RadGrid NeedDataSource event is not firing in page load. What it could be the reason why NeedDataSource event is not firing? Please provide me the solution ASAS.

Thanks in advance.
Marin
Telerik team
 answered on 03 Sep 2012
6 answers
755 views
Hi,

Is there a way to specify the maximum length (number of digits) for the RadNumericTextBox?

Thanks
Tarun Singla
Vasil
Telerik team
 answered on 03 Sep 2012
1 answer
68 views
Hello,

I use the AdvancedInsertTemplate ondouble click of an emppty slot . I want my custom control present in the
<AdvancedInsertTemplate> to be displayed but it does not The AdvancedEditTemplate however works fine .
I have set the AdvancedForm Modal to true .

How do i directly open my control in the AdvancedInsertTemplate on double click of an empty slot ?

Thanks & Regards,
Francis P.
Princy
Top achievements
Rank 2
 answered on 03 Sep 2012
2 answers
86 views
HI ,

I am using the Rad grid which is bind dynamically through code from code behind.

1.CRUD operation are performed on UpdateCommand,InsertCommand and DeleteCommand event.

2. I have another event lie need_datasource and itemdatabound event.

4.Paging is true.

When I click on Edit button on first page it works correctly. But when I go to Next or any other page apart from 1 page. it open the wrong record for editing. e.g I click on 2nd record on page 2 than it open the other recrord to edit.

Flow of event.
Click on Edit -> fires Need_Datasource event (which don't have RadGrid.Databind()).-> itemDataBound event is called -> it fetching the wrong datakey here. Below is the code of itemdatabound

if ((e.Item is GridEditableItem || e.Item is GridDataItem) && e.Item.IsInEditMode)
            {
                clsPEstimateLineItem objEstimatelineItem = new clsPEstimateLineItem();
                GridEditableItem editForm = (GridEditableItem)e.Item;
               
                objEstimatelineItem.LineItemId = clsFilter.IntNullFilter(item.GetDataKeyValue("LineItemId").ToString());
                //objEstimatelineItem.LineItemId = clsFilter.IntNullFilter(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["LineItemId"]);
                DataSet dslineItem = objBEstimateLineItem.GetEstimateLineItemById(objEstimatelineItem);

               RadTextBox txtDescription = editForm.FindControl("txtDescription") as RadTextBox;
                string Description = dslineItem.Tables[0].Rows[0].Field<string>("Description");
                txtDescription.Text = Description.ToString();
       }

Thanks
Ajay
Jayesh Goyani
Top achievements
Rank 2
 answered on 03 Sep 2012
1 answer
184 views
i'm doing a project where i can search a node withing my treeView my code so far is this:

function expandAllAncestors(node) {
            if (node.get_expanded() !== true)
                node.expand();
 
            if (node.get_level() != 0) {
                expandAllAncestors(node.get_parent());
            }
        }
 
        function SearchClick() {
 
            var search = $get("<%= ApplicationSearchResult.ClientID %>").value;
            var treeView = $find("<%= MainTree.ClientID %>");
            var nodes = treeView.get_allNodes();
            var NextNode = document.getElementById("<%=NextNode.ClientID %>");
            NextNode.style.display = "block";
            for (var i = 0; i < nodes.length; i++) {
                var node = nodes[i];
                if (node.get_text() == search) {
                    node.set_selected(true);
                    expandAllAncestors(node);
                    return;
                }
            }
 
         }
I need a simple code so when i search the tree for the second time all the opened nodes should be collapsed and only the searched one is expended
Princy
Top achievements
Rank 2
 answered on 03 Sep 2012
4 answers
505 views
Hi,

In UI,
I have 
   1. RadBinary image control to show Image from database
   2. Button control to save Image


I have two events
         1. Page_load()
         2. btnSave_Click()

In Page_Load()
         1. I'm getting Byte value from database and assigning it to RadBinaryImage.DataValue
In btnSave_Click
        1. I'm getting DataValue from RadBinaryImage control (assigned during page_load event)
         2. Save it into database
        3. But DataValue is null while retrieving from RadBinaryImage.


Code:
Page_Load
{
     if(!PostBack)
    {
        //Passing resoruceId and get resource object which contains Image value
         eFMResource resource = oAdminBase.GetResource(eResource.ResourceId);
        radBinaryImage.DataValue= resource.ImageValue;
    }
}

btnSave_Click
{
     eFMResource resource = new eFMResource ();
    //Getting DataValue from radBinaryImage and assign it to the object to save into db.
     resource.ImageValue = radBinaryImage.DataValue;
     oAdminBase.SaveResource(resource);
}


Thanks,
Sabarish.


Andrey
Telerik team
 answered on 03 Sep 2012
1 answer
195 views
I have set my Calendar control to EnableMultiSelect, but it will only allow me to select one date.  The calendar control closes on date selection, so how do you select multiple dates?
<telerik:RadDateTimePicker Skin="WebBlue" ID="txtStartDate" runat="server"  BackColor="#f7f8f9" TabIndex="2">
          <TimeView ID="TimeView1" Skin="WebBlue" runat="server" HeaderText="Select Time" />
           <Calendar ID="Calendar1" Skin="WebBlue" runat="server" EnableMultiSelect="true" RangeSelectionMode="None" />
</telerik:RadDateTimePicker>

Dan
Princy
Top achievements
Rank 2
 answered on 03 Sep 2012
1 answer
104 views
Hi,

I have a dynamically created RadComboBox and attached the selectedIndexChanged event of that RadComboBox. But the selectedIndexChanged event of RadComboBox is not firing. Why it is not firing?

Waiting for your response.
Princy
Top achievements
Rank 2
 answered on 03 Sep 2012
2 answers
84 views
I have created a report that returns the following data from a transaction table, which is great.

Yard ID        Stock Code                Qty            Date
3                  001202                       60             15/08/2012

The problem is I dont want to show the Yard ID, but the yardName, which is stored in another table.
Is there a way to link the two tables via the yard ID

many thanks in advance
Grigore Dolghin
Top achievements
Rank 1
 answered on 02 Sep 2012
1 answer
68 views
Hi,

I'm doing a simple program that will automatically fire a search when i picked a date. i solved that by using RadDatePicker Control with an autopostback property. The problem is the other control i used have a causevalidation = "true", which doesn't trigger the postback if there is a validation error. is there any work around for this using raddatepicker???

Thank you.
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?