Welcome Guest Search | Active Topics | Sign In | Register

Grid In Callback Running Mode Options
Cole
Posted: Monday, May 2, 2011 9:46:49 AM
Rank: Newbie
Groups: Member

Joined: 1/14/2011
Posts: 6
I still seem to be having some intermittent issues with the Grid. When it is in Client Running Mode, it seems to work pretty well. I do not like all of the items on the grid, however, and make the user scroll. Even though it can handle the 775 items, I do not like it to scroll.

So, I changed to the Callback Running Mode. Seems the assignment of the RecordCount to the Grid does not work. It will not allow the Property to be changed. I have tried to assign it via a variable and also via hardcoding. I even stopped the app, went to Watch and tried to change it there. Just remains a 0. I refreshed the cache and have used both IE and Firefox with the same results.

I even put the license from the Global.asax file (added as per the instructions in the Help file) into the Page_Load of the page and it still does not work. I even hardcoded the change of the Grid1.RunningMode property in the code to select the Callback mode. Still does not allow the RecordCount property to change.

It still displays the first page of data (of 20 items), but it does not have the navigational items displayed at the bottom. Here is the definition from the page:

<eo:Grid ID="Grid1" runat="server" BorderColor="#C7D1DF" BorderWidth="1px" ColumnHeaderAscImage="00050303" ColumnHeaderDescImage="00050304"
ColumnHeaderDividerImage="00050302" FixedColumnCount="1" Font-Bold="False" Font-Italic="False" Font-Names="Verdana" Font-Overline="False" Font-Size="9pt"
Font-Strikeout="False" Font-Underline="False" GridLineColor="199, 209, 223" GridLines="Both" Height="600px" ItemHeight="19" KeyField="ID"
RunningMode="Callback" Width="750px">
<FooterStyle CssText="padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;" />
<ColumnTemplates>
<eo:TextBoxColumn>
<TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma" />
</eo:TextBoxColumn>
<eo:DateTimeColumn>
<DatePicker ControlSkinID="None" DayCellHeight="16" DayCellWidth="19"
DayHeaderFormat="FirstLetter" DisabledDates="" OtherMonthDayVisible="True"
SelectedDates="" TitleLeftArrowImageUrl="DefaultSubMenuIconRTL"
TitleRightArrowImageUrl="DefaultSubMenuIcon">
<TodayStyle CssText="font-family: tahoma; font-size: 12px; border-right: #bb5503 1px solid; border-top: #bb5503 1px solid; border-left: #bb5503 1px solid; border-bottom: #bb5503 1px solid" />
<SelectedDayStyle CssText="font-family: tahoma; font-size: 12px; background-color: #fbe694; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
<DisabledDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
<PickerStyle CssText="border-bottom-color:#7f9db9;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#7f9db9;border-left-style:solid;border-left-width:1px;border-right-color:#7f9db9;border-right-style:solid;border-right-width:1px;border-top-color:#7f9db9;border-top-style:solid;border-top-width:1px;font-family:Courier New;font-size:8pt;margin-bottom:0px;margin-left:0px;margin-right:0px;margin-top:0px;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" />
<CalendarStyle CssText="background-color: white; border-right: #7f9db9 1px solid; padding-right: 4px; border-top: #7f9db9 1px solid; padding-left: 4px; font-size: 9px; padding-bottom: 4px; border-left: #7f9db9 1px solid; padding-top: 4px; border-bottom: #7f9db9 1px solid; font-family: tahoma" />
<TitleArrowStyle CssText="cursor:hand" />
<DayHoverStyle CssText="font-family: tahoma; font-size: 12px; border-right: #fbe694 1px solid; border-top: #fbe694 1px solid; border-left: #fbe694 1px solid; border-bottom: #fbe694 1px solid" />
<MonthStyle CssText="font-family: tahoma; font-size: 12px; margin-left: 14px; cursor: hand; margin-right: 14px" />
<TitleStyle CssText="background-color:#9ebef5;font-family:Tahoma;font-size:12px;padding-bottom:2px;padding-left:6px;padding-right:6px;padding-top:2px;" />
<OtherMonthDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
<DayHeaderStyle CssText="font-family: tahoma; font-size: 12px; border-bottom: #aca899 1px solid" />
<DayStyle CssText="font-family: tahoma; font-size: 12px; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
</DatePicker>
</eo:DateTimeColumn>
<eo:MaskedEditColumn>
<MaskedEdit ControlSkinID="None"
TextBoxStyle-CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; font-family:Courier New;font-size:8pt;">
</MaskedEdit>
</eo:MaskedEditColumn>
</ColumnTemplates>
<ColumnHeaderStyle CssText="background-image:url('00050301');padding-left:8px;padding-top:2px;font-weight: bold;color:white;" />
<ItemStyles>
<eo:GridItemStyleSet>
<ItemStyle CssText="background-color: white" />
<ItemHoverStyle CssText="background-image: url(00050206); background-repeat: repeat-x" />
<SelectedStyle CssText="background-image: url(00050207); background-repeat: repeat-x" />
<CellStyle CssText="padding-left:8px;padding-top:2px; color:#336699;white-space:nowrap;" />
</eo:GridItemStyleSet>
</ItemStyles>
<Columns>
<eo:EditCommandColumn>
</eo:EditCommandColumn>
<eo:DeleteCommandColumn>
</eo:DeleteCommandColumn>
<eo:DateTimeColumn DataField="vDate" HeaderText="Date"></eo:DateTimeColumn>
<eo:TextBoxColumn DataField="Specialty" HeaderText="Department" Width="150"></eo:TextBoxColumn>
<eo:TextBoxColumn DataField="Physician" HeaderText="Physician" Width="150"></eo:TextBoxColumn>
<eo:TextBoxColumn DataField="Telephone" HeaderText="Telephone"></eo:TextBoxColumn>
</Columns>
</eo:Grid>

On another note: It is recommended to put the license key in the Global.asax file correct? And not use a file of .licx?

Thanks.
eo_support
Posted: Monday, May 2, 2011 11:08:00 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Check whether you have AllowPaging set to true. RecordCount works together with AllowPaging.

You can use license file or use Global.asax and we do not recommend one way over another. The key is if you need to redistribute your project to a large audience, then you should take some measure to prevent the license file or key being reused by an unauthorized party. In that regard, a plain license file would be the least vulnerable --- placing it inside Globa.asax in uncompiled form is equally ineffective if you do not precompile your app because anybody can just copy and paste from there. So usually in that case you should compile the license code into somewhere in your application so it does not show up in plain text form.

If you are only using the product in your internal network, then a plain license file is perfectly fine. In fact we would recommend that because it is easier to troubleshoot.

In any case, how to apply the license does not affect your application behavior.

Thanks!
Cole
Posted: Monday, May 2, 2011 11:22:05 AM
Rank: Newbie
Groups: Member

Joined: 1/14/2011
Posts: 6
That was exactly the problem (AllowPaging). Thanks so much. I will be glad when I get more experienced on this so I do not have to bother you with these nagging issues. That kept me busy for close to 2 hours.

I was just asking the question on the license question so I would have a working knowledge of what to do when I am ready to deploy this.

I am going to have to turn this over to the client when it is ready. I am sure they will want the source code (whether they can modify it or not is immaterial). If I give them the runtime license, then I thought they could not use it for developing.

I was just trying to find the best way to handle this. I wanted to keep your software as safe as possible and did not want to give anything away.

Thank you so much for your assistance. Some advice on the license file would be greatly appreciated also.
eo_support
Posted: Monday, May 2, 2011 11:30:44 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Thanks for thinking for that. There isn't much you can do if you have to hand over the source code. : ) One thing you can do is to create a domain specific license file for them if they only use it with a set of known domain names. In any case you may want to let them know if they wish to work on our controls themselves, then they will need their own license. If they purchase their own license, then they can use their own runtime license and it would not have anything to do with yours.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.