Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
526 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
224 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
119 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
93 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
76 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
1 answer
82 views
Hi,

i am binding the data to Radgrid from Client side but now i need to apply sorting and paging also from Client side only. but i am not able to find the solutions for this, here i got little bit code from below urls,in 1st url they written only events but no description for those events i also required same thing,and second url they wirriten every thing from server side same way i want it in client side
 any body please share the code or idea here that would be great....

here   http://demos.telerik.com/aspnet-ajax/grid/examples/client/clientsideevents/defaultcs.aspx

and bleow  link they have written every thing from server side same way i want it in client side
http://demos.telerik.com/aspnet-ajax/grid/examples/client/caching/defaultcs.aspx

thanks
vijay kumar N
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Sep 2012
0 answers
116 views
I have Button inside a datalist's (datalist1) item Template tag, When this button fires an event, i want to update another datalist (datalist2). datalist2 is inside an Ajax Update Panel.

How can I set up  a UpdatePanel trigger for that button, which is inside datalist1.

Thanks. 
SQazi
Top achievements
Rank 1
 asked on 02 Sep 2012
5 answers
484 views
I can't seem how to figure out how to get correct decimal values in my footer aggregate using Avg as the aggregate method. Here is the column for the aggregate

<telerik:GridBoundColumn Aggregate="Avg" FooterAggregateFormatString="Avg: {0:0.00}" DataFormatString="{0:0}" HeaderText="Age" HeaderStyle-Wrap="false" UniqueName="age" DataField="age" SortExpression="age" Groupable="false"
    <ItemStyle Wrap="false" /> 
</telerik:GridBoundColumn> 

The values that are being averaged are 24, 10, 7, 14. The average comes out as 13.00 when it should come out as 13.75. If I change the FooterAggregateFormatString="Avg: {0:0.00}" to FooterAggregateFormatString="Avg: {0:0}", it rounds down to 13 instead of up to 14.

Can you tell me how to get an accurate average using this method. Thanks.


Jonathan
Top achievements
Rank 1
 answered on 02 Sep 2012
1 answer
204 views
Hi, is it possible to have the treeview similar to what you have for WPF
http://www.telerik.com/community/forums/wpf/treeview/multicolumn-treeview.aspx

I tried using node templates, but the alignment i can't get it right. any tricks/solutions ?



arslanz
Top achievements
Rank 1
 answered on 01 Sep 2012
1 answer
141 views
I am using Radgrid for displaying data & which uses filter columns at the top.
The problem I am having is, some of the column types is "DateTime" & it shows a Calendar control but sometimes the textbox field where DateTime has to be entered or displayed (in case date picked up from Calendar) shows very very small size where users hardly see 1 or 2 digits.

Can somebody throw some light on this? Whats the reason getting the filter box small size for DateTime column? All other filter boxes (with no calendar input) were of normal size at the same time. This happens only for datetime filter on probably specpfic occasions.

Thank you
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?