Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
136 views
In Telerik,RadGrid - When we have only 2 records in a single page - why does it show as "2items in 1 pages" -- why cant be "2items in 1 page" ? 
Radoslav
Telerik team
 answered on 03 Sep 2012
2 answers
667 views
In textbox,cant we restrict to type only alphabets - if we give not to enter numbers.

Its been heard that Telerik controls cant work with asp.net ajax validations?
Vasil
Telerik team
 answered on 03 Sep 2012
1 answer
83 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
772 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
73 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
91 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
185 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
511 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
203 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
111 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?